You are not logged in.

#1 2011-08-07 22:36:10

bananagranola
Member
From: US
Registered: 2011-08-07
Posts: 88
Website

[solved] pacman -Syy and -Syu work, but packages won't install

Hello, everyone. I'm really new to Arch, but I did search all over Google and the forums and couldn't find an answer to this, so I thought I'd ask the forums.

I just installed Arch, and I'm trying to install sudo.

When I run pacman -S sudo, I get:
sudo package not found, searching for group...
error: 'sudo': not found in syncdb

However, when I run pacman -Syy, I get:
::Synchronizing package databases...
error: failed retrieving file 'core.db.tar.gz' from mirrors.kernel.org: File unavailable (e.g., file not found, no access)
...(other similar errors from other mirrors)
core     4.1K     43.7K/s     00:00:00 [##########] 100%
...(same for extra and community)

(Sorry I didn't copy the entire output out, I'm not connected to the internet on the Arch computer, so I'm typing this by hand on another one. I tried a bunch of mirrors earlier, and only one mirror actually works: the Arch one, which as a download cap.)

So my package databases are getting updated, but somehow pacman isn't recognizing them or something.

I updated pacman to see if that would work.
pacman -V
Pacman v3.3.3 - libalpm v4.0.3
...
It didn't.

I'm running 2.6.33-ARCH according to lib/modules.

I haven't changed my etc/pacman.conf. [core] and its Include, [extra] and its Include, and [community] and its Include are all uncommented. No packages are ignored.

My etc/pacman.d/mirrorlist was updated from the Arch Mirror Generator. I uncommented everything in United States.

I have internet set up, and I've tried taking down wlan0 and putting it back up. iwconfig shows that wlan0 works and is connected, and I'm pinging google.com successfully, so I know internet works.

Thanks in advance for any help, and please let me know if I'm missing any information. I tried to be thorough.

Last edited by bananagranola (2011-08-08 22:20:10)

Offline

#2 2011-08-07 22:44:03

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

Re: [solved] pacman -Syy and -Syu work, but packages won't install

The first thing you need to do is update your system with 'pacman -Syu'.
Try another mirror.

Offline

#3 2011-08-07 22:44:22

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [solved] pacman -Syy and -Syu work, but packages won't install

Could you paste the uncommented lines from your mirrorlist along with your pacman.conf? This smell like a syntax error somewhere...

Offline

#4 2011-08-08 01:14:30

bananagranola
Member
From: US
Registered: 2011-08-07
Posts: 88
Website

Re: [solved] pacman -Syy and -Syu work, but packages won't install

Wow, that was fast! Thanks!

/etc/pacman.d/mirrorlist:

##
## Arch Linux repository mirrorlist
## Generated on 2011-08-07
##

## Any
#Server = [url]ftp://mirrors.kernel.org/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirrors.kernel.org/archlinux/$repo/os/$arch[/url]

## Australia
#Server = [url]ftp://mirror.aarnet.edu.au/pub/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirror.aarnet.edu.au/pub/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://ftp.iinet.net.au/pub/archlinux/$repo/os/$arch[/url]
#Server = [url]http://ftp.iinet.net.au/pub/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://mirror.internode.on.net/pub/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirror.internode.on.net/pub/archlinux/$repo/os/$arch[/url]

## Belarus
#Server = [url]ftp://ftp.byfly.by/pub/archlinux/$repo/os/$arch[/url]
#Server = [url]http://ftp.byfly.by/pub/archlinux/$repo/os/$arch[/url]

## Belgium
#Server = [url]ftp://archlinux.mirror.kangaroot.net/pub/archlinux/$repo/os/$arch[/url]
#Server = [url]http://archlinux.mirror.kangaroot.net/$repo/os/$arch[/url]

## Brazil
#Server = [url]ftp://archlinux.c3sl.ufpr.br/archlinux/$repo/os/$arch[/url]
#Server = [url]http://archlinux.c3sl.ufpr.br/$repo/os/$arch[/url]

## Canada
#Server = [url]ftp://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://mirror.its.dal.ca/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirror.its.dal.ca/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://less.cogeco.net/pub/archlinux/$repo/os/$arch[/url]
#Server = [url]http://less.cogeco.net/pub/archlinux/$repo/os/$arch[/url]

## Chile
#Server = [url]ftp://mirror.archlinux.cl/$repo/os/$arch[/url]
#Server = [url]ftp://mirror.netglobalis.net/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirror.netglobalis.net/archlinux/$repo/os/$arch[/url]

## China
#Server = [url]http://mirrors.163.com/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirror.bjtu.edu.cn/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirror6.bjtu.edu.cn/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch[/url]

## Colombia
#Server = [url]http://www.laqee.unal.edu.co/archlinux/$repo/os/$arch[/url]

## Czech Republic
#Server = [url]http://mirror.vpsfree.cz/archlinux/$repo/os/$arch[/url]

## Denmark
#Server = [url]ftp://mirrors.dotsrc.org/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirrors.dotsrc.org/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://ftp.klid.dk/archlinux/$repo/os/$arch[/url]

## Estonia
#Server = [url]ftp://ftp.eenet.ee/pub/archlinux/$repo/os/$arch[/url]
#Server = [url]http://ftp.eenet.ee/pub/archlinux/$repo/os/$arch[/url]

## Finland
#Server = [url]ftp://mirror.academica.fi/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirror.academica.fi/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://mirror.archlinux.fi/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirror.archlinux.fi/archlinux/$repo/os/$arch[/url]

## France
#Server = [url]http://mir.archlinux.fr/$repo/os/$arch[/url]
#Server = [url]ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/$repo/os/$arch[/url]
#Server = [url]http://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://mir1.archlinux.fr/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mir1.archlinux.fr/archlinux/$repo/os/$arch[/url]
#Server = [url]http://miroir.ezvan.fr/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://archlinux.mirrors.ovh.net/archlinux/$repo/os/$arch[/url]
#Server = [url]http://archlinux.mirrors.ovh.net/archlinux/$repo/os/$arch[/url]
#Server = [url]http://archlinux.polymorf.fr/$repo/os/$arch[/url]

## Germany
#Server = [url]http://archlinux.limun.org/$repo/os/$arch[/url]
#Server = [url]ftp://artfiles.org/archlinux.org/$repo/os/$arch[/url]
#Server = [url]http://artfiles.org/archlinux.org/$repo/os/$arch[/url]
#Server = [url]ftp://mirror.de.leaseweb.net/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirror.de.leaseweb.net/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirror.devnu11.net/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://ftp5.gwdg.de/pub/linux/archlinux/$repo/os/$arch[/url]
#Server = [url]http://ftp5.gwdg.de/pub/linux/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://ftp.halifax.rwth-aachen.de/archlinux/$repo/os/$arch[/url]
#Server = [url]http://ftp.halifax.rwth-aachen.de/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/$repo/os/$arch[/url]
#Server = [url]http://ftp.hosteurope.de/mirror/ftp.archlinux.org/$repo/os/$arch[/url]
#Server = [url]ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/archlinux/$repo/os/$arch[/url]
#Server = [url]http://ftp-stud.hs-esslingen.de/pub/Mirrors/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://mirrors.n-ix.net/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirrors.n-ix.net/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://mirror.selfnet.de/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirror.selfnet.de/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://ftp.spline.inf.fu-berlin.de/mirrors/archlinux/$repo/os/$arch[/url]
#Server = [url]http://ftp.spline.inf.fu-berlin.de/mirrors/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://ftp.tu-chemnitz.de/pub/linux/archlinux/$repo/os/$arch[/url]
#Server = [url]http://ftp.tu-chemnitz.de/pub/linux/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://ftp.uni-kl.de/pub/linux/archlinux/$repo/os/$arch[/url]
#Server = [url]http://ftp.uni-kl.de/pub/linux/archlinux/$repo/os/$arch[/url]

## Great Britain
#Server = [url]ftp://mirror.lividpenguin.com/pub/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirror.lividpenguin.com/pub/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://archlinux.positive-internet.com/$repo/os/$arch[/url]
#Server = [url]http://archlinux.positive-internet.com/$repo/os/$arch[/url]
#Server = [url]ftp://mirrors.uk2.net/pub/archlinux/$repo/os/$arch[/url]
#Server = [url]http://archlinux.mirrors.uk2.net/$repo/os/$arch[/url]

## Greece
#Server = [url]ftp://ftp.cc.uoc.gr/mirrors/linux/archlinux/$repo/os/$arch[/url]
#Server = [url]http://ftp.cc.uoc.gr/mirrors/linux/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://ftp.ntua.gr/pub/linux/archlinux/$repo/os/$arch[/url]
#Server = [url]http://ftp.ntua.gr/pub/linux/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://ftp.otenet.gr/pub/linux/archlinux/$repo/os/$arch[/url]
#Server = [url]http://ftp.otenet.gr/linux/archlinux/$repo/os/$arch[/url]

## Hungary
#Server = [url]ftp://ftp.mfa.kfki.hu/pub/mirrors/ftp.archlinux.org/$repo/os/$arch[/url]

## India
#Server = [url]ftp://mirror.cse.iitk.ac.in/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirror.cse.iitk.ac.in/archlinux/$repo/os/$arch[/url]

## Ireland
#Server = [url]ftp://ftp.heanet.ie/mirrors/ftp.archlinux.org/$repo/os/$arch[/url]
#Server = [url]http://ftp.heanet.ie/mirrors/ftp.archlinux.org/$repo/os/$arch[/url]

## Israel
#Server = [url]ftp://mirror.isoc.org.il/pub/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirror.isoc.org.il/pub/archlinux/$repo/os/$arch[/url]

## Italy
#Server = [url]http://mirrors.prometeus.net/archlinux/$repo/os/$arch[/url]

## Japan
#Server = [url]ftp://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch[/url]
#Server = [url]http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch[/url]

## Kazakhstan
#Server = [url]ftp://archlinux.kz/$repo/os/$arch[/url]
#Server = [url]http://archlinux.kz/$repo/os/$arch[/url]

## Korea
#Server = [url]ftp://mirror.yongbok.net/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirror.yongbok.net/archlinux/$repo/os/$arch[/url]

## Latvia
#Server = [url]http://archlinux.goodsoft.lv/$repo/os/$arch[/url]

## Luxembourg
#Server = [url]ftp://archlinux.mirror.root.lu/archlinux/$repo/os/$arch[/url]
#Server = [url]http://archlinux.mirror.root.lu/$repo/os/$arch[/url]

## Moldova
#Server = [url]ftp://mirror.ihost.md/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirror.ihost.md/archlinux/$repo/os/$arch[/url]

## Netherlands
#Server = [url]http://mirrors3.kernel.org/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://mirror.nl.leaseweb.net/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirror.nl.leaseweb.net/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://ftp.nluug.nl/pub/os/Linux/distr/archlinux/$repo/os/$arch[/url]
#Server = [url]http://ftp.nluug.nl/pub/os/Linux/distr/archlinux/$repo/os/$arch[/url]

## New Caledonia
#Server = [url]ftp://archlinux.nautile.nc/archlinux/$repo/os/$arch[/url]
#Server = [url]http://archlinux.nautile.nc/archlinux/$repo/os/$arch[/url]

## Norway
#Server = [url]ftp://mirror.archlinux.no/$repo/os/$arch[/url]
#Server = [url]http://mirror.archlinux.no/$repo/os/$arch[/url]
#Server = [url]ftp://mirror.pvv.ntnu.no/pub/archlinux/$repo/os/$arch[/url]

## Poland
#Server = [url]ftp://ftp.piotrkosoft.net/pub/mirrors/ftp.archlinux.org/$repo/os/$arch[/url]
#Server = [url]http://piotrkosoft.net/pub/mirrors/ftp.archlinux.org/$repo/os/$arch[/url]

## Portugal
#Server = [url]ftp://ftp.rnl.ist.utl.pt/pub/archlinux/$repo/os/$arch[/url]
#Server = [url]http://ftp.rnl.ist.utl.pt/pub/archlinux/$repo/os/$arch[/url]

## Romania
#Server = [url]ftp://mirrors.adnettelecom.ro/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirrors.adnettelecom.ro/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://mirror.archlinux.ro/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirror.archlinux.ro/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://ftp.roedu.net/mirrors/archlinux.org/$repo/os/$arch[/url]
#Server = [url]http://ftp.roedu.net/mirrors/archlinux.org/$repo/os/$arch[/url]

## Russia
#Server = [url]http://mirror.worldis.me/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://mirror.yandex.ru/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirror.yandex.ru/archlinux/$repo/os/$arch[/url]

## Spain
#Server = [url]ftp://ftp.rediris.es/mirror/archlinux/$repo/os/$arch[/url]
#Server = [url]http://sunsite.rediris.es/mirror/archlinux/$repo/os/$arch[/url]

## Sweden
#Server = [url]ftp://ftp.ds.hj.se/pub/os/linux/archlinux/$repo/os/$arch[/url]
#Server = [url]http://ftp.ds.hj.se/pub/os/linux/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirrors4.kernel.org/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://ftp.lysator.liu.se/pub/archlinux/$repo/os/$arch[/url]
#Server = [url]http://ftp.lysator.liu.se/pub/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://ftp.portlane.com/pub/os/linux/archlinux/$repo/os/$arch[/url]
#Server = [url]http://ftp.portlane.com/pub/os/linux/archlinux/$repo/os/$arch[/url]

## Switzerland
#Server = [url]ftp://archlinux.puzzle.ch/$repo/os/$arch[/url]
#Server = [url]http://archlinux.puzzle.ch/$repo/os/$arch[/url]

## Taiwan
#Server = [url]ftp://linux.cs.nctu.edu.tw/archlinux/$repo/os/$arch[/url]
#Server = [url]http://linux.cs.nctu.edu.tw/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://shadow.ind.ntou.edu.tw/archlinux/$repo/os/$arch[/url]
#Server = [url]http://shadow.ind.ntou.edu.tw/archlinux/$repo/os/$arch[/url]
#Server = [url]ftp://ftp.tku.edu.tw/Linux/ArchLinux/$repo/os/$arch[/url]
#Server = [url]http://ftp.tku.edu.tw/Linux/ArchLinux/$repo/os/$arch[/url]

## Turkey
#Server = [url]ftp://ftp.linux.org.tr/archlinux/$repo/os/$arch[/url]
#Server = [url]http://ftp.linux.org.tr/archlinux/$repo/os/$arch[/url]

## Ukraine
#Server = [url]ftp://ftp.linux.kiev.ua/pub/Linux/ArchLinux/$repo/os/$arch[/url]
#Server = [url]http://ftp.linux.kiev.ua/pub/Linux/ArchLinux/$repo/os/$arch[/url]
#Server = [url]ftp://mirrors.mithril.org.ua/linux/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirrors.mithril.org.ua/linux/archlinux/$repo/os/$arch[/url]

## United States
Server = [url]ftp://archlinux.supsec.org/pub/linux/arch/$repo/os/$arch[/url]
Server = [url]http://archlinux.supsec.org/$repo/os/$arch[/url]
Server = [url]ftp://cake.lib.fit.edu/archlinux/$repo/os/$arch[/url]
Server = [url]http://cake.lib.fit.edu/archlinux/$repo/os/$arch[/url]
Server = [url]http://mirrors.cat.pdx.edu/archlinux/$repo/os/$arch[/url]
Server = [url]http://mirror.ece.vt.edu/archlinux/$repo/os/$arch[/url]
Server = [url]ftp://ftp.archlinux.org/$repo/os/$arch[/url]
Server = [url]ftp://ftp.gtlib.gatech.edu/pub/archlinux/$repo/os/$arch[/url]
Server = [url]http://www.gtlib.gatech.edu/pub/archlinux/$repo/os/$arch[/url]
Server = [url]ftp://mirror.ancl.hawaii.edu/linux/archlinux/$repo/os/$arch[/url]
Server = [url]http://mirror.ancl.hawaii.edu/linux/archlinux/$repo/os/$arch[/url]
Server = [url]http://mirrors1.kernel.org/archlinux/$repo/os/$arch[/url]
Server = [url]http://mirrors2.kernel.org/archlinux/$repo/os/$arch[/url]
Server = [url]ftp://locke.suu.edu/linux/dist/archlinux/$repo/os/$arch[/url]
Server = [url]ftp://lug.mtu.edu/archlinux/ftpfull/$repo/os/$arch[/url]
Server = [url]http://lug.mtu.edu/archlinux/ftpfull/$repo/os/$arch[/url]
Server = [url]http://mirror.mocker.org/archlinux/$repo/os/$arch[/url]
Server = [url]ftp://ftp.osuosl.org/pub/archlinux/$repo/os/$arch[/url]
Server = [url]http://ftp.osuosl.org/pub/archlinux/$repo/os/$arch[/url]
Server = [url]ftp://mirror.rit.edu/archlinux/$repo/os/$arch[/url]
Server = [url]http://mirror.rit.edu/archlinux/$repo/os/$arch[/url]
Server = [url]http://mirrors.rutgers.edu/archlinux/$repo/os/$arch[/url]
Server = [url]http://mirrors.lax1.thegcloud.com/arch//$repo/os/$arch[/url]
Server = [url]http://mirror.yellowfiber.net/archlinux/$repo/os/$arch[/url]

## Uzbekistan
#Server = [url]ftp://mirrors.st.uz/archlinux/$repo/os/$arch[/url]
#Server = [url]http://mirrors.st.uz/archlinux/$repo/os/$arch[/url]

/etc/pacman.conf:

#
# /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
HoldPkg     = pacman glibc
# If upgrades are available for these packages they will be asked for first
SyncFirst   = pacman
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#XferCommand = /usr/bin/curl %u > %o
#CleanMethod = KeepInstalled

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

#NoUpgrade   =
#NoExtract   =

# Misc options (all disabled by default)
#UseSyslog
#ShowSize
#UseDelta
#TotalDownload

#
# 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
#
# 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.

#[testing]
## Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/mirrorlist

[core]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

[extra]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

#[community-testing]
## Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/mirrorlist

[community]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

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

iwconfig:

wlan0     IEEE 802.11bg  ESSID:"default-g"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:11:95:68:33:6A   
          Bit Rate=1 Mb/s   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=66/70  Signal level=-44 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

pacman -S sudo:

sudo package not found, searching for group...
error: 'sudo': not found in sync db

pacman -Syy:

:: Synchronizing package databases...
error: failed retrieving file 'core.db.tar.gz' from archlinux.supsec.org : File unavailable (e.g., file not found, no access)
downloading core.db.tar.gz...
error: failed retrieving file 'extra.db.tar.gz' from archlinux.supsec.org : File unavailable (e.g., file not found, no access)
downloading extra.db.tar.gz...
error: failed retrieving file 'community.db.tar.gz' from archlinux.supsec.org : File unavailable (e.g., file not found, no access)
downloading community.db.tar.gz...

pacman -Syu:

:: Synchronizing package databases...
error: failed retrieving file 'core.db.tar.gz' from archlinux.supsec.org : File unavailable (e.g., file not found, no access)
downloading core.db.tar.gz...
error: failed retrieving file 'extra.db.tar.gz' from archlinux.supsec.org : File unavailable (e.g., file not found, no access)
downloading extra.db.tar.gz...
error: failed retrieving file 'community.db.tar.gz' from archlinux.supsec.org : File unavailable (e.g., file not found, no access)
downloading community.db.tar.gz...
:: Starting full system upgrade...
 local database is up to date

Note: both Syu and Syy from the console show the [######] 100% line, but won't output with >

pacman -V:

 .--.                  Pacman v3.3.3 - libalpm v4.0.3
/ _.-' .-.  .-.  .-.   Copyright (C) 2006-2009 Pacman Development Team
\  '-. '-'  '-'  '-'   Copyright (C) 2002-2006 Judd Vinet
 '--'
                       This program may be freely redistributed under
                       the terms of the GNU General Public License.

ping google.com:

PING google.com (74.125.224.49) 56(84) bytes of data.
64 bytes from 74.125.224.49: icmp_seq=1 ttl=55 time=18.3 ms
64 bytes from 74.125.224.49: icmp_seq=2 ttl=55 time=21.8 ms
64 bytes from 74.125.224.49: icmp_seq=3 ttl=55 time=18.4 ms
64 bytes from 74.125.224.49: icmp_seq=4 ttl=55 time=16.8 ms
64 bytes from 74.125.224.49: icmp_seq=5 ttl=55 time=18.3 ms

--- google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 16.889/18.764/21.839/1.647 

Hope that helps. Thanks!

Last edited by bananagranola (2011-08-08 05:23:33)

Offline

#5 2011-08-08 01:27:06

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

Re: [solved] pacman -Syy and -Syu work, but packages won't install

You need to edit you post and use [ code ] tags https://bbs.archlinux.org/help.php#bbcode

like this

(if you hit 'quote' on my post you will see how I've done it)

Offline

#6 2011-08-08 01:27:15

Fungyo
Member
Registered: 2009-04-13
Posts: 42

Re: [solved] pacman -Syy and -Syu work, but packages won't install

try commenting out ALL "## United States" servers and uncomment the http or ftp server under ## Any

I use Server = ftp://mirror.aarnet.edu.au/pub/archlinux/$repo/os/$arch which works well for me.
I only use one server at a time.

Once you have changed your mirror list always do a full pacman sync with:

# pacman -Syyu

notice the double 'yy'

Offline

#7 2011-08-08 01:29:59

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

Re: [solved] pacman -Syy and -Syu work, but packages won't install

Add 'Architecture = auto' in your [options] section in pacman.conf, like this:

#CleanMethod = KeepInstalled
Architecture = auto

Offline

#8 2011-08-08 01:37:46

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

Re: [solved] pacman -Syy and -Syu work, but packages won't install

bananagranola,

Welcome to Arch.  When posting files or program output, please use BBCode Code Tags.  Please edit your post to use them.  Your readers will appreciate how much more legible your posts will be.  Let me know if you have problems.

Thanks


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

#9 2011-08-08 02:45:03

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,385
Website

Re: [solved] pacman -Syy and -Syu work, but packages won't install

bananagranola wrote:

I updated pacman to see if that would work.
pacman -V
Pacman v3.3.3 - libalpm v4.0.3


That is not an up-to-date pacman...  and I think that is what is causing your issues.

What install CD did you use?

Offline

#10 2011-08-08 05:42:26

bananagranola
Member
From: US
Registered: 2011-08-07
Posts: 88
Website

Re: [solved] pacman -Syy and -Syu work, but packages won't install

Sorry about the code tags. I've edited my second post.

Fungyo wrote:

try commenting out ALL "## United States" servers and uncomment the http or ftp server under ## Any

I use Server = ftp://mirror.aarnet.edu.au/pub/archlinux/$repo/os/$arch which works well for me.

I tried this; I don't even get the packages updated, I just get

error: failed retrieving file 'core.db.tar.gz' from mirror.aarnet.edu.au: File unavailable (e.g., file not found, no access)
error: failed to update core (File unavailable (e.g., file not found, no access)
error: failed to synchronize any databases
karol wrote:

Add 'Architecture = auto' in your [options] section in pacman.conf

I tried this, I get

error: config file /etc/pacman.conf, line 22: directive 'Architecture' not recognized.
Allan wrote:

That is not an up-to-date pacman...  and I think that is what is causing your issues.

What install CD did you use?

I used the archlinux-2010.05-core-x86_64.iso download from the Arch Wiki, checked its sha1, and burned it onto a blank CD, then installed from there.

I tried reinstalling pacman with pacman-3.5.3.tar.gz, from ftp://ftp.archlinux.org/other/pacman/. I untar-ed it, ran ./configure, make, and make install.

But yes, stupid me, I just picked up on the fact that 3.5.3 != 3.3.3. How do I update pacman then?

Offline

#11 2011-08-08 05:57:26

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

Re: [solved] pacman -Syy and -Syu work, but packages won't install

If directive 'Architecture' is not recognized, use your architecture e.g. i686 instead of $auto in the mirror's url .e.g. ftp://mirror.aarnet.edu.au/pub/archlinux/$repo/os/i686 or ftp://mirror.aarnet.edu.au/pub/archlinu … /os/x86_64

Last edited by karol (2011-08-08 05:58:44)

Offline

#12 2011-08-08 06:03:28

bananagranola
Member
From: US
Registered: 2011-08-07
Posts: 88
Website

Re: [solved] pacman -Syy and -Syu work, but packages won't install

Right now the line says, ftp://mirror.aarnet.edu.au/pub/archlinux/$repo/os/$arch. It doesn't say $auto; is it supposed to? Also, I have 64-bit, not 32-bit.

Offline

#13 2011-08-08 06:05:45

jorel1981
Member
Registered: 2011-06-28
Posts: 24

Re: [solved] pacman -Syy and -Syu work, but packages won't install

Hi, I had a problem like yours some time ago and i fixed changing $arch for x86_64 on the mirrorlist file.

Here is my mirrorlist:

# Server list generated by rankmirrors on 2011-07-11
#
# Arch Linux repository mirrorlist
# Generated on 2011-07-03
#
Server = http://mirror.rit.edu/archlinux/$repo/os/x86_64
Server = http://mirrors.kernel.org/archlinux/$repo/os/x86_64
Server = http://cake.lib.fit.edu/archlinux/$repo/os/x86_64
Server = http://mirror.yellowfiber.net/archlinux/$repo/os/x86_64
Server = http://lug.mtu.edu/archlinux/ftpfull/$repo/os/x86_64
Server = http://archlinux.supsec.org/$repo/os/x86_64

Hope that helps!!!


the truth is out there....

Offline

#14 2011-08-08 06:05:49

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

Re: [solved] pacman -Syy and -Syu work, but packages won't install

bananagranola wrote:

Right now the line says, ftp://mirror.aarnet.edu.au/pub/archlinux/$repo/os/$arch. It doesn't say $auto; is it supposed to? Also, I have 64-bit, not 32-bit.

So use ftp://mirror.aarnet.edu.au/pub/archlinu … /os/x86_64

$auto was a mistake on my part.

Offline

#15 2011-08-08 06:19:43

bananagranola
Member
From: US
Registered: 2011-08-07
Posts: 88
Website

Re: [solved] pacman -Syy and -Syu work, but packages won't install

Thanks! Something works!

When I did

pacman -Syyu

I got something like

error: failed retrieving file 'linux-api-headers-2.6.39.1-1-x86_64.pkg.tar.gz' from mirror.aarnet.edu.au : Protocol error

but I added

XferCommand = wget %u

to etc/pacman.conf, per another arch forum posting, and it's downloading various packages as we speak.

(I thought I'd add that last bit in case anyone comes along after this wondering about a similar problem.)

Thanks a ton, everyone! I'm loving Arch already for the community alone. Thanks for being so patient with a newbie.

Offline

#16 2011-08-08 22:08:26

jorel1981
Member
Registered: 2011-06-28
Posts: 24

Re: [solved] pacman -Syy and -Syu work, but packages won't install

Glad to hear that u have solved your problem.. don't forget to add [solved] to the topic subject.


the truth is out there....

Offline

#17 2011-08-08 22:11:53

bananagranola
Member
From: US
Registered: 2011-08-07
Posts: 88
Website

Re: [solved] pacman -Syy and -Syu work, but packages won't install

Not to sound like a moron or anything, but...

How do I do that?

Offline

#18 2011-08-08 22:17:43

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [solved] pacman -Syy and -Syu work, but packages won't install

Just edit your first post and add it to the thread title.

Offline

#19 2011-08-08 22:20:18

bananagranola
Member
From: US
Registered: 2011-08-07
Posts: 88
Website

Re: [solved] pacman -Syy and -Syu work, but packages won't install

Tada! Thanks.

Offline

Board footer

Powered by FluxBB