PDA

View Full Version : [ubuntu] can't intall and update anything



virat18
July 15th, 2017, 08:38 AM
Every time i try to install or update, the below error occurred.

viratkarthi@ViratKarthi-HP-Notebook:~$ sudo apt-get upgrade
N: Ignoring file '20auto-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension
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?

kindly suggest me how to install, Thanks:)

ajgreeny
July 15th, 2017, 03:25 PM
You can ignore the first line in those errors as it is a known bug; you can continue to ignore the error or remove the file as it is a relic from previous systems and does nothing anymore. Try
sudo rm /etc/apt/apt.conf.d/20auto-upgrades.ucf-dist
The other errors are usually the result of having another application using apt open when trying to update or install a package.
Have you got update-manager open or is the auto-upgrade process in action?
Either shut the update-manager or just wait a few minutes and the manual installation or upgrade may work.

virat18
July 17th, 2017, 12:02 PM
yes, it works now:p..

Thanks for your kind reply:)

ajgreeny
July 17th, 2017, 05:44 PM
Great news!

Please mark as Solved in Thread Tools at TP of thread.