2016年10月22日土曜日

crash during system upgrade

I tried to fix crash at last full system update.
Firstly I verified and reinstalled modules at the system update. I found linux-firmware and linux have problem and reinstalled both. After reinstall, linux-firmware seems to be fixed but linux has still errors. As I noticed other module seems to have problems, I think my system is not clean. Anyway, the first problem missing nvidia firmware is cleared so I reboot system. First thing is remove nvidia package and use nouveau as driver.

log

  • make new archiso archlinux-2016.10.01-dual.iso
  • arch-chroot
  • switch to nouveau
    • install nouveau and mesa-libgl pacman -S --needed xf86-video-nouveau mesa-libgl
    • remove nvidia pacman -R nvidia
    • also remove nvidia-utils pacman -R nvidia-utils
    • added nouveau in /etc/mkinitcpio.conf
    • regenerage initramfs mkinitcpio -p linux
  • reboot
    it seems nouveau driver loaded successfully and login screen show up but it’s same as nvidia driver case, it freeze and I can do nothing other than force shutdown.

So verify and reinstall last upgraded packages didn’t solve problem.
Next I should try is this
https://wiki.archlinux.org/index.php/pacman#pacman_crashes_during_an_upgrade

The procedures

  1. Boot using Arch installation media. Preferably use a recent media so that the pacman version match / is newer than the system.
  2. Mount the system’s root filesystem mount /dev/sdx /mnt as root, and check the mount has sufficient space with df -h
  3. If the system uses default database and directory locations, you can now update the system’s pacman database and upgrade it via
    pacman --root /mnt --cachedir=/mnt/var/pacman/pkg -Syyu
    as root.
  4. After the upgrade, one way to double-check for not upgraded but still broken packages: find /mnt/usr/lib -size 0
  5. Followed by reinstall of any still broken package via
    pacman --root /mnt --cachedir=/mnt/var/pacman/pkg -S package

Tried this but not solved I think.
The problem is my system missing some system files. How to find those files and owner of those packages?
this post hinted me. Just pacman -Qkk verify all packages.

output log
/home/y4suyuki/log/pacman_crash_all.txt
http://sprunge.us/MVTj

rm conflict files empty not owned by any packages and reinstall.

corrupt log

warning: java-runtime-common: /usr/lib/jvm/default (Symlink path mismatch)
warning: java-runtime-common: /usr/lib/jvm/default (Modification time mismatch)
warning: java-runtime-common: /usr/lib/jvm/default-runtime (Symlink path mismatch)
warning: java-runtime-common: /usr/lib/jvm/default-runtime (Modification time mismatch)error: error while reading file /var/lib/pacman/local/man-pages-4.08-1/mtree: Unrecognized archive format
error: error while reading file /var/lib/pacman/local/openssh-7.3p1-2/mtree: Unrecognized archive format
error: error while reading file /var/lib/pacman/local/python2-pyparsing-2.1.10-1/mtree: Unrecognized archive format
error: error while reading file /var/lib/pacman/local/python2-setuptools-1:28.3.0-1/mtree: Unrecognized archive format
error: error while reading file /var/lib/pacman/local/ristretto-0.8.1-1/mtree: Unrecognized archive format
error: error while reading file /var/lib/pacman/local/sudo-1.8.18-1/mtree: Unrecognized archive format
error: error while reading file /var/lib/pacman/local/systemd-sysvcompat-231-4/mtree: Unrecognized archive format
error: error while reading file /var/lib/pacman/local/texinfo-6.3-1/mtree: Unrecognized archive format
error: error while reading file /var/lib/pacman/local/xf86-input-evdev-2.10.4-1/mtree: Unrecognized archive format
error: error while reading file /var/lib/pacman/local/xfce4-notifyd-0.3.3-1/mtree: Unrecognized archive format

reinstalled

  • lvm2 /etc/lvm/lvmlocal.conf.pacnew
  • pacman-mirror /etc/pacman.d/mirrorlist.pacnew
  • man-pages
  • sudo /etc/sudoers.pacnew
  • systemd-sysvcompat
  • xf86-input-evdev
  • openssh /etc/ssh/ssh_config.pacnew /etc/ssh/sshd_config.pacnew
  • texinfo
  • xfce4-notifyd
  • python2-setuptools
  • python2-pyparsing
  • ristretto

After reinstalled these packages and rebooted then … it worked!

Written with StackEdit.

0 件のコメント:

コメントを投稿