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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-10-2012, 03:43 PM
|
#1
|
LQ Newbie
Registered: May 2012
Posts: 4
Rep: 
|
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
|
|
|
05-10-2012, 03:49 PM
|
#2
|
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604
|
Process is hung and has a lock on those files, kill it with kill -9 or reboot your system.
|
|
|
05-10-2012, 04:13 PM
|
#3
|
LQ Newbie
Registered: May 2012
Posts: 4
Original Poster
Rep: 
|
used top, cant find the process to kill it
also, tired rebooting many times, nothing happens
|
|
|
05-10-2012, 04:17 PM
|
#4
|
Member
Registered: May 2008
Location: France
Distribution: Ubuntu, Debian
Posts: 343
Rep:
|
You can use killall PROGRAM_NAME instead.
|
|
1 members found this post helpful.
|
05-10-2012, 04:22 PM
|
#5
|
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604
|
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.
|
05-10-2012, 04:42 PM
|
#6
|
LQ Newbie
Registered: May 2012
Posts: 4
Original Poster
Rep: 
|
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?
|
|
|
05-10-2012, 04:46 PM
|
#7
|
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604
|
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
|
|
|
05-10-2012, 04:53 PM
|
#8
|
LQ Newbie
Registered: May 2012
Posts: 4
Original Poster
Rep: 
|
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
|
|
|
05-10-2012, 05:04 PM
|
#9
|
LQ Addict
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,681
|
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.
|
|
|
05-10-2012, 05:08 PM
|
#10
|
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604
|
do the same thing on the pids you find for the other files.
|
|
|
All times are GMT -5. The time now is 12:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|