samrap
Posts: 1
Joined: Sun Jun 22, 2014 11:23 pm

Arch Linux Pacman issues

Sun Jun 22, 2014 11:26 pm

I know there are tons of forum posts on this, but I have found nothing on my exact problem. My Raspberry Pi just arrived and I installed Arch Linux and booted up, changed the timezone and password, just basic setup stuff. Then I initialized pacman using

Code: Select all

pacman-key --init
and it initialized extremely quickly. I then used

Code: Select all

pacman -Syu
to get the latest updates for the system. I could tell it would take a while so I went downstairs to let it do its thing and when I came back the ACTIVITY light on my Pi was off and the output screen was black with no command prompt or anything. My assumption is that somehow my Pi lost power or something, but I am not sure. Some type of error occurred, though, because when I try and run pacman to install anything, I get the following error:

Code: Select all

pacman: error while loading shared libraries: /usr/lib/libgpgme.so.11: file too short
I'm not sure, but I think the power to my Pi may have been interrupted mid-installation. I checked all the root directories like

Code: Select all

etc
and

Code: Select all

bin
and all the files seem to be there, so as far as I know my installation of Arch Linux is still fine...but for some reason pacman doesn't want to work. Any idea of the problem here? This is my first experience with the Linux OS, though I've been using the command line on my UNIX OS-X for almost a year, so I'm not a total noob. Any help would be great

sdjf
Posts: 1395
Joined: Fri Mar 16, 2012 5:20 am
Location: California
Contact: Website

Re: Arch Linux Pacman issues

Wed Jun 25, 2014 4:22 am

If the power went out during the upgrade, you have a mess on your hands and the best way thing to do is to dd the image again and start over - and this time, watch things closely.

Over at the Pi subforum at archlinuxarm.org, some folks were having trouble with pacman and upgrades, but my understanding is that those issues have been fixed. Might be worth looking at the recent posts there if starting over with a fresh installation still results in problems.

http://archlinuxarm.org/forum/viewforum.php?f=31

Depending on how much hassle it is to have your Pi retrieve the files for upgrading, it might be worth considering telling pacman to download all needed files to a specific external location (usb stick??) so that if the works fails again, you can retrieve them locally instead of having to take forever getting them from online. check out your options with "man pacman".

If you decide to go that route, you also might want to look at the guide I wrote for using pacman offline - it does need updating, but the basic commands remain the same.

http://sdjf.esmartdesign.com/raspberrypi/pacman.html

If a freshly dd'd image still does not perform properly when you update, make sure you post which image you have (rather than just saying you got the newest). Maybe before the upgrade, run the following and save it:

cat /proc/version

The other thing that is an absolute rule is never pull the power plug without safely shutting down the pi, and never reboot without issuing the sync command first.
FORUM TIP: To view someone's posting history, sign in, click on their user name, then on "Search User's Posts." || Running ArchLinuxArm on Model 2B and 512MB Model B

Return to “Arch”