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

Ғылым және технология

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:
► wiki.archlinux.org/title/pacman
WANT TO SUPPORT THE CHANNEL?
💰 Patreon: / distrotube
💳 Paypal: kzread.info?even...
🛍️ Amazon: amzn.to/2RotFFi
👕 Teespring: teespring.com/stores/distrotube
DONATE CRYPTO:
💰 Bitcoin: 1Mp6ebz5bNcjNFW7XWHVht36SkiLoxPKoX
🐶 Dogecoin: D5fpRD1JRoBFPDXSBocRTp8W9uKzfwLFAu
📕 LBC: bMfA2c3zmcLxPCpyPcrykLvMhZ7A5mQuhJ
DT ON THE WEB:
🕸️ Website: distrotube.com/
📁 GitLab: gitlab.com/dwt1
🗨️ Mastodon: fosstodon.org/@distrotube
👫 Reddit: / distrotube
📽️ LBRY/Odysee: odysee.com/@DistroTube:2
FREE AND OPEN SOURCE SOFTWARE THAT I USE:
🌐 Brave Browser - brave.com/dis872
📽️ Open Broadcaster Software: obsproject.com/
🎬 Kdenlive: kdenlive.org
🎨 GIMP: www.gimp.org/
💻 VirtualBox: www.virtualbox.org/
🗒️ Doom Emacs: github.com/hlissner/doom-emacs
Your support is very much appreciated. Thanks, guys!

