Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 31456  / 2 Years ago, thu, august 18, 2022, 8:47:02

Today I wanted to install virtualbox (4.2) in Ubuntu 12.10 and went to the Software Center. After clicking on the 'Install' button in the USC virtualbox was being downloaded and installed.
I waited more than five minutes but nothing happened, and the progress bar didn't change. After about one hour of waiting I closed the USC and rebooted the PC.



Now I have got the problem that whenever I want to install software via sudo apt-get install <software> I get the following error:



quantal@Flubuntu:~$ sudo apt-get install <whatever-package>
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?


After killing dpkg in terminal (sudo killall dpkg) or rebooting I get the next error:



quantal@Flubuntu:~$ sudo apt-get install <whatever-package>
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct


And when I try to execute sudo dpkg --configure -a the command hangs at



update-initramfs: Generating /boot/initrd.img-3.5.0-25-generic


When I start sudo update-initramfs -k all -u -v in verbose mode it says that it adds many modules, binaries and firmware (which I have not included in the output) but then is stuck after the following six lines:



Adding binary /lib/firmware/radeon/TAHITI_me.bin
Adding firmware radeon/TAHITI_me.bin
Adding binary /lib/firmware/radeon/TAHITI_pfp.bin
Adding firmware radeon/TAHITI_pfp.bin
Adding module /lib/modules/3.5.0-23-generic/kernel/drivers/gpu/drm/i2c/sil164.ko
Adding module /lib/modules/3.5.0-23-generic/kernel/drivers/gpu/drm/i2c/ch7006.ko


Blacklisting ch7006 or the module before doesn't work; I have also tried to manually rename ch7006.ko and sil164.ko (after checking that it isn't necessary for the system) but then it is stuck at the line before.



Many thanks in advance!



Further information:



NOTE: When booting Ubuntu I get NO errors or so, so the kernel boots but I cannot update it (and apt-get install doesn't want to install software as long as this problem exists).



The output of uname -a:



Linux Flubuntu 3.5.0-23-generic #35-Ubuntu SMP Thu Jan 24 13:15:40 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

More From » kernel

 Answers
6

Okay, I have found a workaround to fix this error.




  1. After I executed the steps in my question, I tried to remove the kernel with:



    sudo update-initramfs -k 3.5.0-23-generic -d

  2. After a reboot GRUB showed up and selected my version of Ubuntu but when it tried to load the kernel, it said




    Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (0,0)



  3. Then I just chrooted with a LiveCD into Ubuntu and executed:



    sudo dpkg --configure -a
    sudo apt-get install linux-image-3.5.0-25-generic


    And after a reboot everything was OK.



[#32520] Friday, August 19, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
pipeag

Total Points: 489
Total Questions: 107
Total Answers: 115

Location: Iraq
Member since Fri, Jun 5, 2020
4 Years ago
;