I am running ubuntu 21.10 on a dell XPS 15 laptop. It was working great until the other day when I would get a black screen at boot time.
I can start it in recovery mode, select 'resume' from the recovery menu and ubuntu will launch but only as a text command line, no GUI.
My laptop is dual-booted with Ubuntu and windows 11. Windows boots fine.
EDIT: I have run fsck from a live CD and the output is now:
/dev/nvme0n1p7: clean, 362747/15261696 files, 28576717/61019392 blocks
Where nvme0n1p7 is my ubuntu partition. So everything seems to be fine with the filesystem.
EDIT: Something else I've tried is enabling networking and then running dpkg from the recovery menu to repair broken packages and I get this output:
Reading cache
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
No candidate ver: google-chrome-stable
No candidate ver: linux-image-5.11.41-generic
No candidate ver: linux-image-5.11.49-generic
No candidate ver: linux-modules-5.11.41-generic
No candidate ver: linux-modules-5.11.49-generic
No candidate ver: linux-modules-extra-5.11.27-generic
No candidate ver: linux-modules-extra-5.11.41-generic
No candidate ver: linux-modules-extra-5.11.49-generic
No candidate ver: teamviewer
No candidate ver: zoom
Calculating the changes
No candidate ver: google-chrome-stable
No candidate ver: linux-image-5.11.41-generic
No candidate ver: linux-image-5.11.49-generic
No candidate ver: linux-modules-5.11.41-generic
No candidate ver: linux-modules-5.11.49-generic
No candidate ver: linux-modules-extra-5.11.27-generic
No candidate ver: linux-modules-extra-5.11.41-generic
No candidate ver: linux-modules-extra-5.11.49-generic
No candidate ver: teamviewer
No candidate ver: zoom
Finished, please press ENTER
I used dpkg purge to remove google chrome, zoom, and teamviewer but to no effect. I'm more cautious removing / reinstalling the system related packages, especially since I don't know if that will solve anything.
anyone have any ideas / need more info?
fsck /dev/nvme0n1p7
from a root shell prompt: https://askubuntu.com/a/92558 – Nmath Apr 05 '22 at 00:32apt
is preferred overdpkg
for package management as it's more user-friendly. As far as thedpkg
output you posted, it's hard to comment on any command's output without knowing the actual command that was run. Originally you asked aboutfsck
but now you are talking about broken packages but there's not any explanation for that. Can you edit your question and include more details? Why do you think packages are broken? Which ones? Any ideas how it happened? Tag me @nmath or I'll miss it – Nmath Apr 06 '22 at 00:03