Cannot install gwyddion
After last update in Discovery my Gwyddion installation disappeared from my system (Kubuntu based on 20.04 LT). While trying to install it again (after cleaning the old installation) I get the following message:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
gwyddion : Depends: libgwyddion2-0 (>= 2.57) but 2.57-0~ppa1~focal1 is to be installed
E: Unable to correct problems, you have held broken packages.
Please help.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu gwyddion Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
What is the output of:
apt-cache policy gwyddion libgwyddion2-0; lsb_release -a; uname -a
Thanks
(I smell a PPA)
Revision history for this message
|
#2 |
Here is the output:
gwyddion:
Installed: (none)
Candidate: 2.57-0~ppa1~focal1
Version table:
2.
500 http://
2.55-3 500
500 http://
libgwyddion2-0:
Installed: 2.57-0~ppa1~focal1
Candidate: 2.57-0~ppa1~focal1
Version table:
*** 2.57-0~ppa1~focal1 500
500 http://
100 /var/lib/
2.55-3 500
500 http://
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
Revision history for this message
|
#3 |
Then you have two options.
Remove the PPA you added and install the version from the Ubuntu repos which we know will install
OR
Contact the PPA maintainer and wait for a response from them (if any comes at all).
I suggest the former. You can do this with:
sudo apt-get -y install ppa-purge
sudo ppa-purge ppa:gwyddion-
sudo apt-get --purge remove gwyddion libgwyddion2-0
sudo apt-get clean
sudo apt-get update
sudo apt-get -y install gwyddion
This will install the package for you from the official Ubuntu repository
Revision history for this message
|
#4 |
I had PPA because some months ago my Gwyddion could not load plugins.
Now, I did the steps you suggested, cleaned PPA and tied to install Gwyddion agan but I still have the same problem:
gwyddion:
Installed: (none)
Candidate: 2.57-0~ppa1~focal1
Version table:
2.
500 http://
2.55-3 500
500 http://
libgwyddion2-0:
Installed: (none)
Candidate: 2.57-0~ppa1~focal1
Version table:
2.
500 http://
2.55-3 500
500 http://
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
Discovery also fails with "Dependency resolution failed".
Just for informational purposes output of cache command:
gwyddion:
Installed: (none)
Candidate: 2.57-0~ppa1~focal1
Version table:
2.
500 http://
2.55-3 500
500 http://
libgwyddion2-0:
Installed: (none)
Candidate: 2.57-0~ppa1~focal1
Version table:
2.
500 http://
2.55-3 500
500 http://
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
Revision history for this message
|
#5 |
Please repeat the commands given in comment #3 and copy/paste all output that you receive when doing so into this question document.
Revision history for this message
|
#6 |
The PPA is still on the system. It needs removing
Revision history for this message
|
#7 |
@ actionparsnip: I figured as much but commands you provided are not effective.
@m-hampl: here is all the output:
esierda@
[sudo] password for esierda:
Reading package lists... Done
Building dependency tree
Reading state information... Done
ppa-purge is already the newest version (0.2.8+bzr63).
The following package was automatically installed and is no longer required:
gwyddion-common
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
esierda@
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
gwyddion-common
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 2784 kB disk space will be freed.
Do you want to continue? [Y/n] y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "",
LC_ALL = (unset),
LC_TIME = "en_GB.UTF-8",
LC_MONETARY = "nds_NL.UTF-8",
LC_ADDRESS = "nl_NL.UTF-8",
LC_NAME = "nl_NL.UTF-8",
LC_NUMERIC = "C",
LC_PAPER = "nl_NL.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 660875 files and directories currently installed.)
Removing gwyddion-common (2.57-0~
Processing triggers for shared-mime-info (1.15-1) ...
esierda@
Updating packages lists
W: GPG error: http://
E: The repository 'http://
W: GPG error: https:/
E: The repository 'https:/
W: GPG error: https:/
E: The repository 'https:/
Warning: apt-get update failed for some reason
esierda@
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'gwyddion' is not installed, so not removed
Package 'libgwyddion2-0' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
esierda@
esierda@
Hit:1 http://
Hit:2 http://
Hit:3 http://
Hit:4 http://
Hit:5 http://
Get:6 http://
Hit:7 http://
Hit:8 http://
Hit:9 https:/
Hit:10 https:/
Hit:12 https:/
Get:11 https:/
Err:6 http://
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D1742AD60D811D58
Get:13 https:/
Err:11 https:/
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 966A924CE91888D2
Err:13 https:/
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C5E224500C1289C0
Reading package lists... Done
W: GPG error: http://
E: The repository 'http://
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: https:/
E: The repository 'https:/
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: https:/
E: The repository 'https:/
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
esierda@
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
gwyddion : Depends: libgwyddion2-0 (>= 2.57) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Revision history for this message
|
#8 |
Some of the commands did not work, because you have some errors in the configuration of the package management system such that sudo apt update fails.
Run the command
sudo apt-key adv --keyserver keyserver.
and then run
sudo apt update
and copy/paste the results that we can see
Revision history for this message
|
#9 |
esierda@
Executing: /tmp/apt-
gpg: key C5E224500C1289C0: public key "TeamViewer GmbH (TeamViewer Linux 2017) <email address hidden>" imported
gpg: key 966A924CE91888D2: public key "Gijs Molenaar (launchpad ppa build key) <email address hidden>" imported
gpg: key D1742AD60D811D58: public key "Spotify Public Repository Signing Key <email address hidden>" imported
gpg: Total number processed: 3
gpg: imported: 3
gpg: invalid key resource URL '/tmp/apt-
gpg: keyblock resource '(null)': General error
gpg: key 4ABE1AC7557BEFF9: 1 signature not checked due to a missing key
gpg: key 3B4FE6ACC0B21F32: 3 signatures not checked due to missing keys
gpg: key D94AA3F0EFE21092: 3 signatures not checked due to missing keys
gpg: key 871920D1991BC93C: 1 signature not checked due to a missing key
gpg: Total number processed: 14
gpg: skipped new keys: 14
esierda@
Hit:1 http://
Get:2 http://
Hit:3 http://
Hit:4 http://
Hit:5 http://
Get:6 http://
Hit:7 https:/
Get:8 http://
Get:9 https:/
Hit:10 https:/
Get:11 http://
Hit:13 https:/
Get:12 https:/
Get:14 http://
Err:6 http://
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D1742AD60D811D58
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Err:9 https:/
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C5E224500C1289C0
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Err:12 https:/
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 966A924CE91888D2
Get:27 http://
Get:28 http://
Reading package lists... Done
W: GPG error: http://
E: The repository 'http://
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: https:/
E: The repository 'https:/
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: https:/
E: The repository 'https:/
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Revision history for this message
|
#10 |
wget -O /tmp/TeamViewer
sudo apt-key add /tmp/TeamViewer
sudo apt-key adv --keyserver hkp://keyserver
sudo apt-key adv --keyserver hkp://keyserver
wget -O /tmp/eduvpn.key https:/
sudo apt-key add /tmp/eduvpn.key
Should do it
Revision history for this message
|
#11 |
If this fails again, with a message like "gpg: invalid key resource URL '/tmp/apt-
sudo mv /etc/apt/
and try again
(from https:/
Revision history for this message
|
#12 |
After running commands from post #10 it was apparent that 2 of them did not work. Here is the apt update result:
esierda@
Hit:1 http://
Hit:2 http://
Hit:3 http://
Get:4 http://
Get:5 https:/
Hit:6 https:/
Hit:7 http://
Hit:8 https:/
Hit:9 http://
Hit:10 http://
Get:12 http://
Hit:13 https:/
Get:11 https:/
Err:4 http://
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D1742AD60D811D58
Err:5 https:/
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C5E224500C1289C0
Err:11 https:/
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 966A924CE91888D2
Get:14 http://
Get:15 http://
Reading package lists... Done
W: GPG error: http://
E: The repository 'http://
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: https:/
E: The repository 'https:/
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: https:/
E: The repository 'https:/
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Therefore I followed instructions from post #11 and this is what I got as an output:
esierda@
mv: cannot stat '/etc/apt/
Revision history for this message
|
#13 |
What output do you receive for
sudo apt-key adv --keyserver hkp://keyserver
sudo apt-key adv --keyserver hkp://keyserver
sudo apt-key adv --keyserver hkp://keyserver
Revision history for this message
|
#14 |
Here are the outputs:
esierda@
[sudo] password for esierda:
Executing: /tmp/apt-
gpg: key D1742AD60D811D58: public key "Spotify Public Repository Signing Key <email address hidden>" imported
gpg: Total number processed: 1
gpg: imported: 1
gpg: invalid key resource URL '/tmp/apt-
gpg: keyblock resource '(null)': General error
gpg: key 4ABE1AC7557BEFF9: 1 signature not checked due to a missing key
gpg: key 3B4FE6ACC0B21F32: 3 signatures not checked due to missing keys
gpg: key D94AA3F0EFE21092: 3 signatures not checked due to missing keys
gpg: key 871920D1991BC93C: 1 signature not checked due to a missing key
gpg: Total number processed: 12
gpg: skipped new keys: 12
esierda@
Executing: /tmp/apt-
gpg: key C5E224500C1289C0: public key "TeamViewer GmbH (TeamViewer Linux 2017) <email address hidden>" imported
gpg: Total number processed: 1
gpg: imported: 1
gpg: invalid key resource URL '/tmp/apt-
gpg: keyblock resource '(null)': General error
gpg: key 4ABE1AC7557BEFF9: 1 signature not checked due to a missing key
gpg: key 3B4FE6ACC0B21F32: 3 signatures not checked due to missing keys
gpg: key D94AA3F0EFE21092: 3 signatures not checked due to missing keys
gpg: key 871920D1991BC93C: 1 signature not checked due to a missing key
gpg: Total number processed: 12
gpg: skipped new keys: 12
esierda@
Executing: /tmp/apt-
gpg: key 966A924CE91888D2: public key "Gijs Molenaar (launchpad ppa build key) <email address hidden>" imported
gpg: Total number processed: 1
gpg: imported: 1
gpg: invalid key resource URL '/tmp/apt-
gpg: keyblock resource '(null)': General error
gpg: key 4ABE1AC7557BEFF9: 1 signature not checked due to a missing key
gpg: key 3B4FE6ACC0B21F32: 3 signatures not checked due to missing keys
gpg: key D94AA3F0EFE21092: 3 signatures not checked due to missing keys
gpg: key 871920D1991BC93C: 1 signature not checked due to a missing key
gpg: Total number processed: 12
gpg: skipped new keys: 12
Revision history for this message
|
#15 |
What is the output of the command
ls -la /etc/apt/
Revision history for this message
|
#16 |
total 48
drwxr-xr-x 2 root root 4096 Jan 20 22:44 .
drwxr-xr-x 7 root root 4096 Jan 20 22:44 ..
-rw-r--r-- 1 root root 345 Aug 24 19:24 fingerprint_
-rw-r--r-- 1 root root 359 Jan 19 15:32 gwyddion-
-rw-r--r-- 1 root root 1097 Jun 17 2020 isv:ownCloud:
-rw-r--r-- 1 root root 1203 Oct 2 18:18 mendeleydesktop.gpg
-rw-r--r-- 1 root root 641 Oct 27 14:50 microsoft.gpg
-rw-r--r-- 1 root root 2772 Apr 15 2019 nordvpn-keyring.gpg
-rw-r--r-- 1 root root 3868 Dec 17 21:56 nordvpn_public.asc
-rw-r--r-- 1 root root 2796 Apr 9 2020 ubuntu-
-rw-r--r-- 1 root root 2794 Apr 9 2020 ubuntu-
-rw-r--r-- 1 root root 1733 Apr 9 2020 ubuntu-
Revision history for this message
|
#17 |
Try the following command
sudo mv /etc/apt/
If this gives an output, then please copy/paste it into the question document.
If there is no output, then continue with
sudo apt-key adv --keyserver hkp://keyserver
sudo apt-key adv --keyserver hkp://keyserver
sudo apt-key adv --keyserver hkp://keyserver
and copy/paste the output , too.
Revision history for this message
|
#18 |
The first command did not give any input so I followed it with the other 3.
Here is the output:
esierda@
Executing: /tmp/apt-
gpg: key D1742AD60D811D58: public key "Spotify Public Repository Signing Key <email address hidden>" imported
gpg: Total number processed: 1
gpg: imported: 1
esierda@
Executing: /tmp/apt-
gpg: key C5E224500C1289C0: public key "TeamViewer GmbH (TeamViewer Linux 2017) <email address hidden>" imported
gpg: Total number processed: 1
gpg: imported: 1
esierda@
Executing: /tmp/apt-
gpg: key 966A924CE91888D2: public key "Gijs Molenaar (launchpad ppa build key) <email address hidden>" imported
gpg: Total number processed: 1
gpg: imported: 1
Revision history for this message
|
#19 |
Ok, if you run:
sudo apt-get update
Is it smooth?
Revision history for this message
|
#20 |
Yes. This time update was smooth.
esierda@
[sudo] password for esierda:
Hit:1 http://
Hit:2 http://
Hit:3 http://
Hit:4 http://
Hit:5 http://
Hit:6 https:/
Hit:7 https:/
Hit:8 https:/
Hit:9 https:/
Hit:10 https:/
Hit:11 http://
Hit:12 http://
Get:13 http://
Fetched 109 kB in 3s (42.7 kB/s)
Reading package lists... Done
Revision history for this message
|
#21 |
ok, now you can re-start with actionparsnip's commands in comment #3
Revision history for this message
|
#22 |
It worked this time and I could install gwyddion. Thank you all for your help.
Still, version installed in 2.55-3 and when I start it it cannot load any modules. Do you have any suggestions what is the best course of action here?
Revision history for this message
|
#23 |
Not something I use or know anything about at all. Now it's installed I suggest you create a new question about its configuration. Are there any Gwyddion specific forums online? If so then I'd post there as well.
Revision history for this message
|
#24 |
Thanks Manfred Hampl, that solved my question.
Revision history for this message
|
#25 |
I do not know any details about gwyddion; I do not know what "loading modules" means in that context.
If you think that you need version 2.57 or higher, I see the following options for you:
I assume the root cause is a confusion of depends source:version and binary:version in the control file. This problem seems to come from the package in Debian, but does not prevent installing there, because there is no PPA suffix in the version.
1. Try getting in contact with the Gwyddion-Spm team, see https:/
2. Try manually downloading and installing version 2.57-1 from the Ubuntu repositories for hirsute
3. Try building the packages yourself and correct the dependency problem (I assume replacing source:version by binary:version in the control file should help).
4. In any case you can try asking on gwyddion forums, see e.g. https:/