Ashoo's Ubuntu Blog

Ubuntu and Open Source updates and my views!

You might be encountered with this error while updating Ubuntu. I found the solution for this error in Launch Pad questions and thought I’ll make a post of it for others who will search for the right solution. The solution is to issue a list of commands using terminal(Ctrl+Alt+T)

The commands are:


sudo fuser -vvv /var/lib/dpkg/lock
sudo rm /var/lib/apt/lists/lock
sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
sudo rm -rf /var/lib/dpkg/updates/*
sudo rm -rf /var/lib/apt/lists
sudo rm /var/cache/apt/*.bin
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/partial
LANG=C;sudo apt-get clean
LANG=C;sudo apt-get autoclean
LANG=C;sudo apt-get –purge autoremove
LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
sudo dpkg –clear-avail
sudo dpkg –configure -a
LANG=C;sudo apt-get -f install
LANG=C;sudo apt-get –fix-missing install
LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade

Once all this commands are executed, you will be able to run the update manager as usual. There is one more single command which will be another option. The command is:


sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update

As always, Ubuntu forum is the best option to search for any solution

Categories: Ubuntu

About admin

Mangalore, India.


nine − = 7


  • RSS
  • Delicious
  • Digg
  • Facebook
  • Twitter
  • Linkedin
  • Youtube

Popular Posts

Installing Wine 1.5

Wine is a Windows application layer which lets you run ...

Komodo Edit a native

If you are a developer and missing native power editor ...

Internet-illiterate

Disclaimer: The views are against government policies and should not ...

Government of India

Indian Union Ministry of Human Resources Development, today officially unveiled ...

Dirty picture episod

Many of you aware in India watching porn videos in ...