LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-10-2012, 03:43 PM   #1
juggalojoe
LQ Newbie
 
Registered: May 2012
Posts: 4

Rep: Reputation: Disabled
Cancelling stuck


im running the latest Ubuntu LTS version
So i tried to install the latest adobe flash player from the adobe website in the ubuntu software center, then decided to cancel it and now it is stuck cancelling at the progress stage.

anything i try and do i get this message
"E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
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?"

i dont know what to do
 
Old 05-10-2012, 03:49 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Process is hung and has a lock on those files, kill it with kill -9 or reboot your system.
 
Old 05-10-2012, 04:13 PM   #3
juggalojoe
LQ Newbie
 
Registered: May 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
used top, cant find the process to kill it

also, tired rebooting many times, nothing happens
 
Old 05-10-2012, 04:17 PM   #4
manu-tm
Member
 
Registered: May 2008
Location: France
Distribution: Ubuntu, Debian
Posts: 343

Rep: Reputation: 43
You can use killall PROGRAM_NAME instead.
 
1 members found this post helpful.
Old 05-10-2012, 04:22 PM   #5
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Watch using the kill all command.Just do a lsof on the file paths to find the pids, then kill them.
 
1 members found this post helpful.
Old 05-10-2012, 04:42 PM   #6
juggalojoe
LQ Newbie
 
Registered: May 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
but if it's in the Ubuntu software program, and i killed the Ubuntu software program and its still there, how would i find its file name?
 
Old 05-10-2012, 04:46 PM   #7
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Run lsof on these folder/file names:

"E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
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?"

so

Code:
lsof /var/lib/apt/lists/lock
 
Old 05-10-2012, 04:53 PM   #8
juggalojoe
LQ Newbie
 
Registered: May 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
sudo: unable to open /var/lib/sudo/meg/4: Read-only file system
lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/meg/.gvfs
Output information may be incomplete.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
aptd 2253 root 12uW REG 8,1 0 6423436 /var/lib/apt/lists/lock
meg@meg-HP-Pavilion-dv4-Notebook-PC:~$

omg... so many issues.... sorry for bein such a noob
 
Old 05-10-2012, 05:04 PM   #9
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Personally I would delete the lock files and hope for the best, but I am not an expert so only do if nobody has any better ideas.
 
Old 05-10-2012, 05:08 PM   #10
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Code:
kill -9 2253
do the same thing on the pids you find for the other files.
 
  


Reply



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
Cancelling a mv command SentralOrigin Linux - General 2 04-17-2009 01:47 AM
Cancelling my LinuxQuestions account Marc L. LQ Suggestions & Feedback 2 06-05-2008 03:04 PM
Cancelling Jobs in CUPS AcerKev Linux - Networking 2 12-29-2005 01:54 PM
Pthread cancelling msriram_linux Programming 2 11-21-2004 08:25 AM
Stupid M$ cancelling support New2Lindows General 19 10-05-2003 07:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:50 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