You are not logged in.

#1 2008-11-11 19:52:01

Frank2
Member
Registered: 2008-11-11
Posts: 2

pacman update fails (cannot write to file...) [SOLVED]

Hi,

I followed the Wiki and installed Arch i686 into a Virtual Machine (VMServer 2.0). As suggested I executed 'pacman -Syy' and 'rm /usr/lib/klibc/include/asm'. Everything seemed to work fine until I tried to do a system upgrade:

#pacman --sync --refresh --sysupgrade
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Starting full system upgrade...

:: pacman has detected a newer version of itself.
:: Do you want to cancel the current operation
:: and install the new pacman version now? [Y/n]
resolving dependencies...
looking for inter-conflicts...

Targets: libarchive-2.5.5-1  pacman-3.2.1-1

Total Download Size:    0.81 MB
Total Installed Size:   2.46 MB

Proceed with installation? [Y/n]
:: Retrieving packages from core...
libarchive-2.5.5-1-i686  348.5K  217.7K/s 00:00:02 [###...###] 100%
error: cannot write to file '/var/cache/pacman/pkg/pacman-3.2.1-1-i686.pkg.tar.gz.part'
warning: failed to retrieve some files from core
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
#

Sorry, I'm new to archlinux and more or less new to Linux at all. So, the only idea I had so far was to look at the available disk space:
/dev/sda3   87M available, mounted on /
none         252M available, mounted on /dev/shm
/dev/sda1  28M available, mounted on /boot
/dev/sda4 264M available, mounted on /home

Any ideas what I missed? TIA!

Frank

Last edited by Frank2 (2008-11-12 18:49:13)

Offline

#2 2008-11-11 23:38:41

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: pacman update fails (cannot write to file...) [SOLVED]

Frank2 wrote:

/dev/sda3   87M available, mounted on /

That seems very little.  Is this correct?

It sounds like you have run out of space to download the files needed to do the update.  Having only 87M left seems to agree with this conclusion.

Offline

#3 2008-11-12 18:47:33

Frank2
Member
Registered: 2008-11-11
Posts: 2

Re: pacman update fails (cannot write to file...) [SOLVED]

Allen, thanks for your help! I'm using a new VM with more HD capacity, fresh archlinux installation and now it works like a charm.

Frank

Offline

#4 2008-11-12 20:02:11

MindTooth
Member
From: Norway
Registered: 2008-11-11
Posts: 331

Re: pacman update fails (cannot write to file...) [SOLVED]

I guess if you have a good internet connection that you should always clear the local cache:

sudo pacman -Scc

And maybe even remove all orphans that you don't need:

sudo pacman -Rs $(pacman -Qtdq)

NB! Note that you should take a search of the orphans first, to detect if there is anything you still need:

pacman -Qdt

This way, you are keepng your system clean.

Birger smile

Last edited by MindTooth (2008-11-12 20:02:44)

Offline

Board footer

Powered by FluxBB