You are not logged in.

#1 2007-08-23 17:15:58

Valheru
Member
Registered: 2005-02-06
Posts: 49

Pacman is broken...

It's giving me errors galore :

pacman -Syyu
:: Synchronizing package databases...
 current                   70.0K  458.3K/s 00:00:00 [####################################################################################################################] 100%
error: could not extract /var/lib/pacman/current//acl-2.2.44-1/desc: Can't update time for /var/lib/pacman/current/acl-2.2.44-1/desc: Bad file descriptor
error: failed to update current (unexpected system error)
 extra                    270.7K  812.4K/s 00:00:00 [####################################################################################################################] 100%
error: could not extract /var/lib/pacman/extra//3ddesktop-0.2.9-2/depends: Can't update time for /var/lib/pacman/extra/3ddesktop-0.2.9-2/depends: Bad file descriptor
error: failed to update extra (unexpected system error)
 community                294.5K  954.7K/s 00:00:00 [####################################################################################################################] 100%
error: could not extract /var/lib/pacman/community//855resolution-0.4-5/desc: Can't update time for /var/lib/pacman/community/855resolution-0.4-5/desc: Bad file descriptor
error: failed to update community (unexpected system error)
 unstable                   8.1K  177.3K/s 00:00:00 [####################################################################################################################] 100%
error: could not extract /var/lib/pacman/unstable//abcm2ps-devel-5.4.4-1/desc: Can't update time for /var/lib/pacman/unstable/abcm2ps-devel-5.4.4-1/desc: Bad file descriptor
error: failed to update unstable (unexpected system error)
 kdemod                    28.5K  196.2K/s 00:00:00 [####################################################################################################################] 100%
error: could not extract /var/lib/pacman/kdemod//baghira-sidebar-0.8-2/desc: Can't update time for /var/lib/pacman/kdemod/baghira-sidebar-0.8-2/desc: Bad file descriptor
error: failed to update kdemod (unexpected system error)
 tardo                      9.2K   50.5K/s 00:00:00 [####################################################################################################################] 100%
error: could not extract /var/lib/pacman/tardo//amarok2-svn-675100-1/depends: Can't update time for /var/lib/pacman/tardo/amarok2-svn-675100-1/depends: Bad file descriptor
error: failed to update tardo (unexpected system error)
 danimoth                   1.7K   19.4M/s 00:00:00 [####################################################################################################################] 100%
error: could not extract /var/lib/pacman/danimoth//compiz-git-20070317-1/desc: Can't update time for /var/lib/pacman/danimoth/compiz-git-20070317-1/desc: Bad file descriptor
error: failed to update danimoth (unexpected system error)
error: failed to synchronize any databases

So I untarred the downloaded databases manually, after which it gave me these errors :

pacman -Ss pacman
error: could not open file /var/lib/pacman/current//acl-2.2.44-1/depends: No such file or directory
error: could not open file /var/lib/pacman/extra//3ddesktop-0.2.9-2/desc: No such file or directory
error: could not open file /var/lib/pacman/community//855resolution-0.4-5/depends: No such file or directory
error: could not open file /var/lib/pacman/unstable//abcm2ps-devel-5.4.4-1/depends: No such file or directory
error: could not open file /var/lib/pacman/kdemod//baghira-sidebar-0.8-2/depends: No such file or directory
error: could not open file /var/lib/pacman/tardo//amarok2-svn-675100-1/desc: No such file or directory
error: could not open file /var/lib/pacman/danimoth//compiz-git-20070317-1/depends: No such file or directory

So I touched the files to create them, and now it can't find any programs at all :

pacman -S pacman
error: 'pacman': not found in sync db

This is the output with debug turned on :

pacman -Ss ktorrent --debug
debug: config: new section 'options'
debug: config: logfile: /var/log/pacman.log
debug: config: holdpkg: pacman
debug: config: holdpkg: glibc
debug: config: new section 'current'
debug: registering database 'current'
debug: opening database 'current'
debug: opening database from path '/var/lib/pacman/current/'
debug: config: including /etc/pacman.d/current
debug: attempt to re-register the 'current' database, using existing
debug: adding new server to database 'current': protocol 'ftp', server 'ftp.belnet.be', path '/packages/archlinux/current/os/i686'
debug: adding new server to database 'current': protocol 'ftp', server 'ftp.nluug.nl', path '/pub/metalab/distributions/archlinux/current/os/i686'
debug: adding new server to database 'current': protocol 'ftp', server 'ftp.surfnet.nl', path '/pub/os/Linux/distr/archlinux/current/os/i686'
debug: returning error 54 from alpm_parse_config : syntax error in config file
debug: config: new section 'extra'
debug: registering database 'extra'
debug: opening database 'extra'
debug: opening database from path '/var/lib/pacman/extra/'
debug: config: including /etc/pacman.d/extra
debug: attempt to re-register the 'extra' database, using existing
debug: adding new server to database 'extra': protocol 'ftp', server 'ftp.belnet.be', path '/packages/archlinux/extra/os/i686'
debug: adding new server to database 'extra': protocol 'ftp', server 'ftp.nluug.nl', path '/pub/metalab/distributions/archlinux/extra/os/i686'
debug: adding new server to database 'extra': protocol 'ftp', server 'ftp.surfnet.nl', path '/pub/os/Linux/distr/archlinux/extra/os/i686'
debug: returning error 54 from alpm_parse_config : syntax error in config file
debug: config: new section 'community'
debug: registering database 'community'
debug: opening database 'community'
debug: opening database from path '/var/lib/pacman/community/'
debug: config: including /etc/pacman.d/community
debug: attempt to re-register the 'community' database, using existing
debug: adding new server to database 'community': protocol 'ftp', server 'ftp.belnet.be', path '/packages/archlinux/community/os/i686'
debug: adding new server to database 'community': protocol 'ftp', server 'ftp.nluug.nl', path '/pub/metalab/distributions/archlinux/community/os/i686'
debug: adding new server to database 'community': protocol 'ftp', server 'ftp.surfnet.nl', path '/pub/os/Linux/distr/archlinux/community/os/i686'
debug: returning error 54 from alpm_parse_config : syntax error in config file
debug: config: new section 'unstable'
debug: registering database 'unstable'
debug: opening database 'unstable'
debug: opening database from path '/var/lib/pacman/unstable/'
debug: config: including /etc/pacman.d/unstable
debug: attempt to re-register the 'unstable' database, using existing
debug: adding new server to database 'unstable': protocol 'ftp', server 'ftp.belnet.be', path '/packages/archlinux/unstable/os/i686'
debug: adding new server to database 'unstable': protocol 'ftp', server 'ftp.nluug.nl', path '/pub/metalab/distributions/archlinux/unstable/os/i686'
debug: adding new server to database 'unstable': protocol 'ftp', server 'ftp.surfnet.nl', path '/pub/os/Linux/distr/archlinux/unstable/os/i686'
debug: returning error 54 from alpm_parse_config : syntax error in config file
debug: config: new section 'kdemod'
debug: registering database 'kdemod'
debug: opening database 'kdemod'
debug: opening database from path '/var/lib/pacman/kdemod/'
debug: adding new server to database 'kdemod': protocol 'http', server 'www.kdemod.ath.cx', path '/repo/current/i686'
debug: config: new section 'tardo'
debug: registering database 'tardo'
debug: opening database 'tardo'
debug: opening database from path '/var/lib/pacman/tardo/'
debug: adding new server to database 'tardo': protocol 'http', server 'nagi-fanboi.net', path '/arch/i686'
debug: config: new section 'danimoth'
debug: registering database 'danimoth'
debug: opening database 'danimoth'
debug: opening database from path '/var/lib/pacman/danimoth/'
debug: adding new server to database 'danimoth': protocol 'http', server 'jjdanimoth.altervista.org', path '/arch/i686'
debug: registering database 'local'
debug: opening database 'local'
debug: opening database from path '/var/lib/pacman/local/'
debug: searching for target 'ktorrent'
debug: loading package cache for repository 'current'
debug: searching for target 'ktorrent'
debug: loading package cache for repository 'extra'
debug: searching for target 'ktorrent'
debug: loading package cache for repository 'community'
debug: searching for target 'ktorrent'
debug: loading package cache for repository 'unstable'
debug: searching for target 'ktorrent'
debug: loading package cache for repository 'kdemod'
debug: searching for target 'ktorrent'
debug: loading package cache for repository 'tardo'
debug: searching for target 'ktorrent'
debug: loading package cache for repository 'danimoth'
debug: unregistering database 'local'
debug: closing database 'local'
debug: removing DB current, 7 remaining...
debug: unregistering database 'current'
debug: freeing package cache for repository 'current'
debug: closing database 'current'
debug: removing DB extra, 6 remaining...
debug: unregistering database 'extra'
debug: freeing package cache for repository 'extra'
debug: closing database 'extra'
debug: removing DB community, 5 remaining...
debug: unregistering database 'community'
debug: freeing package cache for repository 'community'
debug: closing database 'community'
debug: removing DB unstable, 4 remaining...
debug: unregistering database 'unstable'
debug: freeing package cache for repository 'unstable'
debug: closing database 'unstable'
debug: removing DB kdemod, 3 remaining...
debug: unregistering database 'kdemod'
debug: freeing package cache for repository 'kdemod'
debug: closing database 'kdemod'
debug: removing DB tardo, 2 remaining...
debug: unregistering database 'tardo'
debug: freeing package cache for repository 'tardo'
debug: closing database 'tardo'
debug: removing DB danimoth, 1 remaining...
debug: unregistering database 'danimoth'
debug: freeing package cache for repository 'danimoth'
debug: closing database 'danimoth'

I am running XFS as filesystem and I ran xfs_repair. It did find errors but it fixed them succesfully. What gives? It almost seems as though Pacman itself is corrupting my filesystem ...

Offline

#2 2007-08-23 17:21:51

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: Pacman is broken...

Which kernel are you using ? if it isn't arch default one, could you try it?


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#3 2007-08-23 17:36:22

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Pacman is broken...

I doubt pacman is corrupting your filesystem.  Run

rm -r /var/lib/pacman/{current,extra,community,unstable,kdemod,tardo,danimoth}/

(do NOT delete /var/lib/pacman/local!) then re-run

pacman -Sy

and see if it works again.

Last edited by Cerebral (2007-08-23 17:36:37)

Offline

#4 2007-08-23 17:36:53

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: Pacman is broken...

Something's up with pacman.conf or the pacman.d files. See the "error 54 from alpm_parse_config" messages.

Also, is it possible that the filesystem containing /var/lib/pacman is full?

Offline

#5 2007-08-23 18:50:21

songochain
Member
Registered: 2007-01-23
Posts: 19

Re: Pacman is broken...

I've the same problem here. Also i've lost which packages are installed on my system. For example if i do pacman -S xorg it will be installed without any message. I've deleted /var/lib/pacman and that doesnt fix the problem. Also i've free space on my hd.

Offline

#6 2007-08-23 19:01:30

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Pacman is broken...

songochain wrote:

I've deleted /var/lib/pacman and that doesnt fix the problem. Also i've free space on my hd.

Well, that's why you've lost info about all your installed files.  /var/lib/pacman/local is where pacman stores this information - if you wiped out the entire dir, then you'll just have to reinstall everything to get that info back.

This is why, in my last post in this thread, I said to NOT delete /var/lib/pacman/local.

Offline

#7 2007-08-23 19:41:38

JaDa
Member
From: Sun City, CA (native German)
Registered: 2007-04-06
Posts: 210
Website

Re: Pacman is broken...

My Problem is

# pacman -Syu
:: Synchronizing package databases...

it takes a will long time..............now!

Last edited by JaDa (2007-08-23 19:41:59)


openSUSE
Arch Linux
USALUG

Offline

#8 2007-08-23 19:59:51

songochain
Member
Registered: 2007-01-23
Posts: 19

Re: Pacman is broken...

Cerebral wrote:
songochain wrote:

I've deleted /var/lib/pacman and that doesnt fix the problem. Also i've free space on my hd.

Well, that's why you've lost info about all your installed files.  /var/lib/pacman/local is where pacman stores this information - if you wiped out the entire dir, then you'll just have to reinstall everything to get that info back.

This is why, in my last post in this thread, I said to NOT delete /var/lib/pacman/local.

Yes i remembered that after delete the dir :S People who have this problem, what version of kernel have you??? i've 2.6.21

Offline

#9 2007-08-23 20:01:38

Valheru
Member
Registered: 2005-02-06
Posts: 49

Re: Pacman is broken...

ataraxia wrote:

Something's up with pacman.conf or the pacman.d files. See the "error 54 from alpm_parse_config" messages.

Also, is it possible that the filesystem containing /var/lib/pacman is full?

Hmm, I'll check pacman.conf and the files in pacman.d

I had already tried removing the files in /var/lib/pacman (excluding local of course) and resyncing with pacman -Syyu but the erros persisted.

I am running the 2.6.21-viper2 kernel, but I've been running that for a few months now, so I doubt that that is the cause.

Last edited by Valheru (2007-08-23 20:02:12)

Offline

#10 2007-08-23 20:08:38

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Pacman is broken...

Valheru wrote:

I had already tried removing the files in /var/lib/pacman (excluding local of course) and resyncing with pacman -Syyu but the erros persisted.

Actually, I was wondering if you had done this after running the tool to fix filesystem errors.

Offline

#11 2007-08-23 20:09:12

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: Pacman is broken...

Valheru wrote:

I had already tried removing the files in /var/lib/pacman (excluding local of course) and resyncing with pacman -Syyu but the erros persisted.

I am running the 2.6.21-viper2 kernel, but I've been running that for a few months now, so I doubt that that is the cause.

That's exactly the problem someone reported on irc this morning.
We also didn't think the kernel was the problem since he also had it running for a while, and that problem only happened recently (after last upgrade).

Maybe it's just that this particular kernel doesn't play well with the newer version of a package that got updated.. I really don't know.

edit : btw that user had this problem on two box (running viper kernel on both), and he also deleted /var/lib/pacman on one of them.
Maybe this suggestion would help indeed : http://www.archlinux.org/pipermail/pacm … 09174.html

Last edited by shining (2007-08-23 20:13:55)


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#12 2007-08-23 20:11:03

Lazer
Banned
Registered: 2007-08-02
Posts: 111

Re: Pacman is broken...

I have the same problem sad
2.6.21-viper

Offline

#13 2007-08-23 20:51:46

Valheru
Member
Registered: 2005-02-06
Posts: 49

Re: Pacman is broken...

Ok, something is indeed wrong with this combination of viper2/pacman - I just booted using the default Arch kernel and I could repair no problem. Really strange.

Seeing though that Vipernicus died of a stroke just recently (http://forums.gentoo.org/viewtopic-t-572071.html) I was planning on switching kernels this weekend anyway. Does anyone know a kernel they want to recommend? I have run nitro, beyond and vipernicus in the past so those are the sort of kernels I like - I specifically need fbsplash support.

Offline

#14 2007-08-23 21:19:40

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: Pacman is broken...

Maybe you could try adding just fbsplash support to arch kernel ?


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#15 2007-08-23 22:04:11

Valheru
Member
Registered: 2005-02-06
Posts: 49

Re: Pacman is broken...

The way it's going I might even start my own patchset tongue Lately I've been on a software writing/maintainance spree, with a project on sourceforge and one on Googlecode with another one coming tongue A patchset should complement them nicely wink

Offline

#16 2007-08-23 22:43:59

Cimi
Member
From: Padova, Italy
Registered: 2006-01-16
Posts: 301
Website

Re: Pacman is broken...

I can suggest you the "pierlo patchset", from an italian friend of mine smile http://pierluigi.netsons.org/pierlo-patchset


Murrine Creator - GNOME Developer

Offline

#17 2007-08-23 23:22:39

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: Pacman is broken...

Valheru wrote:

The way it's going I might even start my own patchset tongue Lately I've been on a software writing/maintainance spree, with a project on sourceforge and one on Googlecode with another one coming tongue A patchset should complement them nicely wink

is any of them a dvd burning application? linux only has two


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#18 2007-08-25 20:39:15

Valheru
Member
Registered: 2005-02-06
Posts: 49

Re: Pacman is broken...

dolby wrote:
Valheru wrote:

The way it's going I might even start my own patchset tongue Lately I've been on a software writing/maintainance spree, with a project on sourceforge and one on Googlecode with another one coming tongue A patchset should complement them nicely wink

is any of them a dvd burning application? linux only has two

Lol no, I think k3b is damn good so I don't feel like reinventing the wheel.

One of them is a binary newsgroup reader for KDE4 though, since there isn't one yet that doesn't suck balls (personal opinion wink ) : http://sourceforge.net/projects/knewz

The other one is a library for loading 3D models into memory layed out in a way that OpenGL and D3D want (more or less), so unless you are developing software for games or 3D graphics then it's not going to be very interesting, seeing as it's jsut a library : http://mll.googlecode.com

Offline

#19 2007-08-26 13:16:00

songochain
Member
Registered: 2007-01-23
Posts: 19

Re: Pacman is broken...

Is there any way to reinstall all system ?? i've deleted /var/lib/pacman/local dir :S

Offline

#20 2007-08-26 13:42:53

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: Pacman is broken...

songochain wrote:

Is there any way to reinstall all system ?? i've deleted /var/lib/pacman/local dir :S

Do you think the suggestion there would have helped avoiding it :
http://www.archlinux.org/pipermail/pacm … 09174.html ?


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#21 2007-08-27 08:55:53

ratur
Member
From: Belgium
Registered: 2006-10-07
Posts: 19

Re: Pacman is broken...

I had the same problem with viper kernel ... Switching to arch kernel solved the problem

Thank you !

Offline

#22 2008-03-03 12:02:28

knifemonkey
Member
Registered: 2008-03-03
Posts: 5

Re: Pacman is broken...

are you serious?
I just spent 3 days setting up archlinux, and I was just thinking yay, I have finally found THE operating system I have been looking for after so much time. i had a game of doom3 no less <as normal user>, closed that and then started pacman, it came up with some dependency errors, so I rebooted and had to run fsck in the normal manner. No files removed. Login, try pacman again, no luck. Follow the specific directions about deleting lockfile or some such, deleted, try again, no luck. So I man pacman once again and look for a solution having tried -Syu -Syy -Suy or anything that might have helped, finally i find the -c switch, the 'clean' switch. I use it as the clean switch says it removes junk. and naturally one assumes resets the basic configuration or whatever you know, cleans it self up like apt-get, yum or any other package management program with a clean switch. It asks me some questions, I say yes, yes yes because all of the questions where related to pacman and naturally, I assume it knows what it is doing.  now pacman is screwed your telling me, so my operating system is screwed and I have to re-install everything to have essential package managment support? WTF???? I thought this was a SIMPLE linux distrobution, I thought this was a STABLE operating system, WHERE WAS MY WARNING INSIDE THE PROGRAM?!? seriously dudes I hate to use caps but I've effectively wasted 3 maybe 4 days of my life because of a problem that is worse than something I would expect windows to do, one single, problem in the entire setup <besides a small tussle with video drives> which renders the entire system useless and well, kinda kills my happiness about arch.        so as I've asked myself several times installing arch <ive learnt more than I learnt from slackware> WHERES THE SOLUTION!?! if you say there isnt one then, well, maybe I have to switch to a different distro where I dont have to worry about it self-combusting, i dont mind making mistakes, I just prefer it's me who makes them and not the system, and when there is a solution.................................... reinstall pacman from cd maybe? regenerate info file? it would be a real shame to let this one go, i dont want to, arch rocks, do i have to mod pacman?!?WHAT?!!? WHERES THE SOLUTION!!!!!!!! AAARRRGGHHHHHHH!!!!

Offline

#23 2008-03-03 12:05:29

knifemonkey
Member
Registered: 2008-03-03
Posts: 5

Re: Pacman is broken...

*cries*

Offline

#24 2008-03-03 12:16:52

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Pacman is broken...

knifemonkey wrote:

some dependency errors

That is waaaay too vague. As is "no luck".

Offline

#25 2008-03-03 15:08:38

wizzomafizzo
Member
From: Australia
Registered: 2005-12-05
Posts: 53
Website

Re: Pacman is broken...

knifemonkey wrote:

Something about running fsck whenever some program produces an error message.

There's never going to be a solution for your problems, good luck finding a non-self-combusting, SIMPLE linux distrobution.

Offline

Board footer

Powered by FluxBB