#Pacman unable to update system
1 messages · Page 1 of 1 (latest)
i did sudo pacman -Syu btw
it always ends up giving out error: failed to commit transaction (could not find or read package)
i already read the arch wiki on troubleshooting pacman but it didnt have this specific error fix
google didnt help much at all either
I cant remember how i fixed this when it happened to me. I almost feel like just rebooting worked.
That said. Could just be that one of the packages is no longer in the repo. So it is aborting. But since you have that many it might take a minute to figure out which.
I think i might have just not updated the one that couldnt be found.
Maybe you could take all the packages copy paste then i with a sudo pacman -S. See if it tells you which it cant find. Then opt not to update that one.
Try just doing -S on archlinux-keyring and see what happens
package not found
Show me a picture
i rebooted multiple times and the issue persists
oops sorry i mistyped keyring
its updating to new one
Thought so (:
done
That’s good, will stop another issue of this goes on too long
Try -Syu again but, probably same issue
yes the same issue
Remove orphan packages
uh you mean?
Im assuming its the other thing i mentioned. But idk as much as other here about things like this
hm ill try this too
What do you mean what do I mean, remove the orphan packages from your system
im asking whats an orphan package
Package that was installed as a dependency but is no longer needed either due to dependencies changing or the packages that needed it being uninstalled but or the deps.
ah alright
also i had tried out kde a while ago and but switched to i3 and removed kde. but looks like i still have some of the kde packages?
am i supposed to remove all of these? ```sudo pacman -Qdtq | sudo pacman -Rns -
Be careful
You csn accidentally remove stuff that isnt an orphaned package.
And screw yourself over
Make sure they are actually orphaned.
thats a lot of orphans lol
im pretty sure im using jetbrains mono as my terminal font
why is it detected as an orphan
wasnt planning to after reading it
does running with verbose allow you to see which package/file is failing?
the output you showed is strangely vague
gimme a min to google what 'running with verbose' means
is that really the whole output...?
Huh??
you mean --verbose flag?
no its doesnt
eh
hm
This is what i mean
I would
me too
what? but my terminal is using jetbrains mono font which is listed as an orphan
you can reinstall it later
it is literally just a font
it won't break your terminal, your terminal will just use a different font
Still. Check to make sure there isnt anything in there that your system actually needs.
Especially if you dont recognize it.
Besides the font obv.
ok but it removes stuff like cmake and zip,usbutils
well then you must not need it 
reinstall them, they arent needed packages so they get uninstalled
I really think blindly removing things listed as orphans is a bad idea.
i mean yeah
the -Rns is whats probably causing so many packages to appear
since its counting the dependencies of the orphans as well
fr but whatever
ill rm it
hopefully shit doesnt start breaking apart
ok done removing
should i -Syu
try it
** SAME ISSUE**
lol
seems like same issue
day old post btw
you could try updating your mirrorlists with reflector, that's kind of a shot in the dark
you could also update your mirrorlist by hand
sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
sudo reflector --latest 20 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
(assuming you have reflector installed)
yeah this could be a mirror issue
Have fun reinstalling everything you needed 
its a good thing all of those are in this thread
you're such a hater

If they should be explicitly installed and they’re only implicitly installed then when they’re reinstalled later explicitly that’ll be fine, or the user can chose to change their flag to explicitly installed
yk you said "explicitly" 3 times in that sentence right?
Yes, is that word causing you confusion?
not at all
If the issues persists then I’d recommend you run reflector if you can, if it won’t install you can update the mirror list another way
.aw reflector
If you don’t have reflector use this:
@sharp ether fixed?
im gonna try fixing it again as i was busy earlier
ill try reading this
@lucid vector i have a doubt. can i uninstall these extra/breeze-icons 6.3.0-1 73.71 MiB extra/karchive 6.2.0-1 6.3.0-1 0.00 MiB extra/kauth 6.2.0-1 6.3.0-1 0.00 MiB extra/kbookmarks 6.2.0-1 6.3.0-1 -0.07 MiB extra/kcodecs 6.2.0-1 6.3.0-1 0.01 MiB extra/kcolorscheme 6.2.0-1 6.3.0-1 0.00 MiB extra/kcompletion 6.2.0-1 6.3.0-1 -0.12 MiB extra/kconfig 6.2.0-1 6.3.0-1 0.37 MiB extra/kconfigwidgets 6.2.0-1 6.3.0-1 -0.09 MiB extra/kcoreaddons 6.2.0-1 6.3.0-1 -0.02 MiB extra/kcrash 6.2.0-1 6.3.0-1 0.01 MiB extra/kdbusaddons 6.2.0-1 6.3.0-1 -0.01 MiB extra/kfilemetadata 6.2.0-1 6.3.0-1 0.01 MiB extra/kglobalaccel 6.2.0-1 6.3.0-1 0.00 MiB extra/kguiaddons 6.2.0-1 6.3.0-1 -0.04 MiB extra/ki18n 6.2.0-1 6.3.0-1 0.00 MiB extra/kiconthemes 6.2.0-1 6.3.0-1 -0.03 MiB extra/kio 6.2.0-2 6.3.0-1 -1.08 MiB extra/kitemviews 6.2.0-1 6.3.0-1 -0.16 MiB extra/kjobwidgets 6.2.0-1 6.3.0-1 -0.03 MiB extra/knotifications 6.2.0-1 6.3.0-1 -0.01 MiB extra/kparts 6.2.0-1 6.3.0-1 -0.09 MiB extra/kpty 6.2.0-1 6.3.0-1 -0.01 MiB extra/kservice 6.2.0-1 6.3.0-1 0.02 MiB extra/kwallet 6.2.1-1 6.3.0-1 0.00 MiB extra/kwidgetsaddons 6.2.2-1 6.3.0-1 -0.02 MiB extra/kwindowsystem 6.2.0-1 6.3.0-1 0.00 MiB extra/kxmlgui packages as i dont use kde anymore and i have already uninstalled the DE?
actually nvm as for some reason ark depends of most of these packages here so i just manually updated all of them
and found out these 2 are the ones that are failing to update
they both give out failed to commit transaction (could not find or read package) error when trying to update
did you ever try updating your mirrorlists?
removing orphans and updating the mirror list seem like the 2 things that would be highly helpful, you can always reinstall any packages that you don't think should have been removed afterwards...
I mean do pacman -Qi on them and they'll say why they're installed and what packages use them
Yes I have updated it multiple times
Nvm i just updated them
Only nspr and libogg have trouble updating
did you try pacman -Syyu to force rebuild your repo database
huh?
partial updates are not supported
and if a database is out of date it gets updated in a -Syu
okay nice edit 😛 no longer a partial update command
but still, the need to do -Syyu instead of -Syu is very rare, I'm not sure this is one of those times
only updates get pulled during a -Syu, stuff already in the database (which i believe we have established is broken) is not updated
-Syu updates the db's if they're out of date, if they're not it doesn't
and it's more likely to be a mirror issue
yeah but the existing database is broken so we need to force all of it to update
worth a shot theres no harm in it
basically doing it this way will pull the package database from the new, non-broken mirror
doing -Syyu won't effect what mirror it tries to use?
I remembered alot of PPL saying i shouldn't use -Syyu as it is risky so I won't be using that
it's not risky, if it's a one off it's fine, but if it's every update you're forcing the mirrors to do extra work for no benefit
-Syy and -Sy are risky, as they're partial updates
-Syyu isn't risky, it just burdens the mirror more than -Syu
-Syu is the best option for doing pacman updates
you can but don't do it as the regular method of updating, and also first update your mirror list
^
I'll do it later. Not home rn
but you can probably just install it if you don't have it
@lucid vector got home, tried -Syyu but still the same error. already updated mirrorlist
You’ve removed the orphans, updated the mirrors, and it’s still broken? And you don’t have any of the testing repos enabled?
i dont think i have any of the testing repos enabled
just check /etc/pacman.d/pacman.conf I think it is? or is it /etc/pacman.conf? one of them...