Friday, January 30, 2009

Adept updater crash

I had been hoping to blog more about programming stuff, but here has been lots of "yak shaving" activities for me lately. Linux is still a hairy beast, even if things are slowly getting better. And here is another one!

The "Adept updater tool" in KDE, which has a little icon in the systray informing you when important updates are unavailable, is light-years better than the default behavior of the Windows Update tool in Vista -

("I have downloaded updates and will restart now, shutting down your programs". "I am configuring updates, you may not turn off your computer right now.", "Now I'm going to restart your computer again". "This is a blue screen of death" "Could not start Windows. Would you like to try to restore your computer to last known working configuration?" No joke, this happens to me with SP1 for Vista, can't install it on my Dell laptop)

- but Adept is not completely bug- or annoyance-free either. Yesterday when downloading a new Linux kernel to my Kubuntu system, my update progress stopped suddenly. A command line style menu window had popped up asking if I wanted to keep my old locally changed grub conf file, or replace it with a new one. While Adept could show the menu to me if I went to the "details" tab, it could not process any input from me and transmit it to the install script, so I had to kill the Adept process.

Next time I tried to restart Adept, it said the update database was locked because another program was using it. This is the solution to this problem (most of it curtesy of "harleqinguy" at Linuxquestions.org)

sudo rm /var/lib/dpkg/lock
Removes lock file - only do if you are sure all programs which may access the update db are terminated, but the lock still remains.

sudo dpkg --configure -a
Reconfigures downloaded but not yet installed update packages, and backs up configuration files. Mainly to test if you can run update tools, and to try to fix any configuration mistakes you may have done

Now you can restart Adept, but trying to update your system through it will only lead to the same issues again, to get by this problem and get your shiny new kernel installed, go to your trusty command line and run

sudo apt-get upgrade

11 comments:

Anonymous said...

Your blog keeps getting better and better! Your older articles are not as good as newer ones you have a lot more creativity and originality now keep it up!

Ridhi Sharma said...

My laptop crashes every time my picture software's automatic updater runs. What can I do?

THX
Brad Fallon

sharma said...

If you still have trouble, just compile with default settings and the version php you desire. After that, you could add the modules you need. Of course, only select what you do need.
eb 5 visa

sharma said...

My laptop crashes every time my picture software's automatic updater runs. What can I do?

Herman Miller Aeron

Packers and Movers Book said...

Nice information thanks

packers and movers delhi

bbb said...

Packing and moving your precious goods is an art and our expert employees have mastered the art and science of packing and moving. Movers And Packers Pune
Packers and movers ahmedabad
Packers and movers hinjewadi Pune
Packers and movers magarpatta city Pune
Packers and movers viman nagar Pune
packing and moving Pune
Packers and movers warje Pune
Packers and movers in hisar
packers and movers in surat
Packers And Movers Yerwada
packers and movers in fatimanagar
Packers And Movers Baner Pune
Packers And Movers In Katraj Pune
Packers And Movers Sangli
packers and movers shiviji nagar pune
Packers And Movers Pimple Saudagar Pune
Packers And Movers Pimple Gurav Pune
Packers And Movers Wakad Pune
packers and movers aundh pune
Packers And Movers Hadapsar Pune
Packers And Movers Wagholi Pune


Packers And Movers Delhi
Packers And Movers Indore

Anonymous said...

Great Blog!! That was amazing. Your thought processing is wonderful. The way you tell the thing is awesome.
packers and movers pune
packers and movers chennai
packers and movers indore
packers and movers kolkata

Unknown said...


packers and movers gurgaon
packers and movers baroda
packers and movers lucknow

Unknown said...

Independent Mumbai Escorts is very advanced and updated so that time to time the experienced team take the guidance of experienced trained and become well trained escort service provider.

Ashoka Packers and Movers said...

Ashoka Packers and Movers is the best reliable company in Gandipet. We have provided multiple services such as Insurance Service, Long & Short-Term Storage, Fine Arts Move Experts Services and so on.


Movers and Packers in Gandipet
Packers and Movers in Film Nagar Hyderabad
Household Shifting Services in Hyder Nagar

Happy Packers and Movers Pune said...

Thanks for sharing.
Packers and Movers Pune - Movers and Packers in Baner Pune
Packers and Movers Aundh Pune - Movers and Packers in Aundh Pune
Packers and Movers Phursungi Pune -Movers and Packers Phursungi Pune
Packers and Movers Bopodi Pune - movers and packers bopodi pune
Packers and Movers Hadapsar Pune - Movers and Packers in Hadapsar Pune
Packers and Movers Kalyani nagar Pune - Movers and Packers in Kalyani nagar Pune