SOLVED: Pacman Wouldn't Let Me Run An Update!

preview_player
Показать описание
If you run Arch Linux or a distribution based on Arch Linux, you will occasionally encounter errors when using the package manager (pacman). This was the case for me today. When I tried to update my system with pacman -Syu, pacman complained about invalid and corrupted packages, yada yada yada....

REFERENCED:

WANT TO SUPPORT THE CHANNEL?

DONATE CRYPTO:
💰 Bitcoin: 1Mp6ebz5bNcjNFW7XWHVht36SkiLoxPKoX
🐶 Dogecoin: D5fpRD1JRoBFPDXSBocRTp8W9uKzfwLFAu
📕 LBC: bMfA2c3zmcLxPCpyPcrykLvMhZ7A5mQuhJ

DT ON THE WEB:

FREE AND OPEN SOURCE SOFTWARE THAT I USE:

Your support is very much appreciated. Thanks, guys!
Рекомендации по теме
Комментарии
Автор

Hey DT. Thanks for the great content. Funny thing, just yesterday I ran into the exact same problem with the keyring for the first time. Fortunately, Archwiki came to help. You won't believe it but it was your efforts in promoting free and open-source software that lead me to the world of Linux. I am a general physician!!! My main problem was with windows and its unstable updates and its inferior command-line capabilities which interrupted my work as a researcher who heavily uses data analysis and works with large databases. I am sure you have a wide variety of audiences from all over the world with different professions. All the best.

mehrdadanvar
Автор

Usually you shouldn't just use -Sy (partial upgrade) and should instead use -Syu (full upgrade), or else it might cause dependency issues, but upgrading archlinux-keyring is one of the exceptions when this is fine, at least as long as you follow up with -Syu again.

木原篤郎-bm
Автор

I have two remarks:
- You should check first if there is a pacman running before simply deleting the /var/lib/pacman/db.lck (that's the whole purpose of this lockfile - to avoid parallel access to the pacman sync and database structures)
- there is pacman-static in the AUR. This is a statically linked version of pacman which is really helpful when you by accident render your normal pacman unusable (say, partial upgrading a glibc).

andreasbaumann
Автор

When I watch DT with the slanted camera angle I often think I'm watching a Batman villain in his lair using Arch.

chuckmuckamuck
Автор

This is such a lifesaver! I had this once happen, and I was like, 'well, what do I do now?' This was very helpful - thank you Derek!

jesse
Автор

I don't even use any arch based distros but still watched til the end 🤣. Great content as always DT!

xynyde
Автор

Hey DT, Many thanks for the excellent content as always. I have been looking for a solution to my failing updates on and off for the past 3 months without any luck until today. Keyring update solved it for me. As a experimenting Arch user I am a big fan of the content you provide and the knowledge you impart to users like myself. You are a legend!

Silverback-AB
Автор

Pacman should repopulate keys automatically. What do you think?

kajoma
Автор

Those tips were great, DT, thanks.
I ran into that import key issue but didn't thought about upgrading the keyring. Don't even remember how I solved it.
In addition to the hook to clean the pkg cache, I wrote a script to also clean the pkg cache from paru.

caiowilli
Автор

Yep. This saved me. This should get a lot of views. Very very useful info, thanks man!

midplanewanderer
Автор

This happened to me this morning, I did a few searches and found in a thread from 2009 that the solution was to update only that package (the problem was another but it still worked), nice video btw

mrtetillas
Автор

Ole ole y ole thank you very much !! The key error was messing up with me xD really good video!

adriasanchez
Автор

Since you're using ArcoLinux, you can use `fixkey` alias in the terminal to fix the PGP signature error... There is also an alias for removing db.lck but i forgot it, you can check it in your aliases.

gamerking
Автор

i encountered this today and look it's even the same error package lol

Edit: Thanks DT for making this video very informative ❤️❤️

Zedoy
Автор

so what the heck do you do when syncing archlinux-keyring wont go through because, guess what, corrupted file/invalid PGP signature on the archlinux-keyring package itself?

aronbaczoni
Автор

Sep 13: Thank you very much for this fix I decided to re-install Manjaro on my computer and I noticed that i had a big update and it wouldn't update at all till i found this video, now its updating just fine YOU

elrayjames
Автор

Thankyou man! The keyring soultion really did it for me. God bless, you have no idea what big problem you had solved for me!

raik
Автор

Most Arch based distros will also have their own *-keyring files for their keys. It's not always the arch-keyring that raises the problem from the first part of the video.

andbenn
Автор

same error when I update today! Thank you!

subarutendou
Автор

Hilarious. I got this same exact error just minutes before I started watching your video. Good timing! 🙂

Thaleios