Пікірлер: 106

  • @mehrdadanvar8518
    @mehrdadanvar85182 жыл бұрын

    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.

  • @user-yo7hz8gw4t
    @user-yo7hz8gw4t2 жыл бұрын

    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.

  • @xrafter

    @xrafter

    2 жыл бұрын

    Doesn't -Syu break old packages that no longer maintained tho?

  • @user-yo7hz8gw4t

    @user-yo7hz8gw4t

    2 жыл бұрын

    @@xrafter never happened to me, so I don't know. Arch Wiki says -Sy is unsupported and actively recommends -Syu instead. I'm not entirely sure, but in such case of dropping support, wouldn't the package be moved to the AUR? I remember this happened to anki. If I understand correctly, the responsibility of managing dependencies to match legacy versions when a breaking update happens is then on the maintainer. In any case, breaking a single unsupported package is better than breaking packages system-wide.

  • @mrtetillas7504

    @mrtetillas7504

    2 жыл бұрын

    what can happen if you are a long time without updating is that you have a big update that includes essential or sensitive packages such as the kernel, if your pc is not very powerful it could freeze and you will have to restart (because the task execution queue could saturate the cpu), when you reboot you may have a kernel panic or boot problems, that happened to me when I didn't use my 2008 laptop for months, I was testing how endeavors worked, update (approx 2~3 GB) that It included the kernel and other base packages (I don't remember which ones), the laptop froze when it had to update the kernel, rebooted and had boot problems and then a kernel panic (that was the first and last time I had a kernel panic), I didn't mind at all since I was just testing how it worked before definitely moving to arch. Maybe the problem was something else since my laptop is a Dell Latitude 6400 (well known for having thermal throttling problems due to the BIOS), a pretty bad one but it's the only one I have :c

  • @zeocamo

    @zeocamo

    2 жыл бұрын

    the y is telling pacman to refresh all package databases, so this is the same as apt update and the u upgrades all packages and this is the same as apt upgrade it is not a partial upgrade, please before you write stuff, read the man, so new to linux users learn stuff the right way i got no problem with you think it is a partial update it is your system, you do you, just keep your crazy to your self that is all 😉

  • @user-yo7hz8gw4t

    @user-yo7hz8gw4t

    2 жыл бұрын

    @@zeocamo Refreshing package databases without upgrading is exactly what the Arch Wiki defines as a partial upgrade, if you actually go read it (e.g. under the System_maintenace page), because any subsequent package installation (or individual upgrade) risks a dependency upgrade, which might break other packages. If you follow up with -Syu (or just -Su), as stated in the original comment, it is fine because you did a full upgrade. A partial upgrade is installing or upgrading anything between those commands. Please, before you write stuff, read the docs, so new linux users don't break their system because of a comment lacking in description. I've got no problem with you, you think it isn't a partial upgrade, it's your system, you do you. Just keep your crazy to yourself, that is all ;)

  • @caiowilli1813
    @caiowilli18132 жыл бұрын

    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.

  • @andreasbaumann6943
    @andreasbaumann69432 жыл бұрын

    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).

  • @jesse7631
    @jesse76312 жыл бұрын

    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!

  • @Silverback-AB
    @Silverback-AB4 ай бұрын

    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!

  • @mrtetillas7504
    @mrtetillas75042 жыл бұрын

    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

  • @raik9536
    @raik95362 жыл бұрын

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

  • @xynyde0
    @xynyde02 жыл бұрын

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

  • @midplanewanderer9507
    @midplanewanderer95072 жыл бұрын

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

  • @chuckmuckamuck8001
    @chuckmuckamuck80012 жыл бұрын

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

  • @airbossone
    @airbossone2 жыл бұрын

    Thanks a lot DT this is very helpful now I know what I’ve to do if I have an issue. Take care

  • @adriasanchez6633
    @adriasanchez6633 Жыл бұрын

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

  • @Thaleios
    @Thaleios2 жыл бұрын

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

  • @rudiknoesen3620
    @rudiknoesen36202 жыл бұрын

    This helped me out a lot, great show

  • @elrayjames5191
    @elrayjames5191 Жыл бұрын

    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 .....THANK YOU

  • @BrucesWorldofStuff
    @BrucesWorldofStuff2 жыл бұрын

    That Pacman keys error has been happening way to much lately. At least once a month lately for me... :-( I also have a hook that runs and cleans mine too! Lol Oh hell thoses Haskil files, 200 updates and 190 of them are the little Haskel files... HaHAHAhA... OK, sure the pacman crunching sound would be neat the first time but after 200 times it would not be so cute... 🕹️🕹️🕹️ Thanks DT for sharing the fix! LLAP 🖖

  • @Zedoy
    @Zedoy2 жыл бұрын

    i encountered this today and look it's even the same error package lol Edit: Thanks DT for making this video very informative ❤️❤️

  • @kajoma1782
    @kajoma17822 жыл бұрын

    Pacman should repopulate keys automatically. What do you think?

  • @nemonada3501

    @nemonada3501

    2 жыл бұрын

    Seconded. I'm guessing there may be reasons why it doesn't, but I can't think of any.

  • @user-yo7hz8gw4t

    @user-yo7hz8gw4t

    2 жыл бұрын

    I hear it shouldn't be an issue if you update regularly, but the fix is pretty simple. As for automating it, I don't know enough about the process to say if there aren't any cons to doing it, but I'm guessing it would have issues with security and/or portability.

  • @gamerking64
    @gamerking642 жыл бұрын

    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.

  • @warhawk_yt

    @warhawk_yt

    2 жыл бұрын

    Those are only the default aliases. He uses his own bash/zsh/fish config with his own aliases and everything so unless he has them in his config as well he won’t have those.

  • @gamerking64

    @gamerking64

    2 жыл бұрын

    They're available if you are using arco, and he is... But making your own is cool too!

  • @andbenn
    @andbenn2 жыл бұрын

    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.

  • @211syco
    @211syco2 жыл бұрын

    Great timing, just ran into this today 😂

  • @subarutendou
    @subarutendou2 жыл бұрын

    same error when I update today! Thank you!

  • @marioschroers7318
    @marioschroers73182 жыл бұрын

    Finally! DT uses vim 😎 I've had a bunch of commands to keep track of my pacman cache involving paccache. I've never cared about pacman hooks. That looks brilliant, I need to look into that. However, one should also keep track of AUR helpers (paru, yay) that use their own dedicated cache. I've recently cleaned out 70 GB of rubbish out of that folder.

  • @newsofthenerd

    @newsofthenerd

    2 жыл бұрын

    It's strange I see him using vim in almost every video. When he's doing any admin or new system it's always his default. Not sure why everyone thinks he doesn't. I've only seen him using emacs for long coding videos on his own system.

  • @aronbaczoni3292
    @aronbaczoni3292 Жыл бұрын

    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?

  • @RC-Heli835
    @RC-Heli8354 ай бұрын

    Thanks for sharing bro! What about when you get asked yes or no questions a thousand times? For instance ......Replace appstream-qt with extra/appstream-qt5? And it never ends!

  • @nemonada3501
    @nemonada35012 жыл бұрын

    I'm guessing there is a place that you put these so people can get a good look at some examples of these files and formats?

  • @benj6964
    @benj69642 жыл бұрын

    I had this problem and it took a bit long to find an answer (like 5 minutes). Pacman should tell us to update the keyring first (or even do it automatically). Also, I don't understand what the keyring actually is, you could have explained it in this video!

  • @HasanAYousef
    @HasanAYousef11 ай бұрын

    Thanks a lot, great video, I'll save it for the future needs

  • @geek-room
    @geek-room2 жыл бұрын

    Clean pacman cache. It is not recommended to make hook after each update to clean whole cache. Sometimes you need downgrade the package or there is something corrupted and you need fast revert. Good practice is to keep 2 or 3 last versions of packages in the system. Clean whole cache is important to call MANUALLY according to your full working system and available disk space. Additional note, paccache without parameter keeps last 3 versions, it is much more better if you plan some automatic solutions.

  • @darthcabs
    @darthcabs2 жыл бұрын

    You gotta give a thumbs up everytime you learn something new!

  • @milutinke
    @milutinke2 жыл бұрын

    I had the same issue few days ago, I've logged in as a root, cleared the pacman cache and then did the Syu and it worked.

  • @papperme
    @papperme2 жыл бұрын

    Wow. Thanks for sharing.

  • @barryjohnson2756
    @barryjohnson27562 жыл бұрын

    It did happen to me too today and I did (sudo pacman -Sy archlinux-keyring) and it did work. Since it is not the first time I encountred this problem.

  • @linuxmintx1294
    @linuxmintx12942 жыл бұрын

    a completely other question, installing Solus on virtualbox 6.1 doesnt work , what settings in vbox can be done?

  • @btno222
    @btno2222 жыл бұрын

    i ran all of your commands and still when i do a pacman -Syu it gives me a corrupted file error and if i delete y/N i say yes to all then errors out?!

  • @DavidMadeira29
    @DavidMadeira292 жыл бұрын

    "I don't wanna talk any louder, but I could been proving myself that it's harder to fine tune the bits when a bigger stream is floating..."

  • @thedanmethenyshow.6004
    @thedanmethenyshow.60042 жыл бұрын

    Indeed paccache is available via pacman-contrib. I've been able to sync regular arch repos fine with Artix Linux. I'm not sure if it's where I am located but with debian/devuan I've always had repo problems where I am located when I lived up north the debian repos would sync fine. Just something I have thought about with the video. For whatever reason arch repos are the most responsive where I am located.

  • @kalitsiadischaritos4685
    @kalitsiadischaritos46852 жыл бұрын

    Excellent, I run on this key error the other day and couldn’t find a solution on line.

  • @desmondsparrs
    @desmondsparrs2 жыл бұрын

    I actually had this exact issue on Arcolinux, I really had to delve deep into the google-ocean to get down to something that resolved it..aand it worked..aand I wished I was not as sloppy writing notes so I could remember the working solution for the next time it will happen.

  • @DMSBrian24
    @DMSBrian242 жыл бұрын

    Haha I see all of us had the same issue on the same day lmao, classic keyring issue

  • @francescopremsolidoro3858
    @francescopremsolidoro38582 жыл бұрын

    Just had a problem with this earlier. although I did find the fix on the arch wiki, if feels like you read my mind right there. edit: Oh, turns out the same package was acting up. Makes sense

  • @randyr.parker2698
    @randyr.parker26982 жыл бұрын

    Use to have that same problem with Debian occasionally, and on occasion years ago with Firefox, it use to have a 'lock' file and would have to delete it in order to get Firefox to start back up. Would keep saying it was already running.

  • @distant6606
    @distant66062 жыл бұрын

    ah yes the arch-keyring thing. so annoying when u forget that it exists lol

  • @Saturate0806
    @Saturate08062 жыл бұрын

    is it possible to make a preTransitionHook and install arch-linux-keyring before any other operation also?

  • @alphonsoacqua
    @alphonsoacqua Жыл бұрын

    You're a legend DT 🏆

  • @SwiatLinuksa
    @SwiatLinuksa2 жыл бұрын

    @Distrotube - hey there's some guy on KZread Ergewbai Sultanov who copying and publishing your videos constantly, maybe do something with this?? I know your videos are creative licences but he don't even write that you are creator of that.

  • @notinthegulag_3370
    @notinthegulag_3370 Жыл бұрын

    Do any of these work for the failed retrieving core.db error

  • @Spankyi
    @Spankyi2 жыл бұрын

    i swear i had to format my disk last night and since i didnt have much time to install arch manually i tried to install the ones that provide an installer...I swear i formatted my disk 12 times from 11pm last night to 3pm today because i wasnt able to find a way around the pgp signature tingy ,and in the end i ended up installing arch manually to make it work...Only if this video was available 24h ago...Either way thanks! We're probably going to need it soon again!

  • @mk72v2oq

    @mk72v2oq

    2 жыл бұрын

    I think the most obvious step was to just go and read the wiki. wiki.archlinux.org/title/Pacman#"Failed_to_commit_transaction_(invalid_or_corrupted_package)"_error

  • @hiru92
    @hiru922 жыл бұрын

    paccache command not found ... EDIT:- Ok now I installed pacman-contrib package ...

  • @wolfinthedepths
    @wolfinthedepths2 жыл бұрын

    didn't know about paccache -r, that cleared out 21GB for me haha

  • @bannerdr6210
    @bannerdr6210 Жыл бұрын

    error: failed to synchronize all databases (no servers configured for repository).How to solve this..please help

  • @incalculas9394
    @incalculas93942 жыл бұрын

    to run paccache, install pacman-contiib package first.

  • @oalfodr
    @oalfodr2 жыл бұрын

    It sounds better to me to have separate hook for remove, that is clearing all of cached files for the package being removed.

  • @AshnSilvercorp
    @AshnSilvercorp2 жыл бұрын

    I had a keyring error with a few extra packages. I was worried for a sec until I tried just updating the keyring before the update itself.

  • @chesterbelle
    @chesterbelle Жыл бұрын

    i love these kind of videos

  • @user-GAMER-z9z
    @user-GAMER-z9z5 күн бұрын

    Even when I do the first command it's still complaining about pgp signature

  • @robertcoyle9071
    @robertcoyle90712 жыл бұрын

    I turned mine into a hybrid drive. 256 GB SSD for root and 512 GB HDD for home. Copied my entire home folder to the HDD and updated my fstab. I'm not going to run out of room anytime soon.

  • @emem666
    @emem6662 жыл бұрын

    Is there any reason why pacman can't solve keyring error by itself?

  • @DavidZavalla
    @DavidZavalla2 жыл бұрын

    why dont they just make pacman update the keyring package before everything else?

  • @paulb9769
    @paulb9769 Жыл бұрын

    I am stuck with this and I can not seem to solve it any suggestions please I am pulling my hair out. error: key "xxxx" could not be looked up remotely

  • @Grayest_Fox
    @Grayest_Fox2 жыл бұрын

    Literally manually empty the cache in /var/ and redownload keys Update the keys, refresh pacman Problem solved. Gigantic kek

  • @RedBearAK
    @RedBearAK2 жыл бұрын

    Hmm. You’re giving me the distinct impression that pacman is a very haphazardly designed package manager that throws a lot of errors for stuff it should automatically handle, and doesn’t know how to clean up after itself. Think I’ll stick with apt and dnf, BTW. They’ve never given me problems like this.

  • @sharjeel_mazhar
    @sharjeel_mazhar2 жыл бұрын

    Hey dt, hope you'll be doing fine. Can you please make a course like playlist where you teach "How to build your Arch Linux from scratch" just the way you setup all of your window manager, xmonad, xmobar and system trays etc. That will be great if you do so because it will teach all of us how to create our own systems the way we like and also makes us way more familiar with how the linux works underneath and all. Because i think it's time for all of us to stop being a script kitty and start acting like a pro user, such as yourself.

  • @CyperN077
    @CyperN0772 жыл бұрын

    DT you should be given knighthood status for (bad ass)ory by the Queen or Linus Torvald or somebody like that. You just saved my ass, and I thank you for it. I'm a nobody or I'd do it myself 😄

  • @imtechfreak1800
    @imtechfreak18002 жыл бұрын

    Majaro user all ears here !

  • @elton9412
    @elton94122 жыл бұрын

    Is like my mirrors in debían repository is not working

  • @jcontheking
    @jcontheking25 күн бұрын

    I love you! thank you.

  • @newsofthenerd
    @newsofthenerd2 жыл бұрын

    sudo paccache -rk0 removes all cached installed packages. That's my default. Especially chromebooks that sometimes don't have enough storage to even update.

  • @thatawesomeplant1924
    @thatawesomeplant1924 Жыл бұрын

    I get the pgp error when installing the keyring aswell

  • @Spiritualitydefined
    @Spiritualitydefined2 жыл бұрын

    error: failed to build 'pamac-all-10.3.0-5': error: packages failed to build: pamac-all-10.3.0-5 after the arcolinux upall

  • @whiteguardist
    @whiteguardist9 ай бұрын

    how did i not know about -Scc

  • @t01
    @t012 жыл бұрын

    Happened to me recently too

  • @scheimong
    @scheimong2 жыл бұрын

    Oh no no no. Do NOT delete the lock file unless you are EXTRA sure that you're not running another program that's performing a mutable operation using pacman (e.g. paru, pamac). You are potentially introducing an extremely dangerous race condition that could break your system without recourse. Run-once scripts could be run twice, TOCTOU will likely occur; in general just a unpredictable and unrecoverable mess of a situation that you DO NOT want to end up in. If you don't understand what any of this means and just want the issue fixed, do me a favour and just reboot first, then delete the lock file if still necessary. This will greatly reduce your risk.

  • @ilyasabi8920

    @ilyasabi8920

    2 жыл бұрын

    I tend to ps aux | grep pacman or something like to understand issue than first kill process than delete the lock. It also happens in apt too. Generally dumb apps like systems own app store causes this. For example ubuntu and manjaro did that.

  • @RustedNutsClips
    @RustedNutsClips2 жыл бұрын

    lol i had that exact same package causing problems i just uninstalled it, ran a -Syu then reinstalled it

  • @amazingemrys2939
    @amazingemrys293910 ай бұрын

    Thank u

  • @na2sio355
    @na2sio3552 жыл бұрын

    hi

  • @vwinter
    @vwinter2 жыл бұрын

    oh im used to these issues

  • @epicgamerman420
    @epicgamerman4202 жыл бұрын

    Hopefully you read these. I have no idea why people use arch despite it breaking constantly. Do you like the challenge and like to learn how to fix things? Because the only thing I hear from arch users is that its stable, but when you look at the "new" category in arch 99% of it is tech support.

  • @dxaniol
    @dxaniol2 жыл бұрын

    early

  • @bthegawd8113
    @bthegawd81132 жыл бұрын

    And this ladies and gentlemen, is why you don’t run bleeding edge for daily use.

  • @CaptainKenway

    @CaptainKenway

    2 жыл бұрын

    I mean, if you're really dumb then sure, this might be disastrous. However, speaking as someone who's only been using Arch for a couple of months, I encountered this same error with this same package yesterday, so I simply looked it up on the Arch wiki, where it's clearly documented along with the solution, and fixed it myself within two minutes, having never seen it before or having a clue what it was. Then I got on with my day.

  • @ilyasabi8920

    @ilyasabi8920

    2 жыл бұрын

    @@CaptainKenway no pacman should be more smart when I first started to use linux package managers were awful, still there are cases and issues to iron out but we came a long way for sure, also instead of creating detailed manuals for damn near all issues we should fix dependency resolution and hierarchy. Manuals should be there don't get me wrong but also if issue is document and understand enough to be placed in a wiki it should be patched. I know it is hard to catch all cases (damn hate myself to be honest) there is no excuse. After all package manager is the heart of any distro.

  • @bthegawd8113

    @bthegawd8113

    2 жыл бұрын

    @@CaptainKenway well good for you and yes reading the wiki will help resolve the issue but why is this a problem in the first place. OS should always “just work” and users shouldn’t have to be troubleshooting core functionality. This was a failure on arch and not the user.

  • @MadmarxOfficial
    @MadmarxOfficial2 жыл бұрын

    For those interested, since pacman 6.0 a new conf is available : ParallelDownloads = X Saves a lot of time when upgrading.

  • @QQ-gn7tc
    @QQ-gn7tc2 жыл бұрын

    Always amazing DT. BTW recompile-xmondad fail to recompile lately.

  • @kennystrawnmusic
    @kennystrawnmusic2 жыл бұрын

    I wonder if it’s good practice to use a hook to tell pacman to reboot the system every time a kernel is upgraded - something like: [Trigger] Operation = Upgrade Type = Package Target = linux* [Action] Description = Rebooting into new kernel… When = PostTransaction Exec = /usr/bin/systemctl reboot Then again, not a fan of having work interrupted in this way - although it looks like you’ve got “reboot-important-updates.hook” yourself.

  • @_DT_

    @_DT_

    2 жыл бұрын

    maybe instead of rebooting you can notify-send a reminder to reboot the system

  • @DAVIDGREGORYKERR
    @DAVIDGREGORYKERR2 жыл бұрын

    sudo su apt-get update && apt-get upgrade -y

Келесі