In this article We are providing some tricks for “How to Fix Ubuntu Update Errors”. What follows are common error messages and how to fix them with minimal fuss.
How to Fix Ubuntu Update Errors
Package Hash Mismatch
Open Terminal and type:
A long series of text will scroll across the screen, but within this will be the following line or similar:
W:Failed to fetch package:/var/lib/apt/lists/partial/in.archive.ubuntu.com_ubuntu_dists_oneiric_restricted_binary-i386_Packages Hash Sum mismatch
W:Failed to fetch package:/var/lib/apt/lists/partial/in.archive.ubuntu.com_ubuntu_dists_oneiric_multiverse_binary-i386_Packages Hash Sum mismatch
E:Some index files failed to download. They have been ignored, or old ones used instead
In order to fix this, you can enter this into the Terminal:
sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update
This will remove all the cached packages and force the system to re-download them again.
Recommended: How to Fix Broken Packages in Ubuntu
Failed to Download Repository Information
Sometimes we saw this error due to a PPA that you have added which is no longer available or simply not responding.
If this a PPA issue, then simply identify which of the PPAs is failing and remove it from sources. Do this as above by entering:
sudo apt-get update
Failed to Download Package Information
Fix to this error, Go to the sources and change the source to the Main Server.
Changing this means that future downloads might be slightly slower, due to the main server being busier than a local one, but it should be more stable and have a longer up-time than local servers which can be occasionally patchy.
Could Not Get Lock /var/cache/apt/archives/lock
When another package is using apt, then this error will appear.
E: Could not get lock /var/cache/apt/archives/lock – open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/
Usually you can wait for the .deb package to finish installing and simply close the Software Center or gdebi if you use this. However, if the problem continues, you can resolve it by entering the following within the Terminal:
sudo rm /var/lib/apt/lists/lock
If this should fail, you can kill the process via:
sudo killall apt-get
Partial Upgrade Error
When running an update within the Terminal, users can be presented with the following error:
Not all updates can be installed
Run a partial upgrade, to install as many updates as possible
Run this command to fix the problem:
I hope you like this post “How to Fix Ubuntu Update Errors”. Do you have any questions? Leave a comment down below!
Thanks for reading. If you like this post probably you might like my next ones, so please support me by subscribing my blog.
We have other tutorials with ESP32 that you may find useful:
Buy now : Raspberry PI 3 Model B+ Motherboard