You are not logged in.

#1 2012-02-20 13:59:52

yu.khanayev
Member
Registered: 2012-02-20
Posts: 9

[SOLVED] package management problem

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

#2 2012-02-20 15:00:16

rtoijala
Member
Registered: 2011-09-11
Posts: 36

Re: [SOLVED] package management problem

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

#3 2012-02-20 15:22:18

yu.khanayev
Member
Registered: 2012-02-20
Posts: 9

Re: [SOLVED] package management problem

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

#4 2012-02-20 15:23:00

meph
Member
Registered: 2011-06-06
Posts: 160

Re: [SOLVED] package management problem

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 wink

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

#5 2012-02-20 16:15:24

yu.khanayev
Member
Registered: 2012-02-20
Posts: 9

Re: [SOLVED] package management problem

@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

#6 2012-02-20 17:16:59

meph
Member
Registered: 2011-06-06
Posts: 160

Re: [SOLVED] package management problem

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 smile

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

#7 2012-02-20 17:47:15

yu.khanayev
Member
Registered: 2012-02-20
Posts: 9

Re: [SOLVED] package management problem

Ok, thank you smile
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

#8 2012-02-20 18:00:21

meph
Member
Registered: 2011-06-06
Posts: 160

Re: [SOLVED] package management problem

From here:

ArchWiki wrote:

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

#9 2012-02-20 18:42:09

yu.khanayev
Member
Registered: 2012-02-20
Posts: 9

Re: [SOLVED] package management problem

@meph , thank you smile

(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

#10 2012-02-20 20:07:14

meph
Member
Registered: 2011-06-06
Posts: 160

Re: [SOLVED] package management problem

Glad I could help smile

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 wink


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

Board footer

Powered by FluxBB