Unable to upgrade database
This is because the Pacman database was locked due to previous operation exceptions, so you can unlock it manually.
The command is as follows:
rm -f /var/lib/pacman/db.lck
Re-execute pacman -Syu
Unable to upgrade database
This is because the Pacman database was locked due to previous operation exceptions, so you can unlock it manually.
The command is as follows:
rm -f /var/lib/pacman/db.lck
Re-execute pacman -Syu
Because I just changed to the archlinux system, I reported an error when installing the VirtualBox. As shown below:
But how to solve it?I read a lot of information, most of which are Ubuntu, not archlinux
But the principles are almost the same, and I have studied them through it. Step 1 :
I checked the VBox related (service) commands currently installed on my system
Generally, I can’t see anything. I see the error report of VirtualBox. I checked the data, step 2 :
Therefore, this command exists and can’t be used. The error message refers to the kernel and so on Step 3 :
After reading the articles written by Ubuntu users, it roughly means to update the system’s hear file so that the VirtualBox can be used
According to the research, I found that archlinux also uses the Linux headers package. Found after installation:
Problem solving: the original command reloads the VirtualBox successfully
Attached, when looking for a solution to the problem, I saw a Portuguese friend say a little secret
Share with you: recompile the kernel module predecessor/etc/init.d/vboxdrv, which was later set to/SBIN/rcvboxdrv.
Error example:
error: python-pytoml: signature from "Eli Schwartz <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/python-pytoml-0.1.20-1-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Check the status of the key with the following command:
$ sudo pacman-key --list-sigs Schwartz
pub rsa4096 2016-05-04 [SC] [expired: 2018-12-13]
BD27B07A5EF45C2ADAF70E0484818A6819AF4A9B
uid [ expired] Eli Schwartz <[email protected]>
sig 5184252D824B18E8 2018-03-11 Thomas Bächler (Arch Linux Master Key) <[email protected]>
sig BA1DFB64FFF979E7 2018-01-08 Allan McRae (Arch Linux Master Key) <[email protected]>
sig 9B729B06A680C281 2017-12-25 Bartłomiej Piotrowski (Arch Linux Master Key) <[email protected]>
sig A88E23E377514E00 2017-12-25 Florian Pritz (Arch Linux Master Key) <[email protected]>
sig 3 84818A6819AF4A9B 2017-07-19 Eli Schwartz <[email protected]>
uid [ expired] Eli Schwartz <[email protected]>
sig 5184252D824B18E8 2018-03-11 Thomas Bächler (Arch Linux Master Key) <[email protected]>
sig BA1DFB64FFF979E7 2018-01-08 Allan McRae (Arch Linux Master Key) <[email protected]>
sig 9B729B06A680C281 2017-12-25 Bartłomiej Piotrowski (Arch Linux Master Key) <[email protected]>
sig A88E23E377514E00 2017-12-25 Florian Pritz (Arch Linux Master Key) <[email protected]>
sig 3 84818A6819AF4A9B 2016-12-13 Eli Schwartz <[email protected]>
The prompt here is expired, so you can refresh the time directly
$ sudo pacman-key --refresh-keys
However, if there is no problem, you need to check the key status of the master group
$ sudo pacman-key --list-sigs Master
Find the abnormal key, such as:
gpg: Note: trustdb not writable
pub rsa2048 2016-12-07 [SC]
D3F30F9C1EF74DDE6C546115FA7F75A4CCFCBCB7
uid [ultimate] Pacman Keyring Master Key <pacman@localhost>
sig 3 FA7F75A4CCFCBCB7 2016-12-07 Pacman Keyring Master Key <pacman@localhost>
pub rsa4096 2011-11-29 [SC]
AB19265E5D7D20687D303246BA1DFB64FFF979E7
uid [ full ] Allan McRae (Arch Linux Master Key) <[email protected]>
sig 3EC72E5826BD94C2 2012-02-05 [User ID not found]
rev 3EC72E5826BD94C2 2012-02-05 [User ID not found]
sig F99FFE0FEAE999BD 2011-11-30 Allan McRae <[email protected]>
sig 06096A6AD1CEDDAC 2011-11-30 Laurent Carlier <[email protected]>
sig B773EB82DABACDA8 2013-08-16 [User ID not found]
sig 7ACFA647C5B3322D 2014-05-27 [User ID not found]
sig C3918344475A229F 2015-09-23 [User ID not found]
sig 872E6714EAF5EC44 2014-04-09 [User ID not found]
sig 80394F9187983512 2016-11-14 [User ID not found]
sig A9358D7DDD12F986 2012-02-29 [User ID not found]
sig 5F03C767C247A4D5 2017-08-17 [User ID not found]
sig 2 P 09B69B615AD10C8E 2015-12-01 [User ID not found]
sig 1 P 8508252F9B301536 2017-03-23 [User ID not found]
sig 3 BA1DFB64FFF979E7 2011-11-29 Allan McRae (Arch Linux Master Key) <[email protected]>
sig L FA7F75A4CCFCBCB7 2016-12-07 Pacman Keyring Master Key <pacman@localhost>
pub rsa3072 2011-11-29 [SC] [revoked: 2011-11-29]
27FFC4769E19F096D41D9265A04F9397CDFD6BB0
rev A04F9397CDFD6BB0 2011-11-29 Dan McGee (Arch Linux Master Key) <[email protected]>
uid [ revoked] Dan McGee (Arch Linux Master Key) <[email protected]>
sig 3 A04F9397CDFD6BB0 2011-11-29 Dan McGee (Arch Linux Master Key) <[email protected]>
sig L FA7F75A4CCFCBCB7 2016-12-07 Pacman Keyring Master Key <pacman@localhost>
sig 5C2E46A0F53A76ED 2011-11-29 Dan McGee <[email protected]>
sig 06096A6AD1CEDDAC 2011-11-30 Laurent Carlier <[email protected]>
sig 7ACFA647C5B3322D 2014-05-27 [User ID not found]
sig 872E6714EAF5EC44 2014-04-09 [User ID not found]
sig 80394F9187983512 2016-11-14 [User ID not found]
sig A9358D7DDD12F986 2012-02-29 [User ID not found]
sig 2 P 09B69B615AD10C8E 2015-12-01 [User ID not found]
pub rsa4096 2015-12-17 [SC]
91FFE0700E80619CEB73235CA88E23E377514E00
uid [ undef ] Florian Pritz (Arch Linux Master Key) <[email protected]>
sig 3 A88E23E377514E00 2015-12-17 Florian Pritz (Arch Linux Master Key) <[email protected]>
sig 1 P 2 AA14E96200F5E006 2017-09-14 [User ID not found]
sig 80394F9187983512 2016-11-14 [User ID not found]
sig 6D1655C14CE1C13E 2015-12-17 Florian Pritz <[email protected]>
sig 2 5F03C767C247A4D5 2017-08-17 [User ID not found]
sig 1 P 8508252F9B301536 2017-03-23 [User ID not found]
sub rsa4096 2015-12-17 [E]
sig L FA7F75A4CCFCBCB7 2016-12-07 Pacman Keyring Master Key <pacman@localhost>
sig A88E23E377514E00 2015-12-17 Florian Pritz (Arch Linux Master Key) <[email protected]>
sub rsa4096 2015-12-17 [E]
sig A88E23E377514E00 2015-12-17 Florian Pritz (Arch Linux Master Key) <[email protected]>
pub rsa3072 2011-11-25 [SC] [revoked: 2011-11-25]
44D4A033AC140143927397D47EFD567D4C7EA887
rev 7EFD567D4C7EA887 2011-11-25 Ionut Biru (Arch Linux Master Key) <[email protected]>
uid [ revoked] Ionut Biru (Arch Linux Master Key) <[email protected]>
sig 3 7EFD567D4C7EA887 2011-11-25 Ionut Biru (Arch Linux Master Key) <[email protected]>
sig L FA7F75A4CCFCBCB7 2016-12-07 Pacman Keyring Master Key <pacman@localhost>
sig 1 P 2 AA14E96200F5E006 2017-09-14 [User ID not found]
sig E8F18BA1615137BC 2011-11-25 Ionut Biru <[email protected]>
sig 872E6714EAF5EC44 2014-04-09 [User ID not found]
sig 80394F9187983512 2016-11-14 [User ID not found]
sig A9358D7DDD12F986 2012-02-29 [User ID not found]
sig 2 5F03C767C247A4D5 2017-08-17 [User ID not found]
sig 1 P 8508252F9B301536 2017-03-23 [User ID not found]
pub rsa3072 2011-11-18 [SC]
0E8B644079F599DFC1DDC3973348882F6AC6A4C2
uid [ full ] Pierre Schmitz (Arch Linux Master Key) <[email protected]>
sig 3 3348882F6AC6A4C2 2011-11-18 Pierre Schmitz (Arch Linux Master Key) <[email protected]>
sig L FA7F75A4CCFCBCB7 2016-12-07 Pacman Keyring Master Key <pacman@localhost>
sig 1 P 2 AA14E96200F5E006 2017-09-14 [User ID not found]
sig 7F2D434B9741E8AC 2011-11-18 Pierre Schmitz <[email protected]>
sig 7ACFA647C5B3322D 2014-05-27 [User ID not found]
sig 872E6714EAF5EC44 2014-04-09 [User ID not found]
sig 80394F9187983512 2016-11-14 [User ID not found]
sig A9358D7DDD12F986 2012-02-29 [User ID not found]
sig 3 AD94BA169DBB5BF2 2016-10-12 [User ID not found]
sig 2 5F03C767C247A4D5 2017-08-17 [User ID not found]
sig 1 P 8508252F9B301536 2017-03-23 [User ID not found]
sub rsa1024 2011-11-18 [E]
sig 3348882F6AC6A4C2 2011-11-18 Pierre Schmitz (Arch Linux Master Key) <[email protected]>
sub rsa3072 2011-11-18 [A]
sig 3348882F6AC6A4C2 2011-11-18 Pierre Schmitz (Arch Linux Master Key) <[email protected]>
sub rsa1024 2011-11-18 [E]
sig 3348882F6AC6A4C2 2011-11-18 Pierre Schmitz (Arch Linux Master Key) <[email protected]>
sub rsa3072 2011-11-18 [A]
sig 3348882F6AC6A4C2 2011-11-18 Pierre Schmitz (Arch Linux Master Key) <[email protected]>
pub rsa3072 2011-11-19 [SC]
684148BB25B49E986A4944C55184252D824B18E8
uid [ full ] Thomas Bächler (Arch Linux Master Key) <[email protected]>
sig 3 5184252D824B18E8 2011-11-19 Thomas Bächler (Arch Linux Master Key) <[email protected]>
sig L FA7F75A4CCFCBCB7 2016-12-07 Pacman Keyring Master Key <pacman@localhost>
sig 1 P 2 AA14E96200F5E006 2017-09-14 [User ID not found]
sig 7ACFA647C5B3322D 2014-05-27 [User ID not found]
sig 284FC34C8E4B1A25 2011-11-19 Thomas Bächler <[email protected]>
sig 872E6714EAF5EC44 2014-04-09 [User ID not found]
sig 80394F9187983512 2016-11-14 [User ID not found]
sig A9358D7DDD12F986 2012-02-29 [User ID not found]
sig 1 P 8508252F9B301536 2017-03-23 [User ID not found]
pub rsa4096 2017-05-15 [SC]
DDB867B92AA789C165EEFA799B729B06A680C281
uid [ full ] Bartłomiej Piotrowski (Arch Linux Master Key) <[email protected]>
sig 3 9B729B06A680C281 2017-05-15 Bartłomiej Piotrowski (Arch Linux Master Key) <[email protected]>
sig 1 P 2 AA14E96200F5E006 2017-09-14 [User ID not found]
sig B6002D906D137D09 2017-09-03 [User ID not found]
sig BBE43771487328A9 2017-05-15 Bartlomiej Piotrowski <[email protected]>
sig 2 5F03C767C247A4D5 2017-08-17 [User ID not found]
sig L FA7F75A4CCFCBCB7 2017-10-24 Pacman Keyring Master Key <pacman@localhost>
sub rsa4096 2017-05-15 [E]
sig 9B729B06A680C281 2017-05-15 Bartłomiej Piotrowski (Arch Linux Master Key) <[email protected]>
Here, Florian Pritz
prompts undefined, so delete it with the corresponding ID and import it again
pacman-key --delete 91FFE0700E80619CEB73235CA88E23E377514E00
pacman-key --populate archlinux