Ubuntu Software error: "unable to install..."
Ubuntu Software Center gives following message: "Unable to install ....: cannot perform the following tasks:" But it doesn't indicate which tasks it cannot install. I tried uninstalling and reinstalling Ubuntu Software but the problem persists. I have tried installing different applications and it repeats the error.
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Just to add that the error occurs with many packages, but not all. For example, I was able to install Synaptic from Ubuntu Software. But I got the error with Nextcloud, with TOR, with Snap Store Proxy Client
Revision history for this message
|
#2 |
For diagnostic purposes please provide the output that you receive for the following commands (to be executed in a terminal window):
uname -a
lsb_release -crid
sudo apt-get update
sudo dpkg --audit
sudo dpkg --configure -a
Revision history for this message
|
#3 |
paul@paul-
Linux paul-ThinkPad-T420s 4.15.0-39-generic #42-Ubuntu SMP Tue Oct 23 15:48:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
paul@paul-
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
paul@paul-
[sudo] password for paul:
Ign:1 http://
Get:2 http://
Hit:3 http://
Hit:4 http://
Hit:5 http://
Hit:6 http://
Hit:7 http://
Get:9 http://
Hit:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Fetched 2,206 kB in 3s (636 kB/s)
Reading package lists... Done
paul@paul-
paul@paul-
paul@paul-
Revision history for this message
|
#4 |
Ok, the package management system is in a consistent status and there is no error shown in the output.
What output do you now receive for the command
sudo apt dist-upgrade
Revision history for this message
|
#5 |
paul@paul-
[sudo] password for paul:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
python3-
update-
4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 632 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Fetched 632 kB in 1s (519 kB/s)
Preconfiguring packages ...
(Reading database ... 245219 files and directories currently installed.)
Preparing to unpack .../python3-
Unpacking python3-
Preparing to unpack .../update-
Unpacking update-manager-core (1:18.04.11.7) over (1:18.04.11.6) ...
Preparing to unpack .../update-
Unpacking update-manager (1:18.04.11.7) over (1:18.04.11.6) ...
Preparing to unpack .../unattended-
Unpacking unattended-upgrades (1.1ubuntu1.
Processing triggers for gconf2 (3.2.6-4ubuntu1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for ureadahead (0.100.0-20) ...
ureadahead will be reprofiled on next reboot
Processing triggers for desktop-file-utils (0.23-1ubuntu3.
Processing triggers for libglib2.0-0:amd64 (2.56.3-
Setting up python3-
Processing triggers for bamfdaemon (0.5.3+
Rebuilding /usr/share/
Processing triggers for systemd (237-3ubuntu10.9) ...
Setting up unattended-upgrades (1.1ubuntu1.
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for gnome-menus (3.13.3-
Setting up update-manager-core (1:18.04.11.7) ...
Setting up update-manager (1:18.04.11.7) ...
paul@paul-
After running this command, the problem still persists
Revision history for this message
|
#6 |
The command line version of the package management system does not show anything wrong.
Please tell, when exactly you see that strange message - at start of Software Center, or after an attempt to install an additional program, etc.
Eventually it would help if you can upload a screen shot to any public internet image hosting service and provide the link to that image.
Revision history for this message
|
#7 |
I select a program to install in the Software center. I click on the Install button. It progresses to 15% and then gives the error message. Then it stalls.
Here are links to 4 screenshots : Let me know if you cannot see them.
https:/
https:/
https:/
https:/
Revision history for this message
|
#8 |
The programs that create problems seem to be all coming from the snap store.
What is the output of the commands
snap version
snap list
snap changes
snap services
(Just a remark: Are you sure that the packages you selected are really those that you want)
Revision history for this message
|
#9 |
I tried similar actions on my system, and did not receive an error message.
Have you tried scrolling in that strange message box, or making it bigger?
Revision history for this message
|
#10 |
Thank you for your help with this. The fact is that the error doesn't appear on another computer, similar to what you indicate that it doesn't show up for you.
Here is the output you request:
paul@paul-
snap 2.36.1
snapd 2.36.1
series 16
ubuntu 18.04
kernel 4.15.0-39-generic
paul@paul-
Name Version Rev Tracking Publisher Notes
canonical-livepatch 8.0.2 41 stable canonical✓ -
chromium 70.0.3538.110 516 stable canonical✓ -
core 16-2.36.1 5897 stable canonical✓ core
core18 18 442 stable canonical✓ base
gtk-common-themes 0.1-4-g88bc1b2 818 stable canonical✓ -
keepassxc 2.3.4 49 stable keepassxreboot -
skype 8.22.0.2 33 stable skype✓ classic
telegram-sergiusens 1.2.6 68 stable sergiusens -
vlc 3.0.3-1-3-gf09fd0d 365 stable videolan✓ -
wavebox 4.4.0 135 stable wavebox✓ -
paul@paul-
ID Status Spawn Ready Summary
465 Error yesterday at 21:14 -05 yesterday at 21:14 -05 Auto-refresh snaps "skype", "vlc", "canonical-
466 Error today at 08:40 -05 today at 08:40 -05 Auto-refresh snaps "skype", "vlc", "canonical-
467 Error today at 09:00 -05 today at 09:00 -05 Install "nextcloud" snap
468 Error today at 09:03 -05 today at 09:03 -05 Install "nextcloud" snap
469 Error today at 10:40 -05 today at 10:40 -05 Install "nextcloud" snap
470 Error today at 10:44 -05 today at 10:44 -05 Install "snap-store-proxy" snap
471 Error today at 10:46 -05 today at 10:46 -05 Install "tor" snap
472 Error today at 10:49 -05 today at 10:49 -05 Install "software-boutique" snap
paul@paul-
Service Startup Current
canonical-
paul@paul-
Revision history for this message
|
#11 |
Right. It seems related to the Snap Store. I see that most programs are now Snap. But I found a gnome program/application and it installed fine. And as I said above, on a different computer that error does not show up
I am unable to expand or scroll down the error message.
Revision history for this message
|
#12 |
I am intrigued by your question of whether I want those programs. What should I know about them?
Revision history for this message
|
#13 |
My remark about those programs:
If you look at the page for tor client in the software center, you can see the comment " If you would just like to browse the web with Tor, see Tor Browser instead."
Similar you should be sure whether you want nextcloud or nextcloud-client, etc.
Don't misunderstand me. I do not say that your choice is wrong, but you should be sure which package you want.
Back to your problem:
Which output do you receive for the commands
snap install nextcloud
snap install tor
snap install snap-store-proxy
Revision history for this message
|
#14 |
I installed Tor Browser from the Software Center, and since it isn't SNAP, it installed fine.
I tried installing nextcloud-clien from the Software Center. It is Snap, and it gave the same error.
Then I wen to the termininal and ran snap install nextcloud-client, and it installed fine. Here is the output:
paul@paul-
nextcloud-client 2.3.3+gitab40efe from Nextcloud✓ installed
paul@paul-
I didn't try installing the other two, as I assumed they would install fine from the Terminal, just like nextcloud-client did
Revision history for this message
|
#15 |
I installed Nextcloud from the terminal: Here is the output.
paul@paul-
nextcloud 13.0.7snap2 from Nextcloud✓ installed
paul@paul-
Then I uninstalled it from the Software Center, and it said it uninstalled it.
Then I installed it from the Software Center and it didn't give me an error, indicated it had installed it, but the following message came out on the terminal when I attempted to launch it from the Software Center:
chmod: changing permissions of '/tmp/pids': Operation not permitted
chmod: changing permissions of '/var/snap/
Making sure nextcloud is setup...
chmod: changing permissions of '/tmp/pids': Operation not permitted
chmod: changing permissions of '/tmp/sockets': Operation not permitted
chmod: changing permissions of '/tmp/pids': Operation not permitted
chmod: changing permissions of '/tmp/sockets': Operation not permitted
chmod: changing permissions of '/tmp/pids': Operation not permitted
chmod: changing permissions of '/tmp/sockets': Operation not permitted
chmod: changing permissions of '/var/snap/
mkdir: cannot create directory '/var/snap/
chmod: cannot access '/var/snap/
chmod: changing permissions of '/var/snap/
Waiting for PHP...
And there it stalled.
Then I attempted to uninstall it from the Software Center and it indicated it uninstalled it.
Revision history for this message
|
#16 |
I tried installing Opera from the Software Center (Snap), and it gave the same error message.
I install it from the Terrminal. while installing it indicates it is downloading snap opera(16) from stable "channel"
Here is the final output:
paul@paul-
opera 57.0.3098.76 from Opera (opera-software✓) installed
paul@paul-
Revision history for this message
|
#17 |
Then I removed Opera from the Software Center, and reinstalled it from the Software Center, and it worked. So once I install a snap program from the Terminal, then I can uninstall it and reinstall it from the Software Center. But the initial attempt to install a snap program from the Software Center give and error
Revision history for this message
|
#19 |
What would be the Terminal commands to do a thorough uninstall of Software Center and of the respective cacje, and then reinstall the software center? If it makes sense to try that, what would be the commands to do that?
Revision history for this message
|
#20 |
There is a handful of different packages.
What is the output of the command
dpkg -l | grep -e '-software'
Revision history for this message
|
#21 |
paul@paul-
ii gnome-software 3.28.1-
ii gnome-software-
ii gnome-software-
ii python3-
paul@paul-
Revision history for this message
|
#22 |
This presenttion is easier to read:
paul@paul-
ii gnome-software 3.28.1-
ii gnome-software-
ii gnome-software-
ii python3-
paul@paul-
Revision history for this message
|
#23 |
The following commands should do everything needed to remove, clear and reinstall software center:
sudo apt purge gnome-software gnome-software-
(Note down the name of all packages that are removed; probably software-center and ubuntu-desktop will be uninstalled as well. This is ok, but you should re-install these packages afterwards as well.)
rm -rf ~/.cache/
rm -rf ~/.config/
rm -rf ~/.local/
sudo apt install gnome-software gnome-software-
Finally reinstall the additional packages that have been removed in the first step, probably something like
sudo apt install software-center ubuntu-desktop
Revision history for this message
|
#24 |
Thank you for being with me in this. Following is the output of the above.
paul@paul-
[sudo] password for paul:
Sorry, try again.
[sudo] password for paul:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
python3-netifaces
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
gnome-software* gnome-software-
0 upgraded, 0 newly installed, 3 to remove and 4 not upgraded.
After this operation, 5,626 kB disk space will be freed.
(Reading database ... 245177 files and directories currently installed.)
Removing gnome-software-
Removing gnome-software (3.28.1-
Removing gnome-software-
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.
Processing triggers for libglib2.0-0:amd64 (2.56.3-
Processing triggers for bamfdaemon (0.5.3+
Rebuilding /usr/share/
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for gnome-menus (3.13.3-
Processing triggers for hicolor-icon-theme (0.17-2) ...
(Reading database ... 245076 files and directories currently installed.)
Purging configuration files for gnome-software (3.28.1-
paul@paul-
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
apt-config-
gnome-
The following NEW packages will be installed:
gnome-software gnome-software-
0 upgraded, 3 newly installed, 0 to remove and 4 not upgraded.
Need to get 2,999 kB of archives.
After this operation, 5,626 kB of additional disk space will be used.
Get:1 http://
Get:2 http://
Get:3 http://
Fetched 2,999 kB in 3s (983 kB/s)
Selecting previously unselected package gnome-software-
(Reading database ... 245067 files and directories currently installed.)
Preparing to unpack .../gnome-
Unpacking gnome-software-
Selecting previously unselected package gnome-software.
Preparing to unpack .../gnome-
Unpacking gnome-software (3.28.1-
Selecting previously unselected package gnome-software-
Preparing to unpack .../gnome-
Unpacking gnome-software-
Setting up gnome-software-
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.
Processing triggers for libglib2.0-0:amd64 (2.56.3-
Processing triggers for bamfdaemon (0.5.3+
Rebuilding /usr/share/
Setting up gnome-software (3.28.1-
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for gnome-menus (3.13.3-
Processing triggers for hicolor-icon-theme (0.17-2) ...
Setting up gnome-software-
paul@paul-
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package software-center is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'software-center' has no installation candidate
paul@paul-
Revision history for this message
|
#25 |
I don't know what to make of "Package software-center is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'software-center' has no installation candidate"
When I returned to the desktop, it was as if the application was still there. I clicked on it, it opened and said it had to close and reopen, which I did. The error was still there.
But in any event--- I see that I can install snap packages with the terminal using "snap install [package]", so I guess I can it is a useable workaround for me.
Revision history for this message
|
#26 |
Sorry. Ignore my remark about software-center. It was wrong, because it was valid only for Ubuntu 16.04 and older.
Did you remove the cache and config files with the rm ... commands?
What is the output of the command
find ~ -name "*software*" -ls
Revision history for this message
|
#27 |
Yes, I did run
rm -rf ~/.cache/
rm -rf ~/.config/
rm -rf ~/.local/
Revision history for this message
|
#28 |
This is the output of the command "find ~ -name "*software*" -ls"
paul@paul-
11799110 4 drwxr-xr-x 2 paul paul 4096 Dec 6 17:24 /home/paul/
1704647 8 -rw------- 1 paul paul 7132 Dec 31 1999 /home/paul/
3150272 4 -rw-rw-r-- 1 paul paul 2445 Dec 5 06:13 /home/paul/
3150060 4 -rw-rw-r-- 1 paul paul 2563 Dec 5 06:13 /home/paul/
3149904 4 -rw-rw-r-- 1 paul paul 2468 Dec 5 06:13 /home/paul/
4199362 4 -rw-rw-r-- 1 paul paul 2445 Oct 18 19:34 /home/paul/
4199160 4 -rw-rw-r-- 1 paul paul 2563 Oct 18 19:34 /home/paul/
4199004 4 -rw-rw-r-- 1 paul paul 2468 Oct 18 19:34 /home/paul/
4197451 4 -rw-rw-r-- 1 paul paul 2445 Dec 5 06:13 /home/paul/
4197443 4 -rw-rw-r-- 1 paul paul 2563 Dec 5 06:13 /home/paul/
4197438 4 -rw-rw-r-- 1 paul paul 2468 Dec 5 06:13 /home/paul/
4196644 4 -rw-rw-r-- 1 paul paul 2445 May 21 2018 /home/paul/
4196428 4 -rw-rw-r-- 1 paul paul 2563 May 21 2018 /home/paul/
4196256 4 -rw-rw-r-- 1 paul paul 2468 May 21 2018 /home/paul/
1835732 4 -rw-rw-r-- 1 paul paul 2445 Jun 4 2018 /home/paul/
1835518 4 -rw-rw-r-- 1 paul paul 2563 Jun 4 2018 /home/paul/
1835347 4 -rw-rw-r-- 1 paul paul 2468 Jun 4 2018 /home/paul/
4588201 4 -rw-rw-r-- 1 paul paul 2545 Aug 31 08:15 /home/paul/
4588054 4 -rw-rw-r-- 1 paul paul 2667 Aug 31 08:15 /home/paul/
4588013 4 -rw-rw-r-- 1 paul paul 2556 Aug 31 08:15 /home/paul/
4981674 4 -rw-rw-r-- 1 paul paul 2545 May 10 2018 /home/paul/
4981668 4 -rw-rw-r-- 1 paul paul 2667 May 10 2018 /home/paul/
4981664 4 -rw-rw-r-- 1 paul paul 2556 May 10 2018 /home/paul/
4721034 4 -rw-rw-r-- 1 paul paul 2545 Sep 7 07:15 /home/paul/
4720816 4 -rw-rw-r-- 1 paul paul 2667 Sep 7 07:15 /home/paul/
4720646 4 -rw-rw-r-- 1 paul paul 2556 Sep 7 07:15 /home/paul/
2231172 12 -rw------- 1 paul paul 9216 Jun 24 2017 /home/paul/
2231061 48 -rw------- 1 paul paul 48743 Feb 3 2014 /home/paul/
1705808 4 -rw-rw-r-- 1 paul paul 83 Dec 7 08:50 /home/paul/
1705809 20 -rw-rw-r-- 1 paul paul 19968 Dec 6 17:30 /home/paul/
1575455 48 -rw------- 1 paul paul 48743 Feb 3 2014 /home/paul/
11931391 4 drwxr-xr-x 9 paul paul 4096 Jun 4 2018 /home/paul/
131541 4 -rw-rw-r-- 1 paul paul 2716 Dec 1 11:25 /home/paul/
paul@paul-
Revision history for this message
|
#29 |
Ok. The only file/directory requiring deletion is ~/.cache/
It seems that I should have added
rm -rf ~/.cache/
Revision history for this message
|
#30 |
Hmmm. I ran rm -rf ~/.cache/
Revision history for this message
|
#31 |
After removing the cache you have to restart the program.
killall gnome-software
rm -rf ~/.cache/
gnome-software
Revision history for this message
|
#32 |
I did what you suggested above. Then I attempted to install Opera, a snap package. This is the output, in case it offers a clue to what is happening:
12:09:36:0400 Gs failed to call gs_plugin_
- Download snap "opera" (17) from channel "stable" (invalid credentials)
Revision history for this message
|
#33 |
Are you using a web proxy that requires authentication?
Revision history for this message
|
#34 |
As far as I know I am not using a proxy. Is there a specific way to verify that?
Revision history for this message
|
#35 |
Note that when I install snap from the Termianal, it installs fine
Revision history for this message
|
#36 |
Note that when I install snap from the Termianal, it installs fine
Revision history for this message
|
#37 |
"Note that when I install snap from the Terminal, it installs fine" - I know. The strange thing is that it doesn't from within gnome-software.
Is there any output on one of the following commands:
sudo grep -R roxy /etc/apt/*
grep roxy /etc/environment
grep roxy /etc/bash.bashrc
grep roxy ~/.bashrc
echo $http_proxy
echo $ftp_proxy
Revision history for this message
|
#38 |
No output:
paul@paul-
[sudo] password for paul:
paul@paul-
paul@paul-
paul@paul-
paul@paul-
paul@paul-
paul@paul-
Revision history for this message
|
#39 |
Sorry, I am running out of ideas.
Revision history for this message
|
#40 |
I am very grateful to you for all your orientation and help, for your patient persistence with me in this, and for the teaching this has represented for me. Thank you very much.
Revision history for this message
|
#41 |
This question was expired because it remained in the 'Open' state without activity for the last 15 days.