Page 1 of 1
apt-get install is not working
Posted: 13. May 2010, 21:56
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.......
Re: apt-get install is not working
Posted: 13. May 2010, 22:22
by Perryg
Can the guest reach the Internet?
Re: apt-get install is not working
Posted: 13. May 2010, 23:35
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.
Re: apt-get install is not working
Posted: 14. May 2010, 21:37
by msayantan
Perryg wrote:Can the guest reach the Internet?
yaah....it can access the internet......
Re: apt-get install is not working
Posted: 14. May 2010, 21:44
by Perryg
Are you doing this as sudo?
have you checked your sources list to make sure it is right?
Re: apt-get install is not working
Posted: 14. May 2010, 21:56
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
and try again
Re: apt-get install is not working
Posted: 14. May 2010, 21:57
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).
Re: apt-get install is not working
Posted: 14. May 2010, 23:20
by Sasquatch
At the very least post your /etc/apt/sources.list.
Re: apt-get install is not working
Posted: 14. May 2010, 23:33
by fixedwheel
ehhm... dkms is in main - how could sources.list be modified to miss that?
Re: apt-get install is not working
Posted: 15. May 2010, 00:24
by Sasquatch
By having CDROM still enabled, preventing internet caches to be used instead to update the headers.
Re: apt-get install is not working
Posted: 15. May 2010, 00:34
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
Re: apt-get install is not working
Posted: 15. May 2010, 22:43
by msayantan
hello....here is my source.list file....
Re: apt-get install is not working
Posted: 16. May 2010, 15:20
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.