'Pacman transaction error
Today I installed Arch Linux onto my Raspberry Pi and as one of my first steps I tried to install some new packages. However, I always get the same error if I try to install a package:
error: failed to commit transaction (wrong or NULL argument passed)
Errors occurred, no packages were upgraded.
I checked some other repository servers, but it still does not work. Here is my current mirrorlist:
#
# Arch Linux ARM repository mirrorlist
# Generated on 2013-06-13
#
## Geo-IP based mirror selection and load balancing
# Server = http://mirror.archlinuxarm.org/armv6h/$repo
## Berlin
Server = http://de.mirror.archlinuxarm.org/armv6h/$repo
Then I tried to clear my cache:
pacman -Sc
rm /var/cache/pacman/pkg/*.part
pacman -Syyu
It did not work! Any ideas?
Solution 1:[1]
First, make sure your system is up-to-date with "sudo pacman -Syu" Then you can try selecting new mirrors and "sudo pacman -Syy" to refresh your mirrorlist. It's good to have a main mirror, and a few backups.
Try checking the wiki: Mirrors - ArchWiki
Also check Mirrors status page: Mirror Status
Just as a side note, I couldn't find your mirror in the list of current mirrors, so there could be your problem.
If all else fails, I'd take it to the arch forums, but just a warning, you're going to have to provide a lot more information, packages you're trying to install, and possible the pacman jorunal error messages, etc...
Solution 2:[2]
Try this in your terminal
sudo pacman-mirrors --country all --api --protocols all --set-branch stable && sudo pacman -Syyu
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | wguayan |
| Solution 2 |
