You are not logged in.

#1 2012-04-25 20:54:09

Joomla12
Member
Registered: 2012-04-25
Posts: 27

Fully Reinstalling a Package

So, after screwing around and trying to get Catalyst installed, I broke a couple things. It's nothing too major but it is a pain. Anyway, how would I go about completely reinstalling a package and all of it's dependencies with Pacman? Doing "pacman -S package" doesn't help at all.

Offline

#2 2012-04-25 21:06:57

Awebb
Member
Registered: 2010-05-06
Posts: 6,310

Re: Fully Reinstalling a Package

Remove it and install it again. But, hurrdurr, most of the things you might break, break inside config files and reinstalling won't fix that. Let's begin with what you did, that made your system so utterly broken.

Offline

#3 2012-04-25 21:14:40

Joomla12
Member
Registered: 2012-04-25
Posts: 27

Re: Fully Reinstalling a Package

Awebb wrote:

Remove it and install it again. But, hurrdurr, most of the things you might break, break inside config files and reinstalling won't fix that. Let's begin with what you did, that made your system so utterly broken.

It's not "utterly broken". The system just acts as if the binary isn't present, when it is. I removed certain things from /usr/lib32 because the Catalyst installer was complaining about them. Once I did that, it installed fine, I performed aticonfig, and started an X session with no issues (other than having to reconfigure my touch pad). When trying to start Skype or WINE (and I'm assuming other multilib applications will have the same issues), the system says that they don't exist.

[adam@soap:~]$ skype                                                  (04-25 16:43)
zsh: command not found: skype
[adam@soap:~]$ which skype                                        (04-25 16:43)
/usr/bin/skype
[adam@soap:~]$ /usr/bin/skype                                      (04-25 17:08)
zsh: no such file or directory: /usr/bin/skype

I tried "pacman -Rs skype && pacman -S skype" but that didn't really do anything.

Last edited by Joomla12 (2012-04-25 21:45:50)

Offline

#4 2012-04-25 22:18:01

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Fully Reinstalling a Package

Please post the output of

grep ^Architecture /etc/pacman.conf
file /usr/bin/skype

and

uname -m

'no such file or directory' errors when the file in question does exist are caused architecture mismatches i.e. installing 32-bit binaries on a 64-bit system or vice-versa.

Offline

#5 2012-04-25 23:39:19

Joomla12
Member
Registered: 2012-04-25
Posts: 27

Re: Fully Reinstalling a Package

[adam@soap:~]$ file /usr/bin/skype                                (04-25 19:34)
/usr/bin/skype: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, stripped

Yup. For whatever reason, the 32bit version is installed. I guess Pacman isn't installing stuff from multilib correctly. That still doesn't explain why it stopped working after I installed the Catalyst driver.

[adam@soap:~]$ grep ^Architecture /etc/pacman.conf                (04-25 19:50)
grep: Audiobooks: Is a directory
grep: .cache: Is a directory
grep: .config: Is a directory
grep: .dbus: Is a directory
grep: Downloads: Is a directory
grep: .fontconfig: Is a directory
grep: .gconf: Is a directory
grep: .gnome2: Is a directory
grep: .gstreamer-0.10: Is a directory
grep: .icons: Is a directory
grep: jdownloader: Is a directory
grep: .local: Is a directory
grep: .macromedia: Is a directory
grep: .mozilla: Is a directory
grep: Music: Is a directory
grep: Podcasts: Is a directory
grep: .pulse: Is a directory
grep: .Skype: Is a directory
grep: .thumbnails: Is a directory
grep: .thunderbird: Is a directory
grep: Videos: Is a directory
grep: .wicd: Is a directory
grep: .wine: Is a directory
grep: .xchat2: Is a directory

Here's the output of this. And I do have a 64bit system.

Last edited by Joomla12 (2012-04-25 23:51:43)

Offline

#6 2012-04-26 01:34:28

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Fully Reinstalling a Package

Did you re-install all multilib packages? Do you remember what have you removed from /usr/lib32 ?

Skype is a 32-bit binary, that's not an error, that's just my fail, sorry.

Offline

#7 2012-04-26 01:57:36

Joomla12
Member
Registered: 2012-04-25
Posts: 27

Re: Fully Reinstalling a Package

karol wrote:

Did you re-install all multilib packages? Do you remember what have you removed from /usr/lib32 ?

Skype is a 32-bit binary, that's not an error, that's just my fail, sorry.

I had just removed the files conflicting with the Catalyst installer. They were mostly related to lib32-ati-dri and whatnot.

Offline

#8 2012-04-26 01:58:17

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: Fully Reinstalling a Package

Did you try running testdb to check if there are any missing files in any installed packages?

Offline

#9 2012-04-26 02:37:18

Joomla12
Member
Registered: 2012-04-25
Posts: 27

Re: Fully Reinstalling a Package

skunktrader wrote:

Did you try running testdb to check if there are any missing files in any installed packages?

Yeah. It doesn't report anything. I'm thinking of just reinstalling Arch since I don't have much time to trial and error stuff. I figure using the --force flag when installing the Catalyst driver will be a bit safer instead of removing files.

Offline

#10 2012-04-26 04:26:15

Yurlungur
Member
From: USA
Registered: 2012-01-06
Posts: 116

Re: Fully Reinstalling a Package

One thing you can try before giving up and reinstalling arch is

# pacman -Qeq | pacman -S -

or

# pacman -Qdq | pacman -S --asdeps -

This will reinstall every single package on your system without requiring you to redo all your config files or go through the install process. Just let it run overnight and see what happens. More tips like this can be found at
https://wiki.archlinux.org/index.php/Pacman_Tips


Lenovo Thinkpad T420; Intel sandy bridge i7 2.7GHz; integrated graphics card; 4GB RAM; wifi; Arch; Xmonad WM

Offline

#11 2012-04-26 05:23:57

Joomla12
Member
Registered: 2012-04-25
Posts: 27

Re: Fully Reinstalling a Package

Yurlungur wrote:

One thing you can try before giving up and reinstalling arch is

# pacman -Qeq | pacman -S -

or

# pacman -Qdq | pacman -S --asdeps -

This will reinstall every single package on your system without requiring you to redo all your config files or go through the install process. Just let it run overnight and see what happens. More tips like this can be found at
https://wiki.archlinux.org/index.php/Pacman_Tips

Thanks for the tip but it just comes to some package saying that it can't be found (like something from the AUR). When I install said package, it just fails again.

Offline

#12 2012-04-26 06:10:11

Yurlungur
Member
From: USA
Registered: 2012-01-06
Posts: 116

Re: Fully Reinstalling a Package

Oh yeah, the AUR does throw a wrench into it. Forgot about that, sorry. Try this. It should ignore AUR packages:

comm -23 <(pacman -Qeq) <(pacman -Qmq) | pacman -S -

Lenovo Thinkpad T420; Intel sandy bridge i7 2.7GHz; integrated graphics card; 4GB RAM; wifi; Arch; Xmonad WM

Offline

#13 2012-04-26 06:17:27

Joomla12
Member
Registered: 2012-04-25
Posts: 27

Re: Fully Reinstalling a Package

Yurlungur wrote:

Oh yeah, the AUR does throw a wrench into it. Forgot about that, sorry. Try this. It should ignore AUR packages:

comm -23 <(pacman -Qeq) <(pacman -Qmq) | pacman -S -

Thanks. I'm gonna let this run and I'll report back later. Hopefully this'll work.

Edit: Yup. Was a no go. Thanks for the help anyway. I'm just gonna reinstall Arch some time later unless someone else posts a different solution.

Last edited by Joomla12 (2012-04-26 06:43:28)

Offline

Board footer

Powered by FluxBB