I just got a new desktop with 16.04 installed on it, and when I try to download software from the app., it says pending for a long time, but doesn't download.
How do I resolve this?
Thank you
I just got a new desktop with 16.04 installed on it, and when I try to download software from the app., it says pending for a long time, but doesn't download.
How do I resolve this?
Thank you
Try the following methods
Try to install with the following command
sudo apt-get install the-program-package # general
sudo apt-get install htop # example (small package)
sudo apt-get install libreoffice # example (big package)
Text after the #
character are comments (not used).
If there are problems, run the following commands.
Oldfred's command list for cleaning and repairing
#houseclean
sudo apt-get autoclean # only removes files that cannot be downloaded anymore (obsolete)
sudo apt-get clean
#refresh
sudo apt-get update #resync package index
sudo apt-get upgrade #newest versions of all packages, update must be run first
#would upgrade you to the latest kernel in the repositories
#dist-upgrade is also able to remove existing packages if required
sudo apt-get dist-upgrade
# fix Broken packages -f
sudo apt-get -f install
sudo dpkg --configure -a
# Remove lock
# If you are absolutely sure you do not have another upgrade process running.
# Locked dpkg - only if sure you are not running another update.
sudo rm /var/lib/dpkg/lock
sudo dpkg --configure -a
added zika's tip for problems with hash sum mismatch
sudo rm /var/lib/apt/lists/*
sudo apt-get update
added 2F4U's tips for Package Manager & Update Manager problems
Does executing these commands help?
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get update
This will rebuild the cache.
If it doesn't help, this forum thread has additional suggestions:
http://ubuntuforums.org/showthread.php?t=1869890
Try to install Synaptic with the following command lines
sudo add-apt-repository universe
sudo apt-get install synaptic
and start it
Synaptic is a little more difficult to use compared to Ubuntu Software, but Synaptic is a very powerful and reliable tool. If you manage to install it, I think that you will be able to use it to install the program packages, that you want to install.
It is also possible that you need some other repository to download the program packages that you want. Please edit your question to tell us which program packages, that you are trying to install.
sudo apt autoremove gnome-software && sudo apt install gnome-software
The above command worked for me perfectly. I had the same issue where no matter what any software installation was showing a 'pending installation' status.
Try running in a console:
– Samuel Feb 21 '17 at 00:36sudo apt-get update
. If you get any errors, please post them here. If not, try again to install anything. Come back with your results.sudo dpkg --configure --pending
. – Samuel Feb 22 '17 at 05:34sudo apt install <package>
. Lets see if we can get any error messages from it. – Samuel Feb 25 '17 at 07:48ubuntu-software
orsynaptic
, instead ofsoftware-center
. You may have better luck reporting a bug at the project's launchpad: https://bugs.launchpad.net/ubuntu/+source/software-center :( – Samuel Mar 03 '17 at 05:45