You are not logged in.
Pages: 1
Hello, Arch people.
My problem is that when I try to start package management in freshly installed system with
# pacman --sync --refresh
it yields
::Synchronizing package databases...
sh: /usr/bin/curl : No such file or directory
When I
# pacman -S abs
it yields
error: could not open file /var/lib/pacman/sync/extra.db : Failed to open '/var/lib/pacman/sync/core.db'
(As well: .../extra.db ; .../community.db ; ...multilib.db)
and when I
# pacman -Syy
it yelds
sh: /usr/bin/curl: No such file or directory.
It seems to me I've made post-install system configuration as recommended by Arch Wiki.
What could that be?... How could i solve this?
Many thanks in advance.
Last edited by yu.khanayev (2012-02-20 18:42:56)
Offline
It seems to me that you don't have curl installed.
In /etc/pacman.conf you have the possibility to change the "XferCommand" from curl to wget.
You should have wget installed as it is part of the base group.
Then you should be able to upgrade your system.
If you wish, you can the pacman -S curl and change the command back to use curl.
Offline
Hi, dear rtoijala!
Many thanks for your friendly support. I had curl and wget both uncommented out in my /etc/pacman.conf file; when i commented out curl, I was able to upgrade my system (I mean the command #pacman -Syy did work!).
Offline
Curl is a part of the base group as well, so it's obvious that the list of packages to be installed was tampered with during the arch linux installation process. This is exactly why it's strongly advised to install whole base group.
@yu.khanayev you may try out what rtoijala suggested, but if that doesn't work out, then the simplest solution might be to reinstall arch linux and making sure that whole base group is selected to be installed. There are other ways to recover from this, but unless you're familiar with how arch linux works, then reinstalling probably would be the easiest and fastest solution.
edit: scratch that ![]()
Last edited by meph (2012-02-20 15:27:12)
Running arch is like raising a puppy - if you spend a bit of time with it each day and do just a bit of training you'll end up with the most loyal partner you could want; if you lock it in a room and don't check on if for several days, it'll tear apart your stuff and poop everywhere.
Offline
@meph Many thanks, I did not know...
I've tried
#pacman -Syyu curl
After installing 11 new packages including curl and updating pacman, the system suggested to "run `pacman-key --init` to set up your pacman keyring" ;
Then it was "not enough random bytes available...", my interruption after 20 min (because i did not understand what was in process)...
After again #pacman -Syyu curl I was offered to update the whole system and it's in a way now...
That's fantastic, thank you very much again!
Offline
Actually, after looking into it, I was a little bit inaccurate. Curl itself isn't a part of the base group, but pacman is and curl is its dependency, so it has to be installed as well. Doesn't matter that much though, effect is the same - pacman won't work properly without curl. In your case everything seems to be fixed, to make absolutely sure you're not missing something else, you might want to run 'pacman -Syu --needed base' to install whatever is missing from the base group.
By the way, the double yy in 'pacman -Syyu' isn't usually needed, as it causes pacman to refresh package list even though it seems to be up to date. That's sometimes useful if you run into trouble, but isn't needed for every update. 'Syu' will do just fine, it will check all repositories and refresh only those that are out of date.
Glad we could help ![]()
edit: also please put [solved] tag in the thread title, as the problem has been fixed
Last edited by meph (2012-02-20 17:18:42)
Running arch is like raising a puppy - if you spend a bit of time with it each day and do just a bit of training you'll end up with the most loyal partner you could want; if you lock it in a room and don't check on if for several days, it'll tear apart your stuff and poop everywhere.
Offline
Ok, thank you
But,sorry, don't see how to put [solved] tag on the thread title...
Last edited by yu.khanayev (2012-02-20 17:51:12)
Offline
From here:
Finally, when a solution is found, mark your thread as solved by editing the first post and prepending the tag [SOLVED] to the title in the "Subject" field.
Note that you should avoid using [CLOSED], which is instead used by the system to mark a thread which is no longer accessible for new posts.
Running arch is like raising a puppy - if you spend a bit of time with it each day and do just a bit of training you'll end up with the most loyal partner you could want; if you lock it in a room and don't check on if for several days, it'll tear apart your stuff and poop everywhere.
Offline
@meph , thank you ![]()
(Yet as it turned out the best solution was to reinstall the system, as you recommended - to avoid fatal errors that appeared to be inevitable because, as you said, list of packages to be installed was tampered with during the first installation process).
Last edited by yu.khanayev (2012-02-20 18:42:33)
Offline
Glad I could help
But that's what I thought, rather than going through individual errors and fixing what's broken it's easier to just go through the 15 minutes long process and install from scratch. Especially since you found out that there was a problem so early, when your system wasn't customized yet. Anyway, it's always good to check out arch wiki whenever you're trying to do something big. Even when you're an experienced linux user you can still learn something new there, or avoid future problems. For example, warning about unselecting base packages is explicitly written in the beginner's guide ![]()
Running arch is like raising a puppy - if you spend a bit of time with it each day and do just a bit of training you'll end up with the most loyal partner you could want; if you lock it in a room and don't check on if for several days, it'll tear apart your stuff and poop everywhere.
Offline
Pages: 1