You are not logged in.

#1 2012-06-24 10:05:51

toni
Member
Registered: 2011-10-15
Posts: 437

[SOLVED]After upgrading-Cannot boot arch linux. Neither I cannot login

Hi all,

I am trying to upgrade my arch linux system but some errors appeared:


:: Starting full system upgrade...
:: Replace dbus-python with extra/python2-dbus? [Y/n] y
:: Replace libusb with core/libusbx? [Y/n] y
:: Replace procps with core/procps-ng? [Y/n] y
:: Replace udev with core/systemd-tools? [Y/n] y
resolving dependencies...
warning: dependency cycle detected:
warning: systemd-tools will be installed before its util-linux dependency
warning: dependency cycle detected:
warning: java-rhino will be installed before its jre7-openjdk-headless dependency
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: xine-lib-oss: requires heimdal

So I did the following to solve udev and systemd-tools conflicts:

1.- pacman -Sf systemd-tools
2.- After that I removed udev from the hooks array.
3.- mkinitcpio -p linux

For the others, replace dbus-python with extra/python2-dbus, libusb with core/libusbx and procps with core/procps-ng, I install them individually by doing:

pacman -S python2-dbus; libusbx, procps-ng

So finally, I try to upgrade the system and get these messages:

:: Starting full system upgrade...
resolving dependencies...
warning: dependency cycle detected:
warning: java-rhino will be installed before its jre7-openjdk-headless dependency
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: xine-lib-oss: requires heimdal

Any ideas will be highly appreciated.

Thanks in advance.

Last edited by toni (2012-06-25 20:04:48)

Offline

#2 2012-06-24 10:41:36

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,314

Re: [SOLVED]After upgrading-Cannot boot arch linux. Neither I cannot login

Remove xine-lib-oss, or recompile it against krb5 instead of heimdal
BTW, this should be in the pacman & package upgrade subforum

Offline

#3 2012-06-24 11:08:48

toni
Member
Registered: 2011-10-15
Posts: 437

Re: [SOLVED]After upgrading-Cannot boot arch linux. Neither I cannot login

arojas wrote:

Remove xine-lib-oss, or recompile it against krb5 instead of heimdal
BTW, this should be in the pacman & package upgrade subforum

I have removed xine-lib-oss and install only xine-lib so I could proceed to upgrade my system but upgrading the system, following error appeared after checking for file conflicts:

error: failed to commit transaction (conflicting files)
filesystem: /var/lock exists in filesystem
filesystem: /var/run exists in filesystem
Errors occurred, no packages were upgraded.

So, I have performed:

 rm -rf /var/run /var/lock && pacman -Syu && reboot

and it is now upgrading my system... later I will post if it has finished ok.

Thanks.

Last edited by toni (2012-06-24 11:24:39)

Offline

#4 2012-06-24 12:35:12

toni
Member
Registered: 2011-10-15
Posts: 437

Re: [SOLVED]After upgrading-Cannot boot arch linux. Neither I cannot login

I think my arch linux has dead...

While upgrading my system using:

rm -rf /var/run /var/lock && pacman -Syu && reboot

My arch suddenly (I don't know why)... has rebooted... and my arch cannot boot now. When I boot it says:

Loading ../vmlinuz-linux.....
Loading ../initramfs-linux-linux.img..... ready.
Probing EDD (edd=off to diable)... ok
Decompressing Linux.... Parsing ELF... done.
Booting the kernel.
:: Running hook [resume]
ERROR: resume: hibernation device '/dev/sda11' not found.
ERROR: Unable to find root device '/dev/sda8'
You are being dropped to a recovery shell
Type 'exit' to try and continue booting.
sh: can't access tty; job control turned off.
[rootfs /]#

so I cannot start my arch system.

In fallback mode the above message are similar.

Is it necessary to reinstall from scratch entire arch linux again? or there is something to do before formatting all and install arch again?

Thanks.

Offline

#5 2012-06-24 12:39:15

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: [SOLVED]After upgrading-Cannot boot arch linux. Neither I cannot login


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#6 2012-06-24 12:43:33

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: [SOLVED]After upgrading-Cannot boot arch linux. Neither I cannot login

Two things that are probably wrong: there should be no need to "pacman -Sf systemd-tools". But most importantly: you should not have removed the "udev" hook from your mkinitcpio.conf. I'd try starting from a live cd, chrooting into your system, re-adding the udev hook and regenerating the initramfs (unless you know that you really don't need udev in there).

Offline

#7 2012-06-24 15:43:15

toni
Member
Registered: 2011-10-15
Posts: 437

Re: [SOLVED]After upgrading-Cannot boot arch linux. Neither I cannot login

tomegun wrote:

Two things that are probably wrong: there should be no need to "pacman -Sf systemd-tools". But most importantly: you should not have removed the "udev" hook from your mkinitcpio.conf. I'd try starting from a live cd, chrooting into your system, re-adding the udev hook and regenerating the initramfs (unless you know that you really don't need udev in there).

Hi,

I have done the following from an arch linux cd installation:

swapon /dev/sda11

mkdir /mnt/arch
mount /dev/sda8 /mnt/arch

cd /mnt/arch
mount -t proc proc proc/
mount -t sysfs sys sys/
mount -o bind /dev dev/

mount the rest of partitions

mount /dev/sda5 boot/
mount /dev/sda6 tmp/
mount /dev/sda7 var/
mount /dev/sda9 usr/
mount /dev/sda10 home/

then I do chrooting by:

chroot . /bin/bash

activate ethernet by:

dhcpcd eth0

and finally:

pacman -Syy
pacman -Syu --ignore filesystem && rm -rf /var/run /var/lock && pacman -S filesystem

...but last command pacman -S filesystem give me the error:

warning: directory permissions differ on sys/
filesystem: 755 package: 555

so I tried to do the following:

pacman -S filesystem --force

but the same message error appears:

warning: directory permissions differ on sys/
filesystem: 755 package: 555

Also I have added udev to the hook array again. I checked that udev is installed correctly.

At the end, I have done:

pacman -S mkinitcpio
mkinitcpio -p linux

also, mkinitcpio -p linux gives the error:

bsdcpio: failed to set default locale

however the image files have been done successfully.

After that, I reboot the system. Arch by a while seems to work but at the end it shows the prompt:

(none) login:

At this point I cannot login with root, neither with my user account.

Any ideas?

I continue with my arch linux crashed. I have tried a lot of things.... but I cannot start arch linux.... When it boots, some messages appear very quickly but I cannot see what it is printed in the screen... I open var/log/boot but nothing there....


Please, someone can help me?

Last edited by toni (2012-06-24 22:16:42)

Offline

#8 2012-06-25 18:25:08

toni
Member
Registered: 2011-10-15
Posts: 437

Re: [SOLVED]After upgrading-Cannot boot arch linux. Neither I cannot login

Hi all,

I am thinking about reinstall all the system again from the scratch since my problem persists....I have done a lot of things commented in the forum related to it but nothing works.

I don't know what else to do so... I highly appreciate if anyone could help me.

Thanks very much in advance to all arch linux community.

Offline

#9 2012-06-25 18:42:12

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED]After upgrading-Cannot boot arch linux. Neither I cannot login

You definitely need the udev hook in /etc/mkinitcpio.conf, like this:

HOOKS="base udev autodetect pata scsi sata usbinput filesystems fsck"

And regarding:

bsdcpio: failed to set default locale

Set this in /etc/rc.conf:

LOCALE="en_US.UTF-8"

(which should be uncommented along with the next entry called "en_US ISO-8859-1", from /etc/locale.gen, from back when you first installed Arch)

And then regenerate your initramfs image from a chroot (like it says here, for example).



Also, post your:

/etc/inittab
/etc/fstab
/etc/rc.conf
~/.xinitrc

(preferably using pastebin.com)

Last edited by DSpider (2012-06-25 18:43:29)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#10 2012-06-25 18:52:31

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED]After upgrading-Cannot boot arch linux. Neither I cannot login

Oh, wait a minute. Separate /usr partition...

You need slightly different hooks in mkinitcpio.conf: https://wiki.archlinux.org/index.php/Fs … _partition


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#11 2012-06-25 18:54:36

Terminator
Member
From: Belgium
Registered: 2012-05-07
Posts: 265

Re: [SOLVED]After upgrading-Cannot boot arch linux. Neither I cannot login

(none) login:

That probably indicates that you did not set a hostname in your rc.conf, which probably means that your /etc/hosts is also wrong. According to the beginners guide, this can cause problems.

If you decide to reinstall, I suggest the following:
- Follow the beginners guide during the install.
- Read the news before updating.
- Update regularly.
- edit: Do not put /usr on a seperate partition.

edit: As DSpider said, adding the correct hook(s) for a seperate usr partition might do the trick.

Last edited by Terminator (2012-06-25 18:57:28)

Offline

#12 2012-06-25 20:04:04

toni
Member
Registered: 2011-10-15
Posts: 437

Re: [SOLVED]After upgrading-Cannot boot arch linux. Neither I cannot login

Terminator wrote:

(none) login:

That probably indicates that you did not set a hostname in your rc.conf, which probably means that your /etc/hosts is also wrong. According to the beginners guide, this can cause problems.

If you decide to reinstall, I suggest the following:
- Follow the beginners guide during the install.
- Read the news before updating.
- Update regularly.
- edit: Do not put /usr on a seperate partition.

edit: As DSpider said, adding the correct hook(s) for a seperate usr partition might do the trick.

Hi,

I have solved. The problem was that I have usr partition in a separate partition so after upgrading the system it couldn't reboot because usr was not in hook array in /etc/mkinitcpio.conf

So adding usr to hook array in /etc/mkinitcpio.conf solved the problem. I searched in /etc/pacman.log for possible errors and I encountered a line that was advising me to put usr in hook array so I did it and now it works. I am writting this from my arch linux. I love arch linux!!!!!!


One more time, thanks very much to arch linux community.


smile)))))))))

Offline

Board footer

Powered by FluxBB