LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-16-2012, 03:52 AM   #1
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 18.04
Posts: 1,892

Rep: Reputation: 69
update went wrong, now can't update


Hi, I was using Ubuntu this morning, I ran the update manager, and left the computer to do its thing. When I came back, the update manager was stuck in the middle of 'updating triggers'. It was unresponsive. I killed it, and rebooted. Now I can't update.
I tried
sudo apt-get update
sudo apt-get clean
sudo apt-get purge but I just get 'can't get a lock on /var/apt/lock (I think it was), and another file in dkpg.

Any tips on how to unlock it, so that apt-get can get a lock. There is no other program running which should lock those files.
 
Old 08-16-2012, 04:33 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4870Reputation: 4870Reputation: 4870Reputation: 4870Reputation: 4870Reputation: 4870Reputation: 4870Reputation: 4870Reputation: 4870Reputation: 4870Reputation: 4870
Processes that use the APT system usually create a file /var/apt/lock to prevent other processes from using APT at the same time. Usually they remove that file when they exit, but since you had to kill the Update Manager this didn't happen. Just delete that file and try it again.
 
Old 08-16-2012, 04:45 AM   #3
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,591
Blog Entries: 7

Rep: Reputation: 2062Reputation: 2062Reputation: 2062Reputation: 2062Reputation: 2062Reputation: 2062Reputation: 2062Reputation: 2062Reputation: 2062Reputation: 2062Reputation: 2062
update manager is pure crap - get rid of it. There are only two reliable methods to perform every day updates on a Debian/APT based system:
Code:
# aptitude update && aptitude safe-upgrade
Code:
# apt-get update && apt-get upgrade
If you really can't make do without a gui, then use synaptic to apply updates.
 
Old 08-16-2012, 07:19 AM   #4
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 18.04
Posts: 1,892

Original Poster
Rep: Reputation: 69
Thanks! Sounds a bit drastic, update manager has always worked well for me until today. Anyone can have a bad day!!

As it happens, I switched to Fedora for the afternoon, then, on rebooting Ubuntu, the update manager had magically fixed itself, so I didn't even have to rm /var/apt/lock

Thanks for the tips!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Zypper Looks For Repomd.xml In Wrong Directory So I Can't Update SuSE 11.0 ThisGuyIKnow SUSE / openSUSE 1 09-27-2008 01:27 PM
bios update gone wrong == mobo toast? jay73 Linux - Hardware 9 07-19-2008 02:55 AM
Downloaded wrong BIOS flash update. PC won't start ?? metalflight Linux - Hardware 5 05-22-2005 09:41 AM
something is wrong when apt-get update is launched lsj Linux - Newbie 2 05-21-2004 01:14 AM
kernel update went wrong, can't boot any more. qanopus Linux - General 3 06-16-2003 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration