You are not logged in.

#1 2012-06-02 01:51:31

Megabyte
Member
Registered: 2012-06-02
Posts: 29

[SOLVED] Repositories not working after fresh install

having just freshly installed arch linux and dwm, the repositories do not seem to work.  i can not seem to get anything out of any repository except for the official repository.  This is my error when installing skype.  But this does the same thing for all installs from "community' and "multilib)

this is the command i'm running:

 sudo pacman -S skype
warning: database file for 'community-testing' does not exist
error: target not found: skype

this is my 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
#GPGDir      = /etc/pacman.d/gnupg/
HoldPkg     = pacman glibc
# If upgrades are available for these packages they will be asked for first
SyncFirst   = pacman
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = auto

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

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
#UseDelta
#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 = Optional TrustedOnly
# 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.

[testing]
#SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

#[core]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/mirrorlist

[extra]
#SigLevel = PackageOptional
#Include = /etc/pacman.d/mirrorlist

[community-testing]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/mirrorlist

[community]
#SigLevel = PackageOptional
#Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

#[multilib-testing]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/mirrorlist

#[multilib]
#SigLevel = PackageOptional
#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

Any ideas?  Thanks!

Last edited by Megabyte (2012-06-07 16:46:33)

Offline

#2 2012-06-02 01:57:32

carukia
Member
From: ~/United_Kingdom/Liverpool
Registered: 2011-05-15
Posts: 162

Re: [SOLVED] Repositories not working after fresh install

You need to uncomment the

Include = /etc/pacman.d/mirrorlist

lines of the repos you want to use, e.g. core, community and extra.

Offline

#3 2012-06-02 01:57:44

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 1,022

Re: [SOLVED] Repositories not working after fresh install

Fresh install
reboot
descomment all multilib repo in /etc/pacman.conf
pacman -Syu
normal procedure

@KAru buck you are fast

Last edited by Jristz (2012-06-02 01:58:43)


Well, I suppose that this is somekind of signature, no?

Offline

#4 2012-06-02 02:04:44

Megabyte
Member
Registered: 2012-06-02
Posts: 29

Re: [SOLVED] Repositories not working after fresh install

this did not work for me.  this is the error message i get:

 sudo pacman -Syu
warning: database file for 'community-testing' does not exist
warning: database file for 'multilib' does not exist
:: Synchronizing package databases...
 testing is up to date
error: failed to update extra (no servers configured for repository)
error: failed to update community-testing (no servers configured for repository)
error: failed to update community (no servers configured for repository)
 multilib                                                                                                               87.9 KiB   470K/s 00:00 [########################################################################################] 100%
:: Starting full system upgrade...
error: failed to prepare transaction (could not find database)
[brendan@(none) proc]$ sudo pacman -S skype
warning: database file for 'community-testing' does not exist
error: failed to prepare transaction (could not find database)

Offline

#5 2012-06-02 02:13:45

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,607
Website

Re: [SOLVED] Repositories not working after fresh install

After uncommenting core extra and community you should run `pacman -Syy`.

However, no offense, but you should comment testing.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2012-06-02 02:37:40

Megabyte
Member
Registered: 2012-06-02
Posts: 29

Re: [SOLVED] Repositories not working after fresh install

Thanks so much!  That worked beautifully.

Offline

#7 2012-06-02 09:19:34

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] Repositories not working after fresh install

Welcome to the forums.

Good to hear you've got things up and running. Don't forget to mark your thread as [SOLVED].


Burninate!

Offline

Board footer

Powered by FluxBB