You are not logged in.

#1 2017-07-08 16:13:21

duckie
Member
Registered: 2017-07-08
Posts: 5

can't boot after updating :(

I have BunsenLabs with Debian Testing. So, I ran dist-upgrade yesterday, and noticed there was a problem, but decided to look at it in the morning. My computer suspended, and this morning it wouldn't wake up. I restarted it, and when it tried to boot, everything was [OK] until:

[FAILED] Failed to start Login Service.

So I tried to boot into recovery console, and got:

Cannot open access to console, the root account is locked.
See sulogin(8) man page for more details.
Press Enter to continue.

When I press Enter, nothing happens. I don't think I ever set a root password, and have just been using sudo whenever I needed root privileges. Any idea how to get to a console?

Offline

#2 2017-07-08 16:54:29

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,400

Re: can't boot after updating :(

[Ctrl]+[Alt]+[F1] or [F2]
log in and then:

sudo su -

don't forget the dash.

That should get you to root.

 08 Jul 17 @ 13:52:55 ~
   $ sudo su -
[sudo] password for sector11: 
root@s12:~# 

BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#3 2017-07-08 17:21:33

duckie
Member
Registered: 2017-07-08
Posts: 5

Re: can't boot after updating :(

Nothing happens when I do ctrl-alt-f1. When I do ctrl-alt-f2, I get a black screen with a blinking cursor and nothing else.

Offline

#4 2017-07-08 17:32:48

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,400

Re: can't boot after updating :(

try: ctrl-alt-f7


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#5 2017-07-08 17:48:01

duckie
Member
Registered: 2017-07-08
Posts: 5

Re: can't boot after updating :(

Another blinking cursor.

Offline

#6 2017-07-08 18:09:16

damo
....moderator....
Registered: 2015-08-20
Posts: 4,974

Re: can't boot after updating :(

Do you have a manually installed nvidia driver?


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#7 2017-07-08 18:32:03

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,400

Re: can't boot after updating :(

Ahh expert help.  big_smile


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#8 2017-07-08 20:19:06

duckie
Member
Registered: 2017-07-08
Posts: 5

Re: can't boot after updating :(

Nope, I haven't installed any video drivers.

Offline

#9 2017-07-08 20:48:39

damo
....moderator....
Registered: 2015-08-20
Posts: 4,974

Re: can't boot after updating :(

Have you searched for Debian bugs with that last error message ("[FAILED] Failed to start Login Service")?

EDIT: Can you boot into single-user mode? At the boot screen, press "e" to edit the grub menu; then add "s" to the end of the line starting with "linux..."; "Ctrl-x" to boot.

You may then be able to inspect logs. Check if dbus is installed.

Last edited by damo (2017-07-08 20:57:01)


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#10 2017-07-09 00:04:22

duckie
Member
Registered: 2017-07-08
Posts: 5

Re: can't boot after updating :(

Trying to boot into single user mode gets me to the "Cannot open access to console, the root account is locked." message.

I think I need to boot from a live USB and use chroot to set a root password, maybe?

Offline

#11 2017-07-09 10:05:05

damo
....moderator....
Registered: 2015-08-20
Posts: 4,974

Re: can't boot after updating :(

Some useful info about how to get into a linux box in this thread: How to Break Into Linux and How to Stop It

EDIT: a quick search came up with the notion that a messed up fstab can produce the same symptoms. So chroot from a live session and check the fstab


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#12 2017-07-09 10:53:48

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: can't boot after updating :(

duckie wrote:

"Cannot open access to console, the root account is locked."

Looks like you have hit the same problem as KrunchTime with his sid system:

https://forums.bunsenlabs.org/viewtopic … 927#p54927

I think the problem here is that you are both using Debian testing/unstable in the month or so immediately after a stable release (stretch in this case) and this is traditionally a time when all of the new package versions that have been held back during the six month freeze start making their way through the system in a massive flood of upgrades.

These upgrades may not be co-ordinated enough for the user to enjoy a consistently reliable experience and so the general use of testing/unstable is discouraged for this time.

It is worth noting that while Debian is happy to offer support for people running the stable release, it is expected that the users of testing/unstable provide support to Debian in the form of bugs reports and (preferably) patches. If you are unable to do this then you probably shouldn't be using the development branches at all.


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#13 2017-07-11 04:54:35

KrunchTime
Member
Registered: 2015-09-29
Posts: 857

Re: can't boot after updating :(

damo wrote:

EDIT: a quick search came up with the notion that a messed up fstab can produce the same symptoms. So chroot from a live session and check the fstab

Thank you!

Head_on_a_Stick wrote:

...it is expected that the users of testing/unstable provide support to Debian in the form of bugs reports and (preferably) patches. If you are unable to do this then you probably shouldn't be using the development branches at all.

Well, since neither duckie or I know exactly what is wrong, how would we go about filing a bug report?

Last edited by KrunchTime (2017-07-11 04:56:55)

Offline

#14 2017-07-11 06:20:31

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: can't boot after updating :(

KrunchTime wrote:

since neither duckie or I know exactly what is wrong, how would we go about filing a bug report?

You probably shouldn't, a bad bug report can be counter-productive.

Have you considered trying Arch instead?

Debian testing/unstable is designed to break, that is the purpose of those branches.

I don't have much experience with sid but have you tried `apt-get dist-upgrade` again (from a chroot)?

A full upgrade usually fixes things in Arch  glasses

Debian testing will stay broken for longer, of course.


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#15 2017-07-11 21:27:04

KrunchTime
Member
Registered: 2015-09-29
Posts: 857

Re: can't boot after updating :(

damo wrote:

EDIT: a quick search came up with the notion that a messed up fstab can produce the same symptoms. So chroot from a live session and check the fstab

fstab looks fine and there have been no changes to the file since I last updated it.

Offline

#16 2017-07-11 21:33:56

KrunchTime
Member
Registered: 2015-09-29
Posts: 857

Re: can't boot after updating :(

Head_on_a_Stick wrote:

Have you considered trying Arch instead?

I tried Antergos, an Arch derivative, awhile back.  I prefer sticking to Debian, though.

Head_on_a_Stick wrote:

Debian testing/unstable is designed to break, that is the purpose of those branches.

To be fair, Arch breaks as well.  Additionally, other than a couple of times over the last 6 months or so when WiFi was broke, I've not encountered any show stoppers under Unstable until 06/30/2017.  What's additionally frustrating is I've not seen similar issues reported over in the Debian or Siduction forums.

Head_on_a_Stick wrote:

I don't have much experience with sid but have you tried `apt-get dist-upgrade` again (from a chroot)?

No, I haven't yet figured out a way to boot as root.

Head_on_a_Stick wrote:

A full upgrade usually fixes things in Arch  glasses

As it does under Debian.  wink

Last edited by KrunchTime (2017-07-11 21:34:42)

Offline

#17 2017-07-11 21:44:13

beaker
Member
Registered: 2016-03-06
Posts: 110

Re: can't boot after updating :(

how to chroot -  should still be pretty relevant I should think.

https://crunchbang.org/forums/viewtopic.php?id=15351

I have a sid system which I dist-upgraded on 1st July and again on 11th July after reading this post ( to see if it would break) but it all worked.

Offline

#18 2017-07-11 21:46:10

KrunchTime
Member
Registered: 2015-09-29
Posts: 857

Re: can't boot after updating :(

^ Yeah, I have an ASUS Zenbook that I apt full-upgraded a day or two after and it is still running fine.  Must have something to do with one or more package upgrades and one of the hardware components on my desktop.  Thank you for the link to the post over in the #! forums.

Could the procedure outlined in that link be performed from my BL-Hydrogen instance (different partition)?  I'm able to mount the BL-Unstable partition under BL-Hydrogen.

Last edited by KrunchTime (2017-07-11 22:00:50)

Offline

#19 2017-07-11 22:53:09

damo
....moderator....
Registered: 2015-08-20
Posts: 4,974

Re: can't boot after updating :(

You can chroot from another partition - just mount it somewhere and chroot into it.


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#20 2017-07-11 23:19:29

KrunchTime
Member
Registered: 2015-09-29
Posts: 857

Re: can't boot after updating :(

^ Thank you.  I assume the sudo su is the chroot part.

Edit:  My assumption was correct.

Last edited by KrunchTime (2017-07-12 01:34:21)

Offline

#21 2017-07-11 23:32:49

damo
....moderator....
Registered: 2015-08-20
Posts: 4,974

Re: can't boot after updating :(

Quick cheatsheet:

sudo -i
mkdir -p /mnt/chroot   # call it what you like :)
mount /dev/sdXZ /mnt/chroot

for i in /proc /sys /dev /dev/pts; do mount --bind $i /mnt/chroot$i; done

#start root shell in chrooted partition
chroot /mnt/chroot /bin/bash

Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#22 2017-07-12 01:03:41

KrunchTime
Member
Registered: 2015-09-29
Posts: 857

Re: can't boot after updating :(

OK, I was able to chroot into my Unstable partition.  However, when I attempted to apt update, the repos used were from the applicable apt configuration files on my BL-Hydrogen partition, not on my BL-Unstable partition.

I don't know if it matters, but when I attempted to

cp /etc/resolv.conf $TARGET/etc/

I received the following error message:

cp: not writing through dangling symlink '/media/sda3/etc/resolv.conf'

sda3 is the partition containing BL-Unstable.

Apologies if I've hijacked for hijacking duckie's thread.  ops

Last edited by KrunchTime (2017-07-12 03:10:47)

Offline

#23 2017-07-12 06:53:39

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: can't boot after updating :(

KrunchTime wrote:

I assume the sudo su is the chroot part.

Edit:  My assumption was correct.

No and nope, respectively.

`sudo su` just attains a (non-login) root shell, the chrooting is done by... the `chroot` command  big_smile

KrunchTime wrote:

when I attempted to apt update, the repos used were from the applicable apt configuration files on my BL-Hydrogen partition, not on my BL-Unstable partition

You must have done it wrong then.

Try again from the very top and this time please be sure to post the actual terminal output rather than a vague description and please include your terminal inputs in the post so that we can see if you have made a mistake anywhere.

The "cheetsheet" given by damo in this post will get the job done, there is no need to copy resolv.conf anywhere  wink


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#24 2017-07-14 01:00:14

KrunchTime
Member
Registered: 2015-09-29
Posts: 857

Re: can't boot after updating :(

damo wrote:

Quick cheatsheet:

sudo -i
mkdir -p /mnt/chroot   # call it what you like :)
mount /dev/sdXZ /mnt/chroot

for i in /proc /sys /dev /dev/pts; do mount --bind $i /mnt/chroot$i; done

#start root shell in chrooted partition
chroot /mnt/chroot /bin/bash

To complete damo's cheatsheet...
When you're finished, CTRL-D to exit chroot, then:

umount -R /mnt
exit

Edited per HoaS's response below.

Last edited by KrunchTime (2017-07-14 06:17:25)

Offline

#25 2017-07-14 05:57:08

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: can't boot after updating :(

KrunchTime wrote:
for i in /proc /sys /dev /dev/pts; do umount -l /mnt/chroot$i; done
umount -l /dev/sdXZ
exit

I don't think you can control the device nodes from the chroot so `exit` would have to be called first wink

Simpler version:

exit
umount -R /mnt
exit

Or just call `reboot` after exiting the chroot — systemd will make sure everything is umounted correctly before shutting down

Last edited by Head_on_a_Stick (2017-07-14 06:07:04)


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

Board footer

Powered by FluxBB