You are not logged in.

#1 2017-07-14 05:45:46

cradlemann
Member
Registered: 2017-07-14
Posts: 14

Pacman delete itself

Hi guys,

I have a problem with pacman. I have very small root directory 10 Gb only, I didn`t want to loose pacman cache, so I moved directory /var/cache/pacman to another disk and create symlink, using this command sudo ln -s /.. /var/cache.
Today I tried to update system and new version of pacman (pacman-5.0.2-2-x86_64.pkg.tar.xz) was available, but I got these errors

"error: could not open file /var/cache/pacman/pkg/pacman-5.0.2-2-x86_64.pkg.tar.xz: No such file or directory
error: could not commit transaction
error: failed to commit transaction (transaction aborted)
Errors occurred, no packages were upgraded."

When I tried to run update again I got "pacman: command not found"
I have all cache files but pacman was removed itself.
Yaourt is also not working.
Is there any other way to install pacman again, except run live cd? How to avoid such situations in a future?

Offline

#2 2017-07-14 05:49:14

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Pacman delete itself


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB