Can't install packages using pacman [invalid or corrupted package (PGP signature))]

When i try to install some packages using pacman such as libreoffice-still or texlive-most, I get a invalid signature error.

>:: Proceed with installation? [Y/n] y
> :: Retrieving packages...
> (5/5) checking keys in keyring                                          [########################################] 100%
> (5/5) checking package integrity                                        [########################################] 100%
> error: libreoffice-still: signature from "Andreas Radke <andyrtr@archlinux.org>" is invalid
> :: File /var/cache/pacman/pkg/libreoffice-still-5.1.6-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
> Do you want to delete it? [Y/n] y
> error: failed to commit transaction (invalid or corrupted package (PGP signature))
> Errors occurred, no packages were upgraded.

`
I tried to refresh keys but that didn't work. Also i get same error when i use

mhwd- kernel -i linux48

Please help me resolve the issue.

try using all of the following commands

sudo rm -r /etc/pacman.d/gnupg
sudo pacman -Sy gnupg archlinux-keyring manjaro-keyring
sudo pacman-key --init
sudo pacman-key --populate archlinux manjaro 
sudo pacman-key --refresh-keys 
sudo pacman -Sc

They are going to
Remove old (and possibly broken) keys
Reinstall keyrings including the latest keys
Initialize the pacman keyring
Load the signature keys
Refresh and update the signature keys
Clear out the software packages downloaded during the aborted installation

if this has fixed your using please click on the mark as solution button on the forum

3 Likes

I tried doing the above procedure in the given order but i can't do the second step, it is asking me to do the third step. The error i get when i do the second step is

sudo pacman -Sy gnupg archlinux-keyring manjaro-keyring
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
warning: gnupg-2.1.15-1 is up to date -- reinstalling
warning: archlinux-keyring-20161021-1 is up to date -- reinstalling
warning: manjaro-keyring-20160527-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (3) archlinux-keyring-20161021-1 gnupg-2.1.15-1 manjaro-keyring-20160527-1

Total Installed Size: 9.11 MiB
Net Upgrade Size: 0.00 MiB

:: Proceed with installation? [Y/n] y
(3/3) checking keys in keyring [########################################] 100%
warning: Public keyring not found; have you run 'pacman-key --init'?
downloading required keys...
error: key "E62F853100F0D0F0" could not be looked up remotely
error: key "7F2D434B9741E8AC" could not be looked up remotely
error: key "CAA6A59611C7F07E" could not be looked up remotely
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

Can i do the third step before second step ?

yes try it also make sure your system time is set up correctly

I couldn't do the second step even after the third step. I am getting this error

sudo pacman -Sy gnupg archlinux-keyring manjaro-keyring
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
warning: gnupg-2.1.15-1 is up to date -- reinstalling
warning: archlinux-keyring-20161021-1 is up to date -- reinstalling
warning: manjaro-keyring-20160527-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (3) archlinux-keyring-20161021-1 gnupg-2.1.15-1 manjaro-keyring-20160527-1

Total Download Size: 2.44 MiB
Total Installed Size: 9.11 MiB
Net Upgrade Size: 0.00 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
gnupg-2.1.15-1-x86_64 1856.3 KiB 1011K/s 00:02 [########################################] 100%
archlinux-keyring-20161021-1-any 583.3 KiB 247K/s 00:02 [########################################] 100%
manjaro-keyring-20160527-1-any 59.0 KiB 190K/s 00:00 [########################################] 100%
(3/3) checking keys in keyring [########################################] 100%
downloading required keys...
:: Import PGP key 2048D/5A2257D19FF7E1E0E415968CE62F853100F0D0F0, "Gaetan Bisson bisson@nsup.org", created: 2010-01-10? [Y/n] Y
:: Import PGP key 2048R/4AA4767BBC9C4B1D18AE28B77F2D434B9741E8AC, "Pierre Schmitz pierre@archlinux.de", created: 2011-04-10? [Y/n] Y
:: Import PGP key 2048R/E4CDFE50A2DA85D58C8A8C70CAA6A59611C7F07E, "Philip Müller (Called Little) philm@manjaro.org", created: 2012-05-05? [Y/n] Y
(3/3) checking package integrity [########################################] 100%
error: gnupg: signature from "Gaetan Bisson gaetan@fenua.org" is unknown trust
:: File /var/cache/pacman/pkg/gnupg-2.1.15-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] Y
error: archlinux-keyring: signature from "Pierre Schmitz pierre@archlinux.de" is unknown trust
:: File /var/cache/pacman/pkg/archlinux-keyring-20161021-1-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] Y
error: manjaro-keyring: signature from "Philip Müller (Called Little) philm@manjaro.org" is unknown trust
:: File /var/cache/pacman/pkg/manjaro-keyring-20160527-1-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] Y
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

This is my system time status.

timedatectl status
Local time: Sun 2016-11-06 16:41:47 IST
Universal time: Sun 2016-11-06 11:11:47 UTC
RTC time: Sun 2016-11-06 11:11:47
Time zone: Asia/Kolkata (IST, +0530)
Network time on: yes
NTP synchronized: yes
RTC in local TZ: no

Local time is correct according to my time zone. Not sure about RTC and Universal time.

it looks like you have messed up you key management pretty badly.

if nothing else helps, you can use the "fix pacman errors" option in pacli-simple. but you cannot install pacli-simple anymore, either.

i recommend to download the "pacli" file directly from the github page. then, mark it as executable and start it in your terminal (i assume you know how to do this. ask, if this is not the case) and choose "fix pacman errors". it might take a while until everything is fixed.

please report back, whether it worked and what problems you have afterwards (e.g. manjaro shows the wrong time).

1 Like

pacli-simple is giving me this error

Enter number or marked letter(s) and press [Enter] - 0 Quit Pacli
14

:: Randomizing server list...
:: Generated and saved '/etc/pacman.d/mirrorlist' mirrorlist.

:: Synchronizing package databases...
core 138.8 KiB 194K/s 00:01 [########################################] 100%
extra 1920.0 KiB 1051K/s 00:02 [########################################] 100%
community 4.1 MiB 1018K/s 00:04 [########################################] 100%
multilib 194.3 KiB 14.6M/s 00:00 [########################################] 100%

Spider mode enabled. Check if remote file exists.
--2016-11-06 17:18:07-- http://mirror.netzspielplatz.de/manjaro
Resolving mirror.netzspielplatz.de (mirror.netzspielplatz.de)... 176.9.92.49, 64:ff9b::b009:5c31
Connecting to mirror.netzspielplatz.de (mirror.netzspielplatz.de)|176.9.92.49|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://mirror.int.planetexpress.cc/manjaro/ [following]
Spider mode enabled. Check if remote file exists.
--2016-11-06 17:18:08-- http://mirror.int.planetexpress.cc/manjaro/
Resolving mirror.int.planetexpress.cc (mirror.int.planetexpress.cc)... 176.9.92.49, 64:ff9b::b009:5c31
Connecting to mirror.int.planetexpress.cc (mirror.int.planetexpress.cc)|176.9.92.49|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://mirror.int.planetexpress.cc/manjaro/ [following]
Spider mode enabled. Check if remote file exists.
--2016-11-06 17:18:09-- https://mirror.int.planetexpress.cc/manjaro/
Connecting to mirror.int.planetexpress.cc (mirror.int.planetexpress.cc)|176.9.92.49|:443... connected.
ERROR: cannot verify mirror.int.planetexpress.cc's certificate, issued by ‘OU=Domain CA,O=Int’:
Unable to locally verify the issuer's authority.
To connect to mirror.int.planetexpress.cc insecurely, use `--no-check-certificate'.
:: Synchronizing package databases...
core 138.8 KiB 194K/s 00:01 [########################################] 100%
extra 1920.0 KiB 139K/s 00:14 [########################################] 100%
community 4.1 MiB 39.0K/s 01:46 [########################################] 100%
multilib 194.3 KiB 76.1K/s 00:03 [########################################] 100%
:: Starting full system upgrade...
warning: menulibre: downgrading from version 1:2.1.0-1 to version 2.1.3-1
resolving dependencies...
looking for conflicting packages...

Packages (1) menulibre-2.1.3-1

Total Download Size: 0.16 MiB
Total Installed Size: 1.72 MiB
Net Upgrade Size: 0.04 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
menulibre-2.1.3-1-any 159.8 KiB 55.7K/s 00:03 [########################################] 100%
(1/1) checking keys in keyring [########################################] 100%
(1/1) checking package integrity [########################################] 100%
error: menulibre: signature from "Stefano Capitani stefano@manjaro.org" is unknown trust
:: File /var/cache/pacman/pkg/menulibre-2.1.3-1-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.
Either there is something wrong with your internet connection or http://mirror.netzspielplatz.de/manjaro is down.
Please make sure both are ok and rerun this part of Pacli, if your Problems persist.

Most common Pacman errors fixed and system updated. To return to pacli press ENTER

Can you tell me why this is happening and how to resolve this invalid signature issue ?

oh, it looks like you found a bug. i have just fixed the bug.

please delete the "pacli" file and start over with the instructions from my previous post.

pacli competed successfully but invalid signature error still persists. Here is the pacli output

Enter number or marked letter(s) and press [Enter] - 0 Quit Pacli
14

:: Randomizing server list...
:: Generated and saved '/etc/pacman.d/mirrorlist' mirrorlist.

:: Synchronizing package databases...
core 138.8 KiB 123K/s 00:01 [########################################] 100%
extra 1920.0 KiB 33.1K/s 00:58 [########################################] 100%
community 4.1 MiB 35.8K/s 01:56 [########################################] 100%
multilib 194.3 KiB 24.1K/s 00:08 [########################################] 100%

Spider mode enabled. Check if remote file exists.
--2016-11-06 17:44:02-- http://mirror.netzspielplatz.de/manjaro/
Resolving mirror.netzspielplatz.de (mirror.netzspielplatz.de)... 176.9.92.49
Connecting to mirror.netzspielplatz.de (mirror.netzspielplatz.de)|176.9.92.49|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Remote file exists and could contain further links,
but recursion is disabled -- not retrieving.

dirmngr[5422.0]: error opening '/root/.gnupg/dirmngr_ldapservers.conf': No such file or directory
dirmngr[5422.0]: permanently loaded certificates: 0
dirmngr[5422.0]: runtime cached certificates: 0
dirmngr[5422.0]: failed to open cache dir file '/root/.gnupg/crls.d/DIR.txt': No such file or directory
dirmngr[5422.0]: creating directory '/root/.gnupg/crls.d'
dirmngr[5422.0]: new cache dir file '/root/.gnupg/crls.d/DIR.txt' created

Home: /root/.gnupg

Config: [none]

OK Dirmngr 2.1.15 at your service

--2016-11-06 17:44:07-- http://mirror.netzspielplatz.de/manjaro/packages/stable/community/x86_64/networkmanager-dispatcher-ntpd-1.0-6-any.pkg.tar.xz
Resolving mirror.netzspielplatz.de (mirror.netzspielplatz.de)... 176.9.92.49
Connecting to mirror.netzspielplatz.de (mirror.netzspielplatz.de)|176.9.92.49|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1928 (1.9K) [text/plain]
Saving to: ‘networkmanager-dispatcher-ntpd-1.0-6-any.pkg.tar.xz’

networkmanager-dispatcher-ntp 100%[================================================>] 1.88K --.-KB/s in 0s

2016-11-06 17:44:08 (50.4 MB/s) - ‘networkmanager-dispatcher-ntpd-1.0-6-any.pkg.tar.xz’ saved [1928/1928]

loading packages...
warning: networkmanager-dispatcher-ntpd-1.0-6 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) networkmanager-dispatcher-ntpd-1.0-6

Total Installed Size: 0.00 MiB
Net Upgrade Size: 0.00 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [########################################] 100%
(1/1) checking package integrity [########################################] 100%
(1/1) loading package files [########################################] 100%
(1/1) checking for file conflicts [########################################] 100%
(1/1) checking available disk space [########################################] 100%
:: Processing package changes...
(1/1) reinstalling networkmanager-dispatcher-ntpd [########################################] 100%

6 Nov 17:44:08 ntpd[5445]: ntpd 4.2.8p8@1.3265-o Sat Jun 4 14:58:28 UTC 2016 (1): Starting
6 Nov 17:44:08 ntpd[5445]: Command line: ntpd -qg
6 Nov 17:44:08 ntpd[5445]: proto: precision = 0.057 usec (-24)
6 Nov 17:44:08 ntpd[5445]: Listen and drop on 0 v6wildcard [::]:123
6 Nov 17:44:08 ntpd[5445]: Listen and drop on 1 v4wildcard 0.0.0.0:123
6 Nov 17:44:08 ntpd[5445]: Listen normally on 2 lo 127.0.0.1:123
6 Nov 17:44:08 ntpd[5445]: Listen normally on 3 wlp2s0 172.16.83.215:123
6 Nov 17:44:08 ntpd[5445]: Listen normally on 4 lo [::1]:123
6 Nov 17:44:08 ntpd[5445]: Listen normally on 5 wlp2s0 [fe80::929:ff95:64b8:761c%3]:123
6 Nov 17:44:08 ntpd[5445]: Listening on routing socket on fd #22 for interface updates
6 Nov 17:44:10 ntpd[5445]: ntpd: time slew +0.005338 s
ntpd: time slew +0.005338s

--2016-11-06 17:44:31-- http://mirror.netzspielplatz.de/manjaro/packages/stable/core/x86_64/gnupg-2.1.15-1-x86_64.pkg.tar.xz
Resolving mirror.netzspielplatz.de (mirror.netzspielplatz.de)... 176.9.92.49
Connecting to mirror.netzspielplatz.de (mirror.netzspielplatz.de)|176.9.92.49|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1900856 (1.8M) [text/plain]
Saving to: ‘gnupg-2.1.15-1-x86_64.pkg.tar.xz’

gnupg-2.1.15-1-x86_64.pkg.tar 100%[================================================>] 1.81M 374KB/s in 5.0s

2016-11-06 17:44:37 (374 KB/s) - ‘gnupg-2.1.15-1-x86_64.pkg.tar.xz’ saved [1900856/1900856]

loading packages...
warning: gnupg-2.1.15-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) gnupg-2.1.15-1

Total Installed Size: 8.25 MiB
Net Upgrade Size: 0.00 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [########################################] 100%
(1/1) checking package integrity [########################################] 100%
(1/1) loading package files [########################################] 100%
(1/1) checking for file conflicts [########################################] 100%
(1/1) checking available disk space [########################################] 100%
:: Processing package changes...
(1/1) reinstalling gnupg [########################################] 100%
:: Running post-transaction hooks...
(1/1) Updating the info directory file...

--2016-11-06 17:44:37-- http://mirror.netzspielplatz.de/manjaro/packages/stable/core/x86_64/archlinux-keyring-20161021-1-any.pkg.tar.xz
Resolving mirror.netzspielplatz.de (mirror.netzspielplatz.de)... 176.9.92.49
Connecting to mirror.netzspielplatz.de (mirror.netzspielplatz.de)|176.9.92.49|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 597312 (583K) [text/plain]
Saving to: ‘archlinux-keyring-20161021-1-any.pkg.tar.xz’

archlinux-keyring-20161021-1- 100%[================================================>] 583.31K 402KB/s in 1.5s

2016-11-06 17:44:39 (402 KB/s) - ‘archlinux-keyring-20161021-1-any.pkg.tar.xz’ saved [597312/597312]

loading packages...
warning: archlinux-keyring-20161021-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) archlinux-keyring-20161021-1

Total Installed Size: 0.78 MiB
Net Upgrade Size: 0.00 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [########################################] 100%
(1/1) checking package integrity [########################################] 100%
(1/1) loading package files [########################################] 100%
(1/1) checking for file conflicts [########################################] 100%
(1/1) checking available disk space [########################################] 100%
:: Processing package changes...
(1/1) reinstalling archlinux-keyring [########################################] 100%

--2016-11-06 17:44:39-- http://mirror.netzspielplatz.de/manjaro/packages/stable/core/x86_64/manjaro-keyring-20160527-1-any.pkg.tar.xz
Resolving mirror.netzspielplatz.de (mirror.netzspielplatz.de)... 176.9.92.49
Connecting to mirror.netzspielplatz.de (mirror.netzspielplatz.de)|176.9.92.49|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 60452 (59K) [text/plain]
Saving to: ‘manjaro-keyring-20160527-1-any.pkg.tar.xz’

manjaro-keyring-20160527-1-an 100%[================================================>] 59.04K 192KB/s in 0.3s

2016-11-06 17:44:40 (192 KB/s) - ‘manjaro-keyring-20160527-1-any.pkg.tar.xz’ saved [60452/60452]

loading packages...
warning: manjaro-keyring-20160527-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) manjaro-keyring-20160527-1

Total Installed Size: 0.08 MiB
Net Upgrade Size: 0.00 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [########################################] 100%
(1/1) checking package integrity [########################################] 100%
(1/1) loading package files [########################################] 100%
(1/1) checking for file conflicts [########################################] 100%
(1/1) checking available disk space [########################################] 100%
:: Processing package changes...
(1/1) reinstalling manjaro-keyring [########################################] 100%

Run pacman-key --init to set up your pacman keyring.
Then run pacman-key --populate manjaro to install the Manjaro keyring.

gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
gpg: Generating pacman keyring master key...
gpg: key D97DA2C47948CDBB marked as ultimately trusted
gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/7C820FE4E68A2EFBDF73C61CD97DA2C47948CDBB.rev'
gpg: Done
==> Updating trust database...
gpg: marginals needed: 3 completes needed: 1 trust model: pgp
gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u

==> Appending keys from archlinux.gpg...
==> Appending keys from manjaro.gpg...
==> Locally signing trusted keys in keyring...
-> Locally signing key 7C89F4D439B2BFACF425107B62443D89B35859F8...
-> Locally signing key 22C903DE964E6FE321656E318DB9F8C18DF53602...
-> Locally signing key 0E8B644079F599DFC1DDC3973348882F6AC6A4C2...
-> Locally signing key 16DC688DF3EECC72323954237EC47C82A42D53A2...
-> Locally signing key 5A97ED6B72418199F0C22B23137C934B5DCB998E...
-> Locally signing key B4663188A692DB1E45A98EE95BD96CC4247B52CC...
-> Locally signing key 2C688B52E3FC0144B7484BABE3B3F44AC45EE0AA...
-> Locally signing key 684148BB25B49E986A4944C55184252D824B18E8...
-> Locally signing key 91FFE0700E80619CEB73235CA88E23E377514E00...
-> Locally signing key 35B4FF23EA9477582C2A0AF12B80869C5C0102A6...
-> Locally signing key 1E7908935AAB9A00D6B47503363DFFFD59152F77...
-> Locally signing key 44D4A033AC140143927397D47EFD567D4C7EA887...
-> Locally signing key 77DC01C9971AC3C39A0626F72C089F09AC97B894...
-> Locally signing key 74C2F2CC05A0AB7D859839938934292D604F8BA2...
-> Locally signing key 39F0EC1AE50B37E5F3196F09DAD3B211663CA268...
-> Locally signing key 27FFC4769E19F096D41D9265A04F9397CDFD6BB0...
-> Locally signing key E4CDFE50A2DA85D58C8A8C70CAA6A59611C7F07E...
-> Locally signing key AB19265E5D7D20687D303246BA1DFB64FFF979E7...
==> Importing owner trust values...
gpg: inserting ownertrust of 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
==> Disabling revoked keys in keyring...
-> Disabling key F5A361A3A13554B85E57DDDAAF7EF7873CFD4BB6...
-> Disabling key 7FA647CD89891DEDC060287BB9113D1ED21E1A55...
-> Disabling key D4DE5ABDE2A7287644EAC7E36D1A9E70E19DAA50...
-> Disabling key BC1FBE4D2826A0B51E47ED62E2539214C6C11350...
-> Disabling key FAA6840E8C3FC7F89BEE0DC8AC7AB10BCB6CDD17...
-> Disabling key 9515D8A8EAB88E49BB65EDBCE6B456CAF15447D5...
-> Disabling key 4A8B17E20B88ACA61860009B5CED81B7C2E5C0D2...
-> Disabling key 63F395DE2D6398BBE458F281F2DBB4931985A992...
-> Disabling key 0B20CA1931F5DA3A70D0F8D2EA6836E1AB441196...
-> Disabling key 8F76BEEA0289F9E1D3E229C05F946DED983D4366...
-> Disabling key 540DE7083B89314CF70EA6F0C1B1AD0DA80EBF3E...
-> Disabling key 66BD74A036D522F51DD70A3C7F2A16726521E06D...
-> Disabling key 81D7F8241DB38BC759C80FCE3A726C6170E80477...
-> Disabling key E7210A59715F6940CF9A4E36A001876699AD6E84...
==> Updating trust database...
gpg: marginals needed: 3 completes needed: 1 trust model: pgp
gpg: depth: 0 valid: 1 signed: 18 trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1 valid: 18 signed: 67 trust: 0-, 0q, 0n, 18m, 0f, 0u
gpg: depth: 2 valid: 67 signed: 7 trust: 67-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2016-12-31

Packages to keep:
All locally installed packages

Cache directory: /var/cache/pacman/pkg/
:: Do you want to remove all other packages from cache? [Y/n]
removing old packages from cache...
error: could not open file /var/cache/pacman/pkg/linux48-4.8.4-1-x86_64.pkg.tar.xz: Unrecognized archive format

Database directory: /var/lib/pacman/
:: Do you want to remove unused repositories? [Y/n]
removing unused sync repositories...

:: Synchronizing package databases...
core 138.8 KiB 195K/s 00:01 [########################################] 100%
extra 1920.0 KiB 630K/s 00:03 [########################################] 100%
community 4.1 MiB 963K/s 00:04 [########################################] 100%
multilib 194.3 KiB 7.90M/s 00:00 [########################################] 100%
:: Starting full system upgrade...
warning: menulibre: downgrading from version 1:2.1.0-1 to version 2.1.3-1
resolving dependencies...
looking for conflicting packages...

Packages (1) menulibre-2.1.3-1

Total Download Size: 0.16 MiB
Total Installed Size: 1.72 MiB
Net Upgrade Size: 0.04 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
menulibre-2.1.3-1-any 159.8 KiB 5.78M/s 00:00 [########################################] 100%
(1/1) checking keys in keyring [########################################] 100%
(1/1) checking package integrity [########################################] 100%
(1/1) loading package files [########################################] 100%
(1/1) checking for file conflicts [########################################] 100%
(1/1) checking available disk space [########################################] 100%
:: Processing package changes...
(1/1) downgrading menulibre [########################################] 100%
:: Running post-transaction hooks...
(1/2) Updating icon theme caches...
(2/2) Updating the desktop file MIME type cache...

:: Starting full system upgrade...
there is nothing to do

Most common Pacman errors fixed and system updated. To return to pacli press ENTER

can it be something wrong with system time ?

now, the latest versions of gnupg archlinux-keyring manjaro-keyring are now installed on your system. so, there is one problem solved.
also, it looks like your system is up to date and the package "menulibre" has been updated (without any key/PGP errors).

the output of pacli-simple looks normal. i do not see anything suspicious in it.
in fact, the output tells me that all keys were installed successfully in your system, which means there should not be any key/PGP problems anymore!

pacli-simple also sets the clock for you, so the system time should be fine.
i do not know why pacli-simple was able to update "menulibre" for you and you are not able to install packages. this is very strange.

i cannot help you any further, but please contact me if you find a solution to this problem. then, i can implement it into pacli-simple.

1 Like

Thank you for replying. I can install some packages but not all. Packages like emacs can be installed whereas libreoffice, texlive, linux48 gives me invaid signature error :cry:

I think i found out the problem. It might be the case that my ISP(college WiFi) has blocked either the keyserver or port.

Can someone provide me with another keyserver address(preferably one which uses port 80) like the one mentioned in arch wiki.https://wiki.archlinux.org/index.php/Pacman/Package_signing#Cannot_import_keys .

2 Likes

Why not
keyserver hkp://keyserver.kjsl.com:80
?

It didn't help. I guess the problem is not with the keys. It is most likely because of my college limiting the download size of large file (greater than 50MB), such packages start download but after downloading about 50MB it stops and becomes corrupted and gives me invalid signature error.

Can i somehow make pacman download packages as smaller files or something ? or is there any mechanism by which i can bypass this download size limitation ?

You can try downloading libreoffice (-fresh or -still) with wget and installing it locally with
sudo pacman -U /path/to/libreoffice.pkg.tar.xz
Select a repo in a location close to you http://repo.manjaro.org/
and download for example with:

wget http://mirror.dacentec.com/manjaro/stable/extra/x86_64/libreoffice-still-5.1.6-1-x86_64.pkg.tar.xz
wget http://mirror.dacentec.com/manjaro/stable/extra/x86_64/libreoffice-still-5.1.6-1-x86_64.pkg.tar.xz.sig
gpg --verify libreoffice-still-5.1.6-1-x86_64.pkg.tar.xz.sig
sudo pacman -U libreoffice-still-5.1.6-1-x86_64.pkg.tar.xz

For linux48 you need to get it from the repo folder /core

wget http://mirror.dacentec.com/manjaro/stable/core/x86_64/linux48-4.8.5-2-x86_64.pkg.tar.xz
wget http://mirror.dacentec.com/manjaro/stable/core/x86_64/linux48-4.8.5-2-x86_64.pkg.tar.xz.sig
gpg --verify linux48-4.8.5-2-x86_64.pkg.tar.xz.sig
sudo pacman -U linux48-4.8.5-2-x86_64.pkg.tar.xz
1 Like

That will do it. Thank you for the reply. :smile:

Is there anyway i can get list of dependencies or conflicts on installation of a package and the order in which i should install them ? (So that i can use the above method for packages with multiple/dependencies).

From within the Graphical package manager. The command pactree libreoffice-still is quite powerful. Or better install pacli, it works in the terminal and is quite handy no need to memorize pacman commands. (*dodging the stone thrown by a pacman zealot*)

But maybe it is worth changing the settings of /etc/pacman.conf to make pacman use wget to download packages in the long term. https://wiki.archlinux.org/index.php/Pacman/Tips_and_tricks#Download_speeds

As @eugen-b wrote, there is an option in /etc/pacman.conf to use wget with pacman. Try to uncomment it:

XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u

I guess the same occured a couple of months ago to @ayu5h, yet unfortunately is was not solved. Cf.

use "aria2" as download helper for pacman as described here: https://wiki.archlinux.org/index.php/Pacman/Tips_and_tricks#aria2
in theory, aria2 should split up files into multiple parts (smaller than 50mb) and download all parts in parallel. this should circumvent the 50mb limitation and maybe speed up download as well.

3 Likes

Forum kindly sponsored by