You are not logged in.

#1 2010-10-02 21:45:07

naequs
Member
From: Germany
Registered: 2010-07-12
Posts: 23

deleted folder manually, now cant un-/ install anymore using pacman

hi there,

i accidently manually deleted a folder related to nexuiz some while ago and now can't uninstall nor install it using pacman anymore :x

the returned error is:

$ sudo pacman -S nexuiz
resolving dependencies...
error: could not open file /var/lib/pacman/local/nexuiz-data-2.5.2-1/depends: No such file or directory
error: could not open file /var/lib/pacman/local/nexuiz-data-2.5.2-1/depends: No such file or directory
looking for inter-conflicts...
error: could not open file /var/lib/pacman/local/nexuiz-data-2.5.2-1/depends: No such file or directory
error: could not open file /var/lib/pacman/local/nexuiz-data-2.5.2-1/depends: No such file or directory
error: could not open file /var/lib/pacman/local/nexuiz-data-2.5.2-1/depends: No such file or directory
error: could not open file /var/lib/pacman/local/nexuiz-data-2.5.2-1/depends: No such file or directory

Targets (1): nexuiz-2.5.2-2

Total Download Size:    0.00 MB
Total Installed Size:   5.30 MB

Proceed with installation? [Y/n]

then it trys to update to 2.5.2-2

btw; the nexuiz-data-2.5.2-1 folder is completely empty

i want to install it again, so how can i fix this ?


It's by forging that one becomes a blacksmith.

Offline

#2 2010-10-02 22:02:36

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,792

Re: deleted folder manually, now cant un-/ install anymore using pacman

You might try to remove it with a -Rk flag, followed by a reinstall.
Then you might try the -f (force) flag -- but be careful.  You may want to try it first with the -p flag to see what it is going to do.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2010-10-02 22:11:21

kfgz
Member
From: Supraśl, Poland
Registered: 2009-03-02
Posts: 114

Re: deleted folder manually, now cant un-/ install anymore using pacman

You can uninstall nexuiz manually:

#!/bin/sh
rm -rf /opt/nexuiz
rm -rf /var/lib/pacman/local/nexuiz*
rm /usr/bin/nexuiz-dedicated
rm /usr/bin/nexuiz-glx
rm /usr/bin/nexuiz-sdl
rm /usr/share/applications/nexuiz-glx.desktop
rm /usr/share/applications/nexuiz-sdl.desktop
rm /usr/share/pixmaps/nexuiz.png

Offline

#4 2010-10-02 23:06:49

naequs
Member
From: Germany
Registered: 2010-07-12
Posts: 23

Re: deleted folder manually, now cant un-/ install anymore using pacman

both of your suggestions had no effect.

none of the given folders/files existed except for /var/lib/pacman/local/nexuiz* which was empty

when i now try to install nexuiz, this is what happens:

$ sudo pacman -S nexuiz
resolving dependencies...
looking for inter-conflicts...

Targets (2): nexuiz-data-2.5.2-1  nexuiz-2.5.2-2

Total Download Size:    0.00 MB
Total Installed Size:   855.76 MB

Proceed with installation? [Y/n] y
checking package integrity...
^C
Interrupt signal received

after waiting minutes i cancelled because nothing happened

/e: removing the cache of not installed packages witch "pacman -Sc" did the trick for me

Last edited by naequs (2010-10-02 23:55:10)


It's by forging that one becomes a blacksmith.

Offline

#5 2010-11-05 19:59:53

akephalos
Member
From: Romania
Registered: 2009-04-22
Posts: 114

Re: deleted folder manually, now cant un-/ install anymore using pacman

naequs wrote:

/e: removing the cache of not installed packages witch "pacman -Sc" did the trick for me

My girlfriend had the same problem, with clutter. However, this solution did not work for us, but I removed clutter and reinstalled it with "--force" ('pacman -Sf gnome-games' was the exact command, actually) because it was complaining about existing files in the system which basically were not managed by the package manager anymore. The problem was apparently caused by some disk errors, or something - her computer lost disk data with several other previous occasions.
The previous installation most likely left some garbage on the disk, but at least pacman works wink.

Offline

Board footer

Powered by FluxBB