You are not logged in.
I've just performed a fresh installation that seemed to go fine, following the Official Arch Linux Install Guide. However, I get the following during my first login:
Arch Linux 2.6.39-ARCH (myhost) (tty1)
myhost login: root
Password:
[root@myhost ~]# pacman -Sy
:: Synchronizing package databases...
error: local database version is too old
error: failed to init transaction (database is incorrect version)
try running pacman-db-upgrade
error: transaction already initiated
[root@myhost ~]#
I realize the error recommends that I run pacman-db-upgrade, but it seems very out-of-the-ordinary to encounter this error after having installed fresh with all default options. Could someone give me a hand?
Last edited by benash (2011-07-15 02:56:03)
Offline
You did an upgrade, so your database is from the install-media pacman version but your installed pacman version isn't. Run the command listed. You do not have a 'fresh install' anymore after doing an upgrade. In fact, the upgrade process probably informed you in the post-install notes to run pacman-db-upgrade, check your pacman.log.
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
The pacman database format has changed since the last ISO image was made. Follow the advice and all should be well.
Offline
Thanks. I appreciate the responses. I ran pacman-db-upgrade, and that appeared to fix the problem. I'm now having some trouble downloading packages (1 out of 10 seems to be failing), but I just found the documentation on selecting appropriate mirrors.
Offline
Thanks. I appreciate the responses. I ran pacman-db-upgrade, and that appeared to fix the problem. I'm now having some trouble downloading packages (1 out of 10 seems to be failing), but I just found the documentation on selecting appropriate mirrors.
What exactly do you mean by "failing"? Please post the errors you get.
But first, grab a fresh mirrorlist http://www.archlinux.org/mirrorlist/ and try to update again.
Offline
benash wrote:Thanks. I appreciate the responses. I ran pacman-db-upgrade, and that appeared to fix the problem. I'm now having some trouble downloading packages (1 out of 10 seems to be failing), but I just found the documentation on selecting appropriate mirrors.
What exactly do you mean by "failing"? Please post the errors you get.
But first, grab a fresh mirrorlist http://www.archlinux.org/mirrorlist/ and try to update again.
I agree with picking an updated mirror. If packages are "failing," then the mirrors may be out of sync. Also, the list of mirrors included on the ISO CD may be out of date.
Offline
Thanks guys. I overcame my package downloading problems by following the directions here: https://wiki.archlinux.org/index.php/Mirrors
Offline
benash,
Cool, I'm glad it is all working and welcome to Arch Linux. To help others find relevant threads, please edit your original post and change the thread title by prepending [SOLVED] to Pacman is broken on fresh installation
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