apt-get install is not working

Discussions about using Linux guests in VirtualBox.
Post Reply
msayantan
Posts: 3
Joined: 13. May 2010, 21:42
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: ubuntu 9.10

apt-get install is not working

Post by msayantan »

hello everybody......I have just started using virtual box 3.1.7 My guest OS is ubuntu 9.10 while Windows XP being by host OS..
When I tried to install some packages(eg dkms here) using apt-get install all i got is following:
"Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package dkms"

I couldn't get what went wrong there....as apt-get update is not facing the problem.....Please help me out.......
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: apt-get install is not working

Post by Perryg »

Can the guest reach the Internet?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: apt-get install is not working

Post by Sasquatch »

If it's a fresh install, make sure you update the package headers first and that it doesn't check the CDROM. Only then will you get the DKMS package.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
msayantan
Posts: 3
Joined: 13. May 2010, 21:42
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: ubuntu 9.10

Re: apt-get install is not working

Post by msayantan »

Perryg wrote:Can the guest reach the Internet?
yaah....it can access the internet......
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: apt-get install is not working

Post by Perryg »

Are you doing this as sudo?
have you checked your sources list to make sure it is right?
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Re: apt-get install is not working

Post by fixedwheel »

Perryg wrote:Are you doing this as sudo?
not as root gives:

Code: Select all

$ apt-get install dkms
E: Konnte Lockdatei /var/lib/dpkg/lock nicht öffnen - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

@msayantan ... do

Code: Select all

apt-get update
and try again
Lupuss
Posts: 4
Joined: 25. Nov 2009, 00:38
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Debian (squeeze) & Ubuntu (koala)

Re: apt-get install is not working

Post by Lupuss »

If he wasn't root then the error message would be different.

It's not gonna solve your problem but you should update vbox to the latest version anyway (3.1.8 is out now).
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: apt-get install is not working

Post by Sasquatch »

At the very least post your /etc/apt/sources.list.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Re: apt-get install is not working

Post by fixedwheel »

ehhm... dkms is in main - how could sources.list be modified to miss that?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: apt-get install is not working

Post by Sasquatch »

By having CDROM still enabled, preventing internet caches to be used instead to update the headers.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Re: apt-get install is not working

Post by fixedwheel »

my karmic guest is still a quite default install, i didn't modify sources.list and begins with inactive CDROM

Code: Select all

#deb cdrom:[Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5)]/ karmic main restricted
msayantan
Posts: 3
Joined: 13. May 2010, 21:42
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: ubuntu 9.10

Re: apt-get install is not working

Post by msayantan »

hello....here is my source.list file....
Attachments
sources.list.txt
source.list
(2.96 KiB) Downloaded 687 times
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: apt-get install is not working

Post by Sasquatch »

Looks good. Are you 100% sure the Guest has internet access? The command 'sudo apt-get update' should give you an update of the package headers which tells you if there are updates and which version is available for packages (and if there are new packages available). I doubt this is a VB problem, which means it's off-topic here.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply