You are not logged in.
Hello everyone,
I am fairly new to arch and have now run into the following problem a couple of times:
I try to install something using pacman -S <package> and get an error message like this:
error: failed retrieving file '<filename>' from <hostname> : Given file does not exist... for all the mirrors in my list.
Now i realize that this is due to my local database no longer being in sync with the repositories database. However I wonder what the proper way to fix this issue is, because I remember reading somewhere that syncing the DB first by doing
pacman -Sy <packagename> is unsafe. Or is that incorrect?
Kind regards
DeBazthed
Offline
pacman -Syu
Always install all updates when syncing the db.
Offline
Always use pacman -Syu, and make sure your mirror is up to date. http://www.archlinux.org/mirrors/status/
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Don't forget our wiki.
https://wiki.archlinux.org/index.php/Pa … g_packages
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
Thanks for the advice, guys!
But does that mean I always need to run a full system upgrade in that case?
Offline
But does that mean I always need to run a full system upgrade in that case?
Yes.
If you want to install a new package 'foo', run 'pacman -Syu foo'.
Offline
Thanks for the advice, guys!
But does that mean I always need to run a full system upgrade in that case?
Partial upgrades does not work on binary based rolling release distributions due to .soname bumps, api/abi changes etc.
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
That means updating a package without updating the system works, as long as you make sure the dependecies are updated as well (if needed), but I'd recommend updating the system regularly and especially before installing a package to minimize the risk of breaking anything.
Offline
There has been recently a thread on the ML where one user didn't want to fully update his system (because he needed to be sure everything will work and updates may fsck something up), just to install a new package:
http://mailman.archlinux.org/pipermail/ … 25118.html
pacman checks dependencies, soemtimes they are versioned but in most cases they're not.
http://mailman.archlinux.org/pipermail/ … 25127.html
(...) without versions deps (rarely used due to maintenance headaches) updating your database with -Sy without running a full update is not supported. pacman cannot handle that, period.
The correct way to install packages on an out-of-date system is to NOT update your database. You may need an out-of-date mirror or to manually download from mirror archives.
Offline