Results 1 to 3 of 3

Thread: Unmet dependencies, duplicate sources.list entries and virtualbox won't configure

  1. #1
    Join Date
    2016-May
    Posts
    1

    Unmet dependencies, duplicate sources.list entries and virtualbox won't configure

    I have an HDD install of a 64bit 4.0.0-kali1 with Gnome 3 desktop, rolling release repositories, didn't add anything else.
    I tried to get virtualbox through the terminal today and though it did install without a hitch the first time around it apparently failed to configure because when i tried to start it up I got an error...which I don't remember anymore (and didn't write down because I thought I can fix it >.<) Anyhow I tried to purge virtualbox and try again but now I'm getting the following output:

    Code:
    root@kali:~# apt-get update
    Hit http://download.virtualbox.org vivid InRelease
    Get:1 http://download.virtualbox.org vivid/contrib amd64 Packages [1,572 B]
    Get:2 http://download.virtualbox.org vivid/contrib i386 Packages [1,550 B]
    Ign http://download.virtualbox.org vivid/contrib Translation-en_US     
    Ign http://download.virtualbox.org vivid/contrib Translation-en
    Hit http://http.kali.org kali-rolling InRelease
    Hit http://http.kali.org kali-rolling/main amd64 Packages
    Hit http://http.kali.org kali-rolling/contrib amd64 Packages   
    Hit http://http.kali.org kali-rolling/non-free amd64 Packages  
    Hit http://http.kali.org kali-rolling/main i386 Packages
    Hit http://http.kali.org kali-rolling/contrib i386 Packages
    Hit http://http.kali.org kali-rolling/non-free i386 Packages   
    Ign http://http.kali.org kali-rolling/contrib Translation-en_US                
    Ign http://http.kali.org kali-rolling/contrib Translation-en                   
    Ign http://http.kali.org kali-rolling/main Translation-en_US                   
    Ign http://http.kali.org kali-rolling/main Translation-en                      
    Ign http://http.kali.org kali-rolling/non-free Translation-en_US               
    Ign http://http.kali.org kali-rolling/non-free Translation-en                  
    Fetched 3,122 B in 12s (249 B/s)                                               
    Reading package lists... Done
    W: Duplicate sources.list entry http://download.virtualbox.org/virtualbox/debian/ vivid/contrib amd64 Packages (/var/lib/apt/lists/download.virtualbox.org_virtualbox_debian_dists_vivid_contrib_binary-amd64_Packages)
    W: Duplicate sources.list entry http://download.virtualbox.org/virtualbox/debian/ vivid/contrib amd64 Packages (/var/lib/apt/lists/download.virtualbox.org_virtualbox_debian_dists_vivid_contrib_binary-amd64_Packages)
    W: Duplicate sources.list entry http://download.virtualbox.org/virtualbox/debian/ vivid/contrib amd64 Packages (/var/lib/apt/lists/download.virtualbox.org_virtualbox_debian_dists_vivid_contrib_binary-amd64_Packages)
    W: Duplicate sources.list entry http://download.virtualbox.org/virtualbox/debian/ vivid/contrib i386 Packages (/var/lib/apt/lists/download.virtualbox.org_virtualbox_debian_dists_vivid_contrib_binary-i386_Packages)
    W: Duplicate sources.list entry http://download.virtualbox.org/virtualbox/debian/ vivid/contrib i386 Packages (/var/lib/apt/lists/download.virtualbox.org_virtualbox_debian_dists_vivid_contrib_binary-i386_Packages)
    W: Duplicate sources.list entry http://download.virtualbox.org/virtualbox/debian/ vivid/contrib i386 Packages (/var/lib/apt/lists/download.virtualbox.org_virtualbox_debian_dists_vivid_contrib_binary-i386_Packages)
    W: You may want to run apt-get update to correct these problems
    root@kali:~# apt-get install virtualbox
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies:
     adwaita-icon-theme : Breaks: gnome-themes-standard-data (< 3.18.0-2~) but 3.14.2.2-1 is to be installed
                          Breaks: gnome-themes-standard-data:i386 (< 3.18.0-2~)
     gstreamer1.0-plugins-base : Breaks: gstreamer1.0-plugins-bad (< 1.7.90) but 1.4.4-2.1+b1 is to be installed
     libgstreamer-plugins-base1.0-0 : Breaks: gstreamer1.0-plugins-bad (< 1.7.1) but 1.4.4-2.1+b1 is to be installed
     virtualbox : Depends: libvncserver1 (>= 0.9.10) but it is not going to be installed
    E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
    root@kali:~# apt-get install dkms
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    dkms is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 1988 not upgraded.
    2 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue? [Y/n] y
    Setting up virtualbox (4.3.28-dfsg-1kali1+b1) ...
    insserv: script virtualbox: service vboxdrv already provided!
    insserv: exiting now!
    update-rc.d: error: insserv rejected the script header
    dpkg: error processing package virtualbox (--configure):
     subprocess installed post-installation script returned error exit status 1
    dpkg: dependency problems prevent configuration of virtualbox-qt:
     virtualbox-qt depends on virtualbox (= 4.3.28-dfsg-1kali1+b1); however:
      Package virtualbox is not configured yet.
    
    dpkg: error processing package virtualbox-qt (--configure):
     dependency problems - leaving unconfigured
    Errors were encountered while processing:
     virtualbox
     virtualbox-qt
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    root@kali:~#
    I'm kind of new to linux in general (and yes I know Kali isn't considered a beginner friendly distro) so I'm stumped on what to do. Are the duplicate entries a big problem? If yes how can I correct that? And why won't virtualbox configure correctly?

    I also tries the following guides before:
    http://www.computingforgeeks.com/201...latest-on.html
    http://www.iexplo1t.com/2015/03/Virtual-Box.html
    http://cyberpedia.in/install-virtual...inux-2-0-sana/

    Any help is appreciated, even if you just tell me I really messed up the system and need to reinstall it.

    Thanks in advance!

  2. #2
    Join Date
    2013-Apr
    Location
    Kali forums
    Posts
    805
    I'd go with the pre-built VirtualBox images over at www.offensive-security.com. Hopefully, these will save you some time & headaches

  3. #3
    Join Date
    2016-Apr
    Posts
    100
    The duplicate files are in

    Code:
    cd /etc/apt/sources.list.d/
    Just delete those and try again. Stick with the first post http://www.computingforgeeks.com/201...latest-on.html
    Last edited by P373; 2016-05-05 at 21:02.

Similar Threads

  1. Replies: 0
    Last Post: 2020-07-22, 01:44
  2. Duplicate entries in Boot screen (rEFInd)
    By karumudi7 in forum Installing Archive
    Replies: 0
    Last Post: 2019-06-15, 20:42
  3. Virtualbox Sources.list - which Debian Dist do I use?
    By Almostfamous84 in forum General Archive
    Replies: 1
    Last Post: 2018-01-12, 09:12
  4. unmet dependencies
    By hanzla23 in forum NetHunter General Questions
    Replies: 1
    Last Post: 2015-05-20, 07:09

Tags for this Thread

Posting Permissions

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