You are not logged in.
Ok this is bad. not sure why or how this happened. But pacman decided that it'd be fun to override all my /etc/ files instead of saving to .pacnew. So basically all my configurations are screwed.
The only thing I did before doing the upgrade was added
IgnorePkg=mplayer-svn to pacman.conf
not sure if thats what triggered the bug, if its that or something else. but basically i got unlucky and one of the packages i was upgrading was filesystem.
what doesn't make sense is. /etc/passwd got reset, yet /etc/group didn't...they're both the same package.
So yea at this point I'm just confused on what happened and why it happened.
would also like to know if theres any intelligent way to restore my ld.so.conf
I just added /opt/gnome/lib to it to get gnome working again, but not sure what else was in there.
edit: Well the damage isn't all that bad. And I learned a valuable lesson....backup! say hello to weekly cp -R /etc /etc.bak cron job.
Last edited by sabooky (2007-04-10 02:07:20)
Offline
Yes, I was hit by the filesystem update too. Scary at first, eh.
Offline
I use pacman 3.x but still with old config, so nothing got removed.
Offline
Same thing happened to me and my backup is 100 miles away. Been having many Arch problems recently and I'm seriously considering moving to another distro...
Offline
I don't understand some people with these problems. It's my first time I'm using arch (it's 4 months already) and never had problems like these. How do you get them???
Offline
Well people just tend to have such a wide range of systems and configurations, so it's inevitable really. Personally, I've never considered stability to be one of Arch's strong points (not for want of trying, I think it's just small community -> less testing -> less bugs uncovered), but it has other strong points that make up for it, which is why it's my ideal distro (despite my disgruntled muttering earlier )
Offline
Sabooky can you post your pacman.log (/var/log/pacman.log). Were there any *.pacsave files in /etc?
"Instead, people would take pains to tell her that beauty was only skin-deep, as if a man ever fell for an attractive pair of kidneys."
(Terry Pratchett, Maskerade)
Offline
here's my pacman.log, unfortunately for me i hadn't upgraded in a while so this was a nice fat juicy upgrade....:
[2007-04-09 19:32] starting full system upgrade
[2007-04-09 19:33] warning: /etc/pacman.d/community installed as /etc/pacman.d/community.pacnew
[2007-04-09 19:33] warning: /etc/pacman.d/release installed as /etc/pacman.d/release.pacnew
[2007-04-09 19:33] warning: /etc/pacman.d/extra installed as /etc/pacman.d/extra.pacnew
[2007-04-09 19:33] warning: /etc/pacman.d/unstable installed as /etc/pacman.d/unstable.pacnew
[2007-04-09 19:33] warning: /etc/pacman.d/current installed as /etc/pacman.d/current.pacnew
[2007-04-09 19:33] >>> PLEASE READ THE FOLLOWING!
[2007-04-09 19:33] >>> Use of the new rankmirrors script on your /etc/pacman.d/ files is
[2007-04-09 19:33] >>> highly recommended. Read rankmirrors --help for details. In
[2007-04-09 19:33] >>> addition, mirrors are now listed by country, so move those that
[2007-04-09 19:33] >>> are geographically close to you to the top and remove the others
[2007-04-09 19:33] >>> BEFORE running rankmirrors.
[2007-04-09 19:33] upgraded pacman (3.0.0-1 -> 3.0.1-1)
[2007-04-09 19:33] starting full system upgrade
[2007-04-09 19:36] starting full system upgrade
[2007-04-09 19:37] starting full system upgrade
[2007-04-09 19:41] starting full system upgrade
[2007-04-09 19:54] reloading init: done.
[2007-04-09 19:54] ==> ATTENTION INTERNATIONAL USERS:
[2007-04-09 19:54] ==>
[2007-04-09 19:54] ==> Locales are no longer included in the glibc package.
[2007-04-09 19:54] ==> They are generated by /usr/sbin/locale-gen depending on the contents
[2007-04-09 19:54] ==> of /etc/locale.gen.
[2007-04-09 19:54] ==> glibc will try to autodetect the required locales now, if you need
[2007-04-09 19:54] ==> additional locales, please enable them in /etc/locale.gen and run
[2007-04-09 19:54] ==> /usr/sbin/locale-gen
[2007-04-09 19:54] ==>
[2007-04-09 19:54] Generating locales...
[2007-04-09 19:54] en_US.UTF-8... done
[2007-04-09 19:54] Generation complete.
[2007-04-09 19:54] upgraded glibc (2.5-6 -> 2.5-8)
[2007-04-09 19:54] upgraded attr (2.4.32-2 -> 2.4.32-3)
[2007-04-09 19:54] upgraded acl (2.2.39-1 -> 2.2.39-2)
[2007-04-09 19:54] upgraded at-spi (1.18.0-1 -> 1.18.1-1)
[2007-04-09 19:54] upgraded beryl-core (0.2.0-1 -> 0.2.1-1)
[2007-04-09 19:54] upgraded beryl-manager (0.2.0-1 -> 0.2.1-1)
[2007-04-09 19:54] upgraded beryl-plugins (0.2.0-1 -> 0.2.1-1)
[2007-04-09 19:54] upgraded beryl-plugins-unsupported (0.2.0-1 -> 0.2.1-1)
[2007-04-09 19:54] upgraded beryl-settings-bindings (0.2.0-2 -> 0.2.1-1)
[2007-04-09 19:54] upgraded beryl-settings (0.2.0-1 -> 0.2.1-1)
[2007-04-09 19:54] upgraded beryl-settings-simple (0.2.0-1 -> 0.2.1-1)
[2007-04-09 19:54] upgraded gnome-common (2.12.0-7 -> 2.18.0-1)
[2007-04-09 19:55] upgraded gnome-keyring (0.8-1 -> 0.8.1-1)
[2007-04-09 19:55] installed db4.1 (4.1.25-1)
[2007-04-09 19:55] upgraded evolution-data-server (1.10.0-1 -> 1.10.1-1)
[2007-04-09 19:55] upgraded bug-buddy (2.18.0-1 -> 2.18.1-1)
[2007-04-09 19:55] upgraded gnome-speech (0.4.10-1 -> 0.4.11-1)
[2007-04-09 19:55] upgraded dasher (4.4.0-1 -> 4.4.1-1)
[2007-04-09 19:55] upgraded ed (0.4-1 -> 0.5-1)
[2007-04-09 19:55] upgraded emerald (0.2.0-1 -> 0.2.1-1)
[2007-04-09 19:55] upgraded emerald-themes (0.2.0-1 -> 0.2.1-1)
[2007-04-09 19:55] upgraded epiphany (2.18.0-1 -> 2.18.1-1)
[2007-04-09 19:55] upgraded evince (0.8.0-1 -> 0.8.1-1)
[2007-04-09 19:55] upgraded faad2 (2.5-2 -> 2.5-3)
[2007-04-09 19:55] upgraded fakeroot (1.5.10-1 -> 1.5.10-2)
[2007-04-09 19:56] upgraded file-roller (2.18.0-1 -> 2.18.1-1)
[2007-04-09 19:56] warning: /etc/fstab installed as /etc/fstab.pacnew
[2007-04-09 19:56] warning: /etc/group installed as /etc/group.pacnew
[2007-04-09 19:56] warning: /etc/shadow installed as /etc/shadow.pacnew
[2007-04-09 19:56] upgraded filesystem (0.8-1 -> 0.8-2)
[2007-04-09 19:56] upgraded freetype2 (2.3.1-1 -> 2.3.3-2)
[2007-04-09 19:56] upgraded gdm (2.18.0-2 -> 2.18.1-1)
[2007-04-09 19:56] upgraded gnome-doc-utils (0.10.1-1 -> 0.10.2-1)
[2007-04-09 19:56] upgraded gnome-mime-data (2.4.3-1 -> 2.18.0-1)
[2007-04-09 19:56] upgraded gnome-power-manager (2.18.1-1 -> 2.18.2-1)
[2007-04-09 19:56] upgraded gnome-system-monitor (2.18.0-1 -> 2.18.1-1)
[2007-04-09 19:56] upgraded gnome-themes (2.18.0-1 -> 2.18.1-1)
[2007-04-09 19:56] upgraded gnupg2 (2.0.2-1 -> 2.0.3-1)
[2007-04-09 19:56] upgraded gstreamer0.10-faad (0.10.4-2 -> 0.10.4-3)
[2007-04-09 19:56] installed hal-info (0.20070402-1)
[2007-04-09 19:56] installed eject (2.1.5-3)
[2007-04-09 19:56] installed libsmbios (0.13.6-1)
[2007-04-09 19:56] upgraded hal (0.5.8.1-6 -> 0.5.9-1)
[2007-04-09 19:56] upgraded openssl (0.9.8e-1 -> 0.9.8e-2)
[2007-04-09 19:56] upgraded irssi (0.8.10a-1 -> 0.8.10a-2)
[2007-04-09 19:56] >>>
[2007-04-09 19:56] >>> If you use the LILO bootloader, you should run 'lilo' before rebooting.
[2007-04-09 19:56] >>>
[2007-04-09 19:56] >>> Updating module dependencies. Please wait ...
[2007-04-09 19:56] >>> MKINITCPIO SETUP
[2007-04-09 19:56] >>> ----------------
[2007-04-09 19:56] >>> If you use LVM2, Encrypted root or software RAID,
[2007-04-09 19:56] >>> Ensure you enable support in /etc/mkinitcpio.conf .
[2007-04-09 19:56] >>> More information about mkinitcpio setup can be found here:
[2007-04-09 19:56] >>> http://wiki.archlinux.org/index.php/Mkinitcpio
[2007-04-09 19:56]
[2007-04-09 19:56] >>> Generating initial ramdisk, using mkinitcpio. Please wait...
[2007-04-09 19:56] ==> Building image "default"
[2007-04-09 19:56] ==> Running command: /sbin/mkinitcpio -k 2.6.20-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26.img
[2007-04-09 19:56] :: Begin build
[2007-04-09 19:56] :: Parsing hook [base]
[2007-04-09 19:56] :: Parsing hook [udev]
[2007-04-09 19:56] :: Parsing hook [autodetect]
[2007-04-09 19:57] :: Parsing hook [sata]
[2007-04-09 19:57] :: Parsing hook [filesystems]
[2007-04-09 19:57] :: Generating module dependencies
[2007-04-09 19:57] :: Generating image '/boot/kernel26.img'...SUCCESS
[2007-04-09 19:57] ==> SUCCESS
[2007-04-09 19:57] ==> Building image "fallback"
[2007-04-09 19:57] ==> Running command: /sbin/mkinitcpio -k 2.6.20-ARCH -c /etc/mkinitcpio.d/kernel26-fallback.conf -g /boot/kernel26-fallback.img
[2007-04-09 19:57] :: Begin build
[2007-04-09 19:57] :: Parsing hook [base]
[2007-04-09 19:57] :: Parsing hook [udev]
[2007-04-09 19:57] :: Parsing hook [ide]
[2007-04-09 19:57] :: Parsing hook [pata]
[2007-04-09 19:57] :: Parsing hook [scsi]
[2007-04-09 19:57] :: Parsing hook [sata]
[2007-04-09 19:57] :: Parsing hook [usbinput]
[2007-04-09 19:57] :: Parsing hook [raid]
[2007-04-09 19:57] :: Parsing hook [filesystems]
[2007-04-09 19:57] :: Generating module dependencies
[2007-04-09 19:57] :: Generating image '/boot/kernel26-fallback.img'...SUCCESS
[2007-04-09 19:57] ==> SUCCESS
[2007-04-09 19:57] upgraded kernel26 (2.6.20.4-1 -> 2.6.20.6-4)
[2007-04-09 19:57] >> You can safely ignore any "cannot open shared object" errors you see above
[2007-04-09 19:57] upgraded readline (5.2-1 -> 5.2-2)
[2007-04-09 19:57] upgraded lftp (3.5.9-1 -> 3.5.10-1)
[2007-04-09 19:57] upgraded libxklavier (3.1-1 -> 3.2-1)
[2007-04-09 19:57] upgraded libgnomekbd (2.18.0-1 -> 2.18.1-1)
[2007-04-09 19:57] upgraded libx11 (1.1.1-3 -> 1.1.1-4)
[2007-04-09 19:57] upgraded libxfont (1.2.7-1 -> 1.2.8-1)
[2007-04-09 19:57] upgraded m4 (1.4.8-1 -> 1.4.9-1)
[2007-04-09 19:57] upgraded man-pages (2.43-1 -> 2.44-1)
[2007-04-09 19:58] upgraded metacity (2.18.0-1 -> 2.18.2-1)
[2007-04-09 19:58] upgraded nano (2.0.3-1 -> 2.0.4-1)
[2007-04-09 19:58] upgraded ntfs-3g (1.0-1 -> 1.328-1)
[2007-04-09 19:58] upgraded orca (2.18.0-1 -> 2.18.1-1)
[2007-04-09 19:58] upgraded pango (1.16.1-2 -> 1.16.2-1)
[2007-04-09 19:58] upgraded python-elementtree (1.2.6-1 -> 1.2.6-2)
[2007-04-09 19:58] upgraded qt (3.3.8-2 -> 3.3.8-3)
[2007-04-09 19:58] upgraded seom-svn (161-1 -> 179-1)
[2007-04-09 19:59] Updating font cache... done.
[2007-04-09 19:59] upgraded ttf-dejavu (2.15-1 -> 2.16-1)
[2007-04-09 19:59] upgraded vino (2.18.0-1 -> 2.18.1-1)
[2007-04-09 19:59] upgraded vorbis-tools (1.1.1-3 -> 1.1.1-4)
[2007-04-09 19:59] upgraded vte (0.16.0-2 -> 0.16.1-1)
[2007-04-09 19:59] >>> As of kernel 2.6.18, WINE will not work unless you disable the Legacy
[2007-04-09 19:59] >>> VM Layout, else you will get segfaults!
[2007-04-09 19:59] >>> Please remove the old entry from your /etc/sysctl.conf
[2007-04-09 19:59] >>> vm.legacy_va_layout = 1
[2007-04-09 19:59] upgraded wine (0.9.33-1 -> 0.9.34-1)
[2007-04-09 19:59] upgraded xorg-server (1.2.0-3 -> 1.2.0-5)
[2007-04-09 19:59] upgraded yelp (2.18.0-1 -> 2.18.1-1)
now at this point, I'm starting to see more effects of the damage done, gnome-screensaver does't work anymore, and there's really no garentee on what works and what doesn't. My question is, can I trust pacman enough, to make a bash scrip that pacman -Rd every single package, then pacman -S every single package? or will this probably mess up my system even more?
Offline
What I don't understand is why people complain when software in TESTING messes their computer...
If you use testing, you test and report problems not complain about them ^^
And pacman is still in testing ain't it?
Offline
What I don't understand is why people complain when software in TESTING messes their computer...
If you use testing, you test and report problems not complain about them ^^
And pacman is still in testing ain't it?
You're right. still pissed though...
So yea, any ideas on how to go about reinstalling all my configurations?
like i need to somehow run the install files of all the packages (whatever they do when they install, i need it to be done again)
so for example if after install, software foo updates LD_LIBRARY_PATH then i need that to happen again.
Offline
Few hours ago I did an update on my server via ssh.
First I updated pacman from 3.0.0 to 3.0.1, then did -Su.
One of packages was filesystem-0.8-2.
I don't have etc/fstab in NoUpgrade since 2.9.8.
Then some idiot rebooted server before I checked .pacnew files etc.
One of my co-worker called my by cellphone (I also noticed PuTTY became
inactive).
When I get to my second job (where server is located) - I saw that
/etc/fstab is rewritten with package's default, though pacman also
created fstab.pacnew.
to live is to die
Offline
Just to let people know, the issue has been brought up on the pacman-dev mailing list, and it's being looked into.
"Instead, people would take pains to tell her that beauty was only skin-deep, as if a man ever fell for an attractive pair of kidneys."
(Terry Pratchett, Maskerade)
Offline
sabooky can you post your pacman.conf as well please.
"Instead, people would take pains to tell her that beauty was only skin-deep, as if a man ever fell for an attractive pair of kidneys."
(Terry Pratchett, Maskerade)
Offline
Hi Sabooky
Likely there are only a few files that were clobbered. For me it was my group, shadow, passwd and ld.so.conf.
If you reinstall dbus, that user is recreated. I added a dbus (81) and avahi (84) user by hand and it worked.
For your ld.so.conf, it depends what you have installed. For example, here is mine:
#
# /etc/ld.so.conf
#
/usr/X11R6/lib
# End of file
/usr/lib/libfakeroot
/opt/kde/lib
/opt/qt/lib
/opt/gnome/lib
Offline
space-m0nkey, thanks for posting on the mailing list.
Here is the pacman.conf that came with the newest pacman from testing. The missing noupgrade lines are the problem.
#
# /etc/pacman.conf
#
# See the pacman manpage for option directives
#
# GENERAL OPTIONS
#
[options]
LogFile = /var/log/pacman.log
HoldPkg = pacman glibc
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#
# 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
#
[testing]
Include = /etc/pacman.d/testing
[current]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/current
[extra]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/extra
[community]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/community
[unstable]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/unstable
# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#Server = file:///home/custompkgs
Offline
space-m0nkey, thanks for posting on the mailing list.
That was me.
Here is the pacman.conf that came with the newest pacman from testing. The missing noupgrade lines are the problem.
# # /etc/pacman.conf # # See the pacman manpage for option directives # # GENERAL OPTIONS # [options] LogFile = /var/log/pacman.log HoldPkg = pacman glibc #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u # # 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 # [testing] Include = /etc/pacman.d/testing [current] # Add your preferred servers here, they will be used first Include = /etc/pacman.d/current [extra] # Add your preferred servers here, they will be used first Include = /etc/pacman.d/extra [community] # Add your preferred servers here, they will be used first Include = /etc/pacman.d/community [unstable] # Add your preferred servers here, they will be used first Include = /etc/pacman.d/unstable # An example of a custom package repository. See the pacman manpage for # tips on creating your own repositories. #[custom] #Server = file:///home/custompkgs
space-m0nkey, this is practically the same as mine (you aked in ML about my pacman.conf).
to live is to die
Offline
Same as mine, scrub that idea then.
colnago: The NoUpgrade lines aren't needed, they are in filesystems PKGBUILD (backup=(...) = NoUpgrade)
"Instead, people would take pains to tell her that beauty was only skin-deep, as if a man ever fell for an attractive pair of kidneys."
(Terry Pratchett, Maskerade)
Offline
Not sure how good of an idea this is, but it's something I'm going to try:
1. Downgrade to pacman 2.9
2. Run the code below
pacman -Q|while read program version;do if [ $program = "pacman" ];then continue;fi; pacman -S --noconfirm $program;done
I'll make sure to tell you guys if everything went boom
I'm hoping this will be a nice way to run all the .install files for all the packages. prolly not the best way of doing things, but hopefully it works.
Last edited by sabooky (2007-04-10 17:13:49)
Offline
I'm hoping this will be a nice way to run all the .install files for all the packages. prolly not the best way of doing things, but hopefully it works.
You could reinstall only the last packages you installed with pacman3 (based on the pacman log), rather than every package installed on your system.
I am a gated community.
Offline
sabooky wrote:I'm hoping this will be a nice way to run all the .install files for all the packages. prolly not the best way of doing things, but hopefully it works.
You could reinstall only the last packages you installed with pacman3 (based on the pacman log), rather than every package installed on your system.
if a package sets say /etc/ld.so.conf to default, then every package that changed /etc/ld.so.conf needs to be installed again. Can't think of an easy way to narrow it down
Offline
btw. since long time I use confstore -> http://freshmeat.net/projects/confstore/ (perl script for making backups with lots of features and easy of use) to backup most vital configs and other files (like /etc /var/lib/pacman /home/.kde and so on). I run it from cron so everything is automagical
Sorry for off topic.
Offline
stonecrest wrote:sabooky wrote:I'm hoping this will be a nice way to run all the .install files for all the packages. prolly not the best way of doing things, but hopefully it works.
You could reinstall only the last packages you installed with pacman3 (based on the pacman log), rather than every package installed on your system.
if a package sets say /etc/ld.so.conf to default, then every package that changed /etc/ld.so.conf needs to be installed again. Can't think of an easy way to narrow it down
If all packages edit ld.so.conf using a .install file, then just grep all the .install files of your installed packages in abs.
Something like:
find /var/abs/ -name "*.install" | xargs grep ld.so.conf
but only for your installed packages.
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
too late, that abs thing woulda been a good idea... and i think i just made all my packages explicitly installed....yea... I did... damnit
Offline
Few hours ago I did an update on my server via ssh.
First I updated pacman from 3.0.0 to 3.0.1, then did -Su.
One of packages was filesystem-0.8-2.
I don't have etc/fstab in NoUpgrade since 2.9.8.
Then some idiot rebooted server before I checked .pacnew files etc.
One of my co-worker called my by cellphone (I also noticed PuTTY became
inactive).
When I get to my second job (where server is located) - I saw that
/etc/fstab is rewritten with package's default, though pacman also
created fstab.pacnew.
Odd, that looks very much like the old bug.
So I don't know about you, but for the other users, nothing prevents them from running in the old bug
that I first described a while ago there in a poorly formatted mail (no, I don't know how to use mails ) :
http://www.archlinux.org/pipermail/pacm … 00321.html
but was then better explained there :
http://www.archlinux.org/pipermail/pacm … 00838.html
If I understand it correctly, the plan was to make a release, have every users move to pacman 3,
then wait for a bump of all packages with NoUpgrade files, and only then, remove all NoUpgrade lines.
That's not exactly what happened, so this bug should be expected.
Did I miss anything?
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
If all packages edit ld.so.conf using a .install file, then just grep all the .install files of your installed packages in abs.
Something like:find /var/abs/ -name "*.install" | xargs grep ld.so.conf
but only for your installed packages.
How about this:
find /var/lib/pacman/local/ -name "install" | xargs grep ld.so.conf
Offline