Pacman

Welcome to the Pacman bug tracker. Please search the current bugs and feature requests before filing a new one! Use advanced search and select "Search in Comments".

* Please select the correct category and version.
* Write a descriptive summary, background info, and provide a reproducible test case whenever possible.
Tasklist

FS#7240 - no /var/cache/pacman/pkg/ & /tmp fallback for pacman is unusable

Attached to Project: Pacman
Opened by Arvid Picciani (aep) - Tuesday, 22 May 2007, 22:00 GMT
Last edited by Dan McGee (toofishes) - Wednesday, 21 November 2007, 05:18 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To Aaron Griffin (phrakture)
Dan McGee (toofishes)
Architecture All
Severity Medium
Priority High
Reported Version 3.0.4
Due in Version 3.1.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

[root@grey outsource]# pacman -S alsa-utils mpd
resolving dependencies... done.
looking for inter-conflicts... done.

Targets: alsa-lib-1.0.14rc3-2 alsa-utils-1.0.14rc2-2 libid3tag-0.15.1b-2 libmad-0.15.1b-2 libogg-1.1.3-1 flac-1.1.4-1 audiofile-0.2.6-3 faad2-2.5-3 libmikmod-3.1.11-3
libvorbis-1.1.2-1 libtheora-1.0alpha7-1 speex-1.1.12-1 libshout-2.2.2-2 libmpcdec-1.2.5-1 mpd-0.12.2-1

Total Package Size: 4.11 MB

Proceed with installation? [Y/n]
:: Retrieving packages from current...
warning: no /var/cache/pacman/pkg/ cache exists, creating...
error: failed to make path '/var/cache/pacman/pkg/' : File exists
warning: couldn't create package cache, using /tmp instead
alsa-lib 457.8K 87.6K/s 00:00:05 [#######################################################################################################################] 100%
alsa-utils 1026.7K 114.8K/s 00:00:09 [#######################################################################################################################] 100%
libid3tag 71.6K 34.6K/s 00:00:02 [#######################################################################################################################] 100%
libmad 135.3K 48.7K/s 00:00:03 [#######################################################################################################################] 100%
libogg 19.5K 20.1K/s 00:00:01 [#######################################################################################################################] 100%
flac 633.0K 98.1K/s 00:00:06 [#######################################################################################################################] 100%
audiofile 149.5K 48.6K/s 00:00:03 [#######################################################################################################################] 100%
faad2 374.3K 80.0K/s 00:00:05 [#######################################################################################################################] 100%
libmikmod 290.1K 71.3K/s 00:00:04 [#######################################################################################################################] 100%
libvorbis 450.0K 86.5K/s 00:00:05 [#######################################################################################################################] 100%
libtheora 210.1K 59.3K/s 00:00:04 [#######################################################################################################################] 100%
:: Retrieving packages from extra...
speex 190.9K 54.9K/s 00:00:03 [#######################################################################################################################] 100%
libshout 58.7K 26.9K/s 00:00:02 [#######################################################################################################################] 100%
libmpcdec 27.4K 18.2K/s 00:00:02 [#######################################################################################################################] 100%
mpd 109.3K 42.1K/s 00:00:03 [#######################################################################################################################] 100%
checking package integrity...
error: //tmp/alsa-lib-1.0.14rc3-2.pkg.tar.gz can't be opened
error: sha1: //tmp/alsa-lib-1.0.14rc3-2.pkg.tar.gz can't be opened
error: //tmp/alsa-utils-1.0.14rc2-2.pkg.tar.gz can't be opened
error: sha1: //tmp/alsa-utils-1.0.14rc2-2.pkg.tar.gz can't be opened
error: //tmp/libid3tag-0.15.1b-2.pkg.tar.gz can't be opened
error: sha1: //tmp/libid3tag-0.15.1b-2.pkg.tar.gz can't be opened
error: //tmp/libmad-0.15.1b-2.pkg.tar.gz can't be opened
error: sha1: //tmp/libmad-0.15.1b-2.pkg.tar.gz can't be opened
error: //tmp/libogg-1.1.3-1.pkg.tar.gz can't be opened
error: sha1: //tmp/libogg-1.1.3-1.pkg.tar.gz can't be opened
error: //tmp/flac-1.1.4-1.pkg.tar.gz can't be opened
error: sha1: //tmp/flac-1.1.4-1.pkg.tar.gz can't be opened
error: //tmp/audiofile-0.2.6-3.pkg.tar.gz can't be opened
error: sha1: //tmp/audiofile-0.2.6-3.pkg.tar.gz can't be opened
error: //tmp/faad2-2.5-3.pkg.tar.gz can't be opened
error: sha1: //tmp/faad2-2.5-3.pkg.tar.gz can't be opened
error: //tmp/libmikmod-3.1.11-3.pkg.tar.gz can't be opened
error: sha1: //tmp/libmikmod-3.1.11-3.pkg.tar.gz can't be opened
error: //tmp/libvorbis-1.1.2-1.pkg.tar.gz can't be opened
error: sha1: //tmp/libvorbis-1.1.2-1.pkg.tar.gz can't be opened
error: //tmp/libtheora-1.0alpha7-1.pkg.tar.gz can't be opened
error: sha1: //tmp/libtheora-1.0alpha7-1.pkg.tar.gz can't be opened
error: //tmp/speex-1.1.12-1.pkg.tar.gz can't be opened
error: sha1: //tmp/speex-1.1.12-1.pkg.tar.gz can't be opened
error: //tmp/libshout-2.2.2-2.pkg.tar.gz can't be opened
error: sha1: //tmp/libshout-2.2.2-2.pkg.tar.gz can't be opened
error: //tmp/libmpcdec-1.2.5-1.pkg.tar.gz can't be opened
error: sha1: //tmp/libmpcdec-1.2.5-1.pkg.tar.gz can't be opened
error: //tmp/mpd-0.12.2-1.pkg.tar.gz can't be opened
error: sha1: //tmp/mpd-0.12.2-1.pkg.tar.gz can't be opened
error: failed to commit transaction (corrupted package)
can't get md5 or sha1 checksum for package alsa-lib-1.0.14rc3-2.pkg.tar.gz
can't get md5 or sha1 checksum for package alsa-utils-1.0.14rc2-2.pkg.tar.gz
can't get md5 or sha1 checksum for package libid3tag-0.15.1b-2.pkg.tar.gz
can't get md5 or sha1 checksum for package libmad-0.15.1b-2.pkg.tar.gz
can't get md5 or sha1 checksum for package libogg-1.1.3-1.pkg.tar.gz
can't get md5 or sha1 checksum for package flac-1.1.4-1.pkg.tar.gz
can't get md5 or sha1 checksum for package audiofile-0.2.6-3.pkg.tar.gz
can't get md5 or sha1 checksum for package faad2-2.5-3.pkg.tar.gz
can't get md5 or sha1 checksum for package libmikmod-3.1.11-3.pkg.tar.gz
can't get md5 or sha1 checksum for package libvorbis-1.1.2-1.pkg.tar.gz
can't get md5 or sha1 checksum for package libtheora-1.0alpha7-1.pkg.tar.gz
can't get md5 or sha1 checksum for package speex-1.1.12-1.pkg.tar.gz
can't get md5 or sha1 checksum for package libshout-2.2.2-2.pkg.tar.gz
can't get md5 or sha1 checksum for package libmpcdec-1.2.5-1.pkg.tar.gz
can't get md5 or sha1 checksum for package mpd-0.12.2-1.pkg.tar.gz

errors occurred, no packages were upgraded.

[root@grey outsource]#


[root@grey outsource]# ls /tmp
[root@grey outsource]# ls /tmp*
/tmpalsa-lib-1.0.14rc3-2.pkg.tar.gz /tmpflac-1.1.4-1.pkg.tar.gz /tmplibmpcdec-1.2.5-1.pkg.tar.gz /tmplibvorbis-1.1.2-1.pkg.tar.gz
/tmpalsa-utils-1.0.14rc2-2.pkg.tar.gz /tmplibid3tag-0.15.1b-2.pkg.tar.gz /tmplibogg-1.1.3-1.pkg.tar.gz /tmpmpd-0.12.2-1.pkg.tar.gz
/tmpaudiofile-0.2.6-3.pkg.tar.gz /tmplibmad-0.15.1b-2.pkg.tar.gz /tmplibshout-2.2.2-2.pkg.tar.gz /tmpspeex-1.1.12-1.pkg.tar.gz
/tmpfaad2-2.5-3.pkg.tar.gz /tmplibmikmod-3.1.11-3.pkg.tar.gz /tmplibtheora-1.0alpha7-1.pkg.tar.gz

/tmp:
[root@grey outsource]#

This task depends upon

This task blocks these from closing
 FS#8109 - Pacman 3.1 Release Roadmap 
Closed by  Dan McGee (toofishes)
Wednesday, 21 November 2007, 05:18 GMT
Reason for closing:  Fixed
Additional comments about closing:  Tested by Xavier in 3.1/GIT, seems we've fixed the issue.
Comment by Arvid Picciani (aep) - Tuesday, 22 May 2007, 22:03 GMT
err sorry. just figured that the "/var/cache/pacman/pkg/" thing is my fault. the symlink was borked.
anyway, the other thing still remains. could mean a lower Severity thought.
Comment by Aaron Griffin (phrakture) - Wednesday, 30 May 2007, 17:50 GMT
yeah good catch - fatal fallbacks like this usually are untested. Looks like a simple path "oops" to me. I will fix this when I can
Comment by Dan McGee (toofishes) - Thursday, 31 May 2007, 06:08 GMT
Fix will be checked in to my GIT repo sometime soon.
Comment by Gerhard Brauer (GerBra) - Friday, 21 September 2007, 22:58 GMT
Push! ;-)

Could you check were the missing path seperator for /tmp/ is?
My /var/cache/pacman/pkg are symlinks to NFS shares. On my laptop (when i'm not at home) and would install a package i always
must remove the symlink and make a "real" directory.
When the /tmp fallback is functionally then live is easier for me.
Comment by Dan McGee (toofishes) - Friday, 09 November 2007, 18:37 GMT
Anyone tested this in the current GIT release?
Comment by Xavier (shining) - Tuesday, 20 November 2007, 21:17 GMT
I just renamed /var/cache/pacman/pkg and then ran -Su, it worked just fine:

warning: couldn't create package cache, using /tmp instead
:: Retrieving packages from extra...
cpufrequtils-002-3-i686 30.3K 84.9K/s 00:00:00 [###################] 100%
checking package integrity... done.
(1/1) checking for file conflicts [###################] 100%
(1/1) upgrading cpufrequtils [###################] 100%

Loading...