Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#5739 - Pacman local database corrupted

Attached to Project: Pacman
Opened by Constantin Teodorescu (brailateo) - Thursday, 02 November 2006, 15:11 GMT
Task Type Bug Report
Category
Status Closed
Assigned To No-one
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Due to a lot of updates (and also due to mixing some packages from testing and stable repository) I came into a situation where pacman cannot evaluate the packages that have been already updated.
pacman -Syu gives the following messages:
[root@teo ~]# pacman -Syu
error: /var/lib/pacman/local/-/desc: No such file or directory
:: Synchronizing package databases...
:: current is up to date
:: extra is up to date
:: Replace raidtools with mdadm from "current"? [Y/n] Y
error: /var/lib/pacman/local/-/desc: No such file or directory
error: /var/lib/pacman/local/-/desc: No such file or directory
error: /var/lib/pacman/local/-/desc: No such file or directory
[ ... and so on ...]
error: /var/lib/pacman/local/-/desc: No such file or directory
error: /var/lib/pacman/local/-/desc: No such file or directory

Remove: raidtools

Targets: kernel-headers-2.6.18.1-1 glibc-2.4-4 mdadm-2.5.5-2 coreutils-6.4-2 findutils-4.2.28-1 gettext-0.15-1 man-pages-2.41-1 pciutils-2.2.4-1 curl-7.15.5-1 libxml2-2.6.26-1
libgpg-error-1.4-1 libgcrypt-1.2.3-1 libxslt-1.1.17-1 freetype2-2.2.1-3 libjpeg-6b-4 libpng-1.2.12-1 php-5.1.6-4 udev-103-1

Total Package Size: 30.1 MB

Proceed with upgrade? [Y/n] n

The same packages are shown as "old" even if I had already done more updates. Pacman skips the download phase but trying to install the packages it says that file exists. So , the only way I can update a package is using "pacman -Sf the-package" and it installs a lot of other related packages that are (I am sure) already downloaded and updated.

Is there an option to pacman that rebuilds the local packages version database?

Thanks in advance,
Teo
This task depends upon

Closed by  Roman Kyrylych (Romashka)
Monday, 13 November 2006, 22:03 GMT
Reason for closing:  None
Comment by Roman Kyrylych (Romashka) - Monday, 13 November 2006, 21:25 GMT
/var/lib/pacman/local/-/desc means that pacman looks for package with the name "-" in db.
You should ensure that there's no /var/lib/pacman/local/- directory. Post there if this at least helps to upgrade normally.
I don't know why pacman can corrupt database in some rare cases. Most of them are not reproduceable anyway.
Comment by Constantin Teodorescu (brailateo) - Monday, 13 November 2006, 21:59 GMT
I found a folder named "-" in /var/lib/pacman/local with just a single file, "depends"
I have deleted the file and folder and it seems that everything is OK now.

Thanks for your help

Teo

Loading...