[SOLVED] pacman 404 not found

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

[SOLVED] pacman 404 not found

Postby gopher » Thu May 09, 2013 2:58 am

Hi all,

I'm new to ArchLinux but experienced with Linux, and I can't seem to get the bottom of this one.

Every time I run a pacman command (be it -S, -Syu, etc) I alway get a 404 not found error. I tried installing imagemagick, for example:$this->bbcode_second_pass_code('', '[romain@romain-pi ~]$ sudo pacman -S imagemagick
[sudo] password for romain:
resolving dependencies...
looking for inter-conflicts...

Packages (3): liblqr-0.4.2-1 libltdl-2.4.2-7 imagemagick-6.8.4.10-1

Total Download Size: 2.04 MiB
Total Installed Size: 9.16 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages ...
error: failed retrieving file 'libltdl-2.4.2-7-armv6h.pkg.tar.xz' from
mirror.us.leaseweb.net : The requested URL returned error: 404 Not Found
warning: failed to retrieve some files
error: failed retrieving file 'liblqr-0.4.2-1-armv6h.pkg.tar.xz' from
mirror.us.leaseweb.net : The requested URL returned error: 404 Not Found
warning: failed to retrieve some files
error: failed retrieving file 'imagemagick-6.8.4.10-1-armv6h.pkg.tar.xz'
from mirror.us.leaseweb.net : The requested URL returned error: 404 Not
Found
warning: failed to retrieve some files
error: failed to commit transaction (download library error)
Errors occurred, no packages were upgraded.
[romain@romain-pi ~]$
')

Here's my pacman.conf file:$this->bbcode_second_pass_code('', '#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir = /
#DBPath = /var/lib/pacman/
#CacheDir = /var/cache/pacman/pkg/
#LogFile = /var/log/pacman.log
#GPGDir = /etc/pacman.d/gnupg/
HoldPkg = pacman glibc
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta = 0.7
Architecture = armv6h

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg =
#IgnoreGroup =

#NoUpgrade =
#NoExtract =

# Misc options
#UseSyslog
#Color
#TotalDownload
CheckSpace
#VerbosePkgLists

# PGP signature checking
# NOTE: None of this will work without running `pacman-key --init` first.
# The compiled in default is equivalent to the following line. This requires
# you to locally sign and trust packager keys using `pacman-key` for them to be
# considered valid.
#SigLevel = Required DatabaseOptional
#LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required
# If you wish to check signatures but avoid local sign and trust issues, use
# the following line. This will treat any key imported into pacman's keyring as
# trusted.
#SigLevel = Optional TrustAll
# For now, off by default unless you read the above.
SigLevel = Never

#
# REPOSITORIES
# - can be defined here or included from another file
# - pacman will search repositories in the order defined here
# - local/custom mirrors can be added here or in separate files
# - repositories listed first will take precedence when packages
# have identical names, regardless of version number
# - URLs will have $repo replaced by the name of the current repo
# - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
# [repo-name]
# Server = ServerName
# Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/mirrorlist

[alarm]
Include = /etc/pacman.d/mirrorlist

[aur]
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

')
I've tried changing the mirrorlist to sort the mirrors by speed and availability, using this script from the wiki: https://wiki.archlinux.org/index.php/Mirrors#Script_to_automate_use_of_Pacman_Mirrorlist_Generator

I'm connected via ethernet, and have an active connection, which I tested by pinging google.
Any idea how to fix this problem?
Last edited by gopher on Thu May 09, 2013 3:36 am, edited 1 time in total.
gopher
 
Posts: 13
Joined: Thu May 09, 2013 2:08 am

Re: pacman 404 not found

Postby WarheadsSE » Thu May 09, 2013 3:05 am

You cocked up the mirror list. We don't use upstream's mirrors.

revert the mirrorlist, syy, and try again.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: pacman 404 not found

Postby gopher » Thu May 09, 2013 3:07 am

And how exactly do I do that? :)
gopher
 
Posts: 13
Joined: Thu May 09, 2013 2:08 am

Re: pacman 404 not found

Postby moonman » Thu May 09, 2013 3:10 am

$this->bbcode_second_pass_code('', 'rm /etc/pacman.d/mirrorlist
mv /etc/pacman.d/mirrorlist.orig /etc/pacman.d/mirrorlist')

And don't use that script anymore. ArchLinux repositories are different from ArchLinuxArm because of different architectures.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: pacman 404 not found

Postby gopher » Thu May 09, 2013 3:17 am

the mirrorlist has been replaced, however, I'm still getting the 404 errors. I checked the new mirrorlist file, and it's the same as the old one. How can I rebuild the default mirrorlist?
gopher
 
Posts: 13
Joined: Thu May 09, 2013 2:08 am

Re: pacman 404 not found

Postby gopher » Thu May 09, 2013 3:36 am

Okay, I found a solution. I have another install of Arch ARM on another SD, which I don't use because it's a smaller card (2GB). I just copied the files from there over into my other card via USB stick, and it works now. I deleted all the faulty files, no as not to confuse myself. Anything else that could have been modified that I need to change back?
gopher
 
Posts: 13
Joined: Thu May 09, 2013 2:08 am


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 2 guests