Results 1 to 5 of 5

Thread: Errors while installing virtualbox 5.1 on kali Linux

  1. #1
    Join Date
    2017-Apr
    Posts
    3

    Errors while installing virtualbox 5.1 on kali Linux

    CAN SOMEONE PLEASE HELP ME OUT?
    I followed these steps
    (1) sudo apt-get remove virtualbox-4* (NOTE: sudo apt-get remove virtualbox-1* was removed in my case)

    (2) sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" >> /etc/apt/sources.list.d/virtualbox.list'

    (3) sudo apt-get install dkms

    (4) sudo apt-get update

    (5) wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -

    (6) sudo apt-get update

    (7) sudo apt-get install virtualbox 5.1

    I got these errors

    DURING SUDO APT-GET UPDATE, I got:

    ........... Done
    W: The repository 'http://download.virtualbox.org/virtualbox/debian kali-rolling Release' does not have a Release file.
    N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    E: Failed to fetch http://download.virtualbox.org/virtu...amd64/Packages 404 Not Found [IP: 104.96.90.210 80]
    E: Some index files failed to download. They have been ignored, or old ones used instead.

    DURING SUDO APT-GET INSTALL APTITUDE, I got:

    E: Could not open lock file /var/lib/dpkg/lock - open (21: Is a directory)
    E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?



    I have also migrated to 4.9.0-kali3-arm64

    PLEASE I WILL MUCH APPRECIATE STEP BY STEP SOLUTION.

  2. #2
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    Can you show the output of cat /etc/apt/sources.list?

  3. #3
    Join Date
    2016-Dec
    Posts
    806
    One thing, you forgot a crucial step: getting the virtualbox repo signing stuff.

    Anyway, you shouldn't add external repos to Kali. The kernel is not the same as Debian.

  4. #4
    Join Date
    2017-Apr
    Posts
    3
    sources.jpg

    @_defalt, Thanks for your comment, i have attached the sources.list file (Note: I uploaded it in jpg file but the original i'm having here is sources.list). On clicking the attach, you will view it.
    Last edited by Cathy; 2017-04-03 at 19:02.

  5. #5
    Join Date
    2017-Apr
    Posts
    3
    @Mister_X, Thanks for the comment but then, what should I do to correct it?

    Remember, the terminal got me stocked at:

    DURING SUDO APT-GET INSTALL APTITUDE, I got:

    E: Could not open lock file /var/lib/dpkg/lock - open (21: Is a directory)
    E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
    Last edited by Cathy; 2017-04-03 at 19:03.

Similar Threads

  1. Kali 2020.2 OVA (VirtualBox) setup errors
    By Chris_Redz in forum Installing Archive
    Replies: 9
    Last Post: 2021-03-17, 13:43
  2. installing kali linux on virtualbox 4.2.12
    By biki in forum Installing Archive
    Replies: 6
    Last Post: 2013-05-23, 06:51

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •