Error failed to prepare transaction could not find database

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)

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

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

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

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

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

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 27,833
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

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

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

Comments

@omichel

@lazka
lazka

changed the title
Failure last night

database file for ‘ucrt64’ does not exist

Mar 26, 2021

lazka

added a commit
to lazka/setup-msys2
that referenced
this issue

Mar 26, 2021

@lazka

In case we add a new repo in pacman we get a new pacman.conf which might
contain new repos which haven't been synced yet. This makes the final
upgrade fail with "database file [...] doesn't exist".

To prevent this also sync at the last step.

Fixes msys2#119

lazka

added a commit
to lazka/setup-msys2
that referenced
this issue

Mar 26, 2021

@lazka

In case we add a new repo in pacman we get a new pacman.conf which might
contain new repos which haven't been synced yet. This makes the final
upgrade fail with "database file [...] doesn't exist".

To prevent this also sync at the last step.

Fixes msys2#119

lazka

added a commit
that referenced
this issue

Mar 26, 2021

@lazka

In case we add a new repo in pacman we get a new pacman.conf which might
contain new repos which haven't been synced yet. This makes the final
upgrade fail with "database file [...] doesn't exist".

To prevent this also sync at the last step.

Fixes #119

kou

added a commit
to groonga/groonga
that referenced
this issue

Mar 29, 2021

@kou

kou

added a commit
to kou/arrow
that referenced
this issue

Mar 29, 2021

@kou

We need to refresh package database after system upgrade for ucrt64
repository.

See also: msys2/setup-msys2#119

@kou
kou

mentioned this issue

Mar 29, 2021

kou

added a commit
to kou/arrow
that referenced
this issue

Mar 29, 2021

@kou

We need to refresh package database after system upgrade for ucrt64
repository.

See also: msys2/setup-msys2#119

kou

added a commit
to apache/arrow
that referenced
this issue

Mar 29, 2021

@kou

We need to refresh package database for ucrt64 repository after system upgrade.

See also: msys2/setup-msys2#119

Closes #9832 from kou/ci-glib-windows

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>

alamb

pushed a commit
to apache/arrow-rs
that referenced
this issue

Apr 20, 2021

@kou

We need to refresh package database for ucrt64 repository after system upgrade.

See also: msys2/setup-msys2#119

Closes #9832 from kou/ci-glib-windows

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>

GeorgeAp

pushed a commit
to sirensolutions/arrow
that referenced
this issue

Jun 7, 2021

@kou

@GeorgeAp

We need to refresh package database for ucrt64 repository after system upgrade.

See also: msys2/setup-msys2#119

Closes apache#9832 from kou/ci-glib-windows

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>

michalursa

pushed a commit
to michalursa/arrow
that referenced
this issue

Jun 10, 2021

@kou

@michalursa

We need to refresh package database for ucrt64 repository after system upgrade.

See also: msys2/setup-msys2#119

Closes apache#9832 from kou/ci-glib-windows

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>

michalursa

pushed a commit
to michalursa/arrow
that referenced
this issue

Jun 13, 2021

@kou

@michalursa

We need to refresh package database for ucrt64 repository after system upgrade.

See also: msys2/setup-msys2#119

Closes apache#9832 from kou/ci-glib-windows

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>

Приветствую!

При попытке обновления выдаёт error: failed to prepare transaction (could not satisfy dependencies)

sudo pacman -Su
:: Starting full system upgrade…
:: Replace calligra-filters with extra/calligra? [Y/n] y
:: Replace calligra-karbon with extra/calligra? [Y/n] y
:: Replace calligra-l10n-ru with extra/calligra? [Y/n] y
:: Replace calligra-libs with extra/calligra? [Y/n] y
:: Replace calligra-plugins with extra/calligra? [Y/n] y
:: Replace kdebase-kdialog with extra/kdialog? [Y/n] y
:: Replace kdebase-keditbookmarks with extra/keditbookmarks? [Y/n] y
:: Replace kdebase-kfind with extra/kfind? [Y/n] y
:: Replace kdegraphics-okular with extra/okular? [Y/n] y
:: Replace konsolekalendar with extra/akonadi-calendar-tools? [Y/n] y
:: Replace ktnef with extra/kmail? [Y/n] y
:: Replace libastro with extra/marble? [Y/n] y
resolving dependencies…
looking for conflicting packages…
:: calligra and calligra-braindump are in conflict. Remove calligra-braindump? [y/N] y
:: marble and libmarble4 are in conflict. Remove libmarble4? [y/N] y
:: kmail-account-wizard and kdepim-common are in conflict. Remove kdepim-common? [y/N] y
:: xorg-server and xf86-input-acecad are in conflict (X-ABI-XINPUT_VERSION). Remove xf86-input-acecad? [y/N] y
:: xorg-server and xf86-input-joystick are in conflict (X-ABI-XINPUT_VERSION). Remove xf86-input-joystick? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: libkgeomap4: removing libmarble4 breaks dependency ‘libmarble4’

Только зарегистрированные и авторизованные пользователи могут оставлять комментарии.

Сначала попробуйте запустить pacman -Syy, затем попробуйте установить sudo снова.

Убедитесь, что репозитории не закомментированы в /etc/pacman.conf.

Или ваш список зеркал может быть устаревшим: создайте текущий список зеркал и скопируйте его в/etc/pacman.d/mirrorlist

Цитирование из этой соответствующей ветки форума :

Вы можете:

  • выбрать другое зеркало
  • попробуйте использовать зеркало http, а не ftp (выберите зеркало http из списка зеркал).
  • В качестве альтернативы вы можете вручную загрузить базы данных с помощью:

    wget ftp://mirror.csclub.uwaterloo.ca/archlinux/community/os/x86_64/community.db
    wget ftp://mirror.csclub.uwaterloo.ca/archlinux/extra/os/x86_64/extra.db
    

    переместите их в / var / lib / pacman / sync / и снова запустите ‘pacman -Syu’. Если вы найдете файлы * .part в / var / lib / pacman / sync / например /var/lib/pacman/sync/core.db.part — удалите их.

Чтобы избежать подобных проблем, важно понимать pacman. Чтобы узнать больше об использовании pacman, прочтите статью ArchWiki pacman и проконсультируйтесь man pacman.

This topic has been deleted. Only users with topic management privileges can see it.

  • Hi guys.
    I’ve just recently installed AntergOS, but I have a problem with pacman. When I’m doing pacman -Syyu he tells me that archlinux.db can’t be find for archlinux only. Core extra… are working but not archlinux. And when I’m trying to install a package he tells me that there is no database. Someone have a solution pls ? I’ve just searched long time on internet but still didn’t found the solution…
    Thanks.

  • @antomaa12 A terminal is worth a thousand words.

    Could you please paste back here the full terminal’s output of the command you enter, along with the command itself?

    sudo pacman -Syyu
    
  • :: Synchronising package databases…
    antergos-staging 2.4 KiB 0.00B/s 00:00 [######################] 100%
    antergos 127.4 KiB 1036K/s 00:00 [######################] 100%
    core 122.5 KiB 156K/s 00:01 [######################] 100%
    extra 1741.2 KiB 1064K/s 00:02 [######################] 100%
    community-testing 15.2 KiB 2.12M/s 00:00 [######################] 100%
    community 3.7 MiB 1085K/s 00:04 [######################] 100%
    error: failed retrieving file ‘archlinux.db’ from repo.archlinux.fr : The requested URL returned error: 404
    error: failed to update archlinux (unexpected error)
    multilib 181.8 KiB 1399K/s 00:00 [######################] 100%
    :: Starting full system upgrade…
    error: failed to prepare transaction (could not find database)

    And here is the part from /etc/pacman.conf concerning archlinux
    [archlinux]
    SigLever = Never
    Server = repo.archlinux.fr/$arch

  • Try this in /etc/pacman.conf:

    [archlinuxfr]
    Server = http://repo.archlinux.fr/$arch
    
  • It was this thanks really.

  • Ok apparently it’s still not working when i try to install a package like spotify or skype (package that i know it exist). He tells me
    [[email protected] /]$ sudo pacman -S skype
    error: target not found: skype
    but pacman -Syyyu is working perfectly

  • Owh okay it’s working perfectly sorry again :)

  • No problem. I’m glad I could help.

    Cheers!

  • Понравилась статья? Поделить с друзьями:
  • Error failed to open ovf descriptor
  • Error failed to open games battle gm1 file for write
  • Error failed to open file error 2 mysql
  • Error failed to open display
  • Error failed to open apk database permission denied