this post was submitted on 27 Feb 2024
69 points (100.0% liked)

Linux

1254 readers
61 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 
top 42 comments
sorted by: hot top controversial new old
[–] henfredemars@infosec.pub 29 points 7 months ago (1 children)

Are you running a proprietary video driver? It might be worthwhile to disable it in case it became incompatible perhaps after a kernel upgrade.

Did you perform a graphical login prior?

[–] mariah@feddit.rocks 9 points 7 months ago (2 children)

Yes to both. What should i do

[–] henfredemars@infosec.pub 11 points 7 months ago (1 children)

First, you might try booting an older kernel to see if that runs for you. Your bootloader such as grub might help you pick an old one.

The older kernels are actually combinations of kernel + initial ramdisk that contains the version of your graphics drivers that were being used at that time. It could be a way to test the hypothesis.

[–] mariah@feddit.rocks 4 points 7 months ago (1 children)

Same error on older kernel

[–] henfredemars@infosec.pub 8 points 7 months ago (1 children)

Hmm, interesting. That tells us that it's not actually a problem with your graphics driver or kernel version, and given that it was working on this version before, I would think some aspect of Xorg configuration, your graphics hardware has an issue, or your installation in general has been corrupted when it tried to upgrade.

You might try to detect corruption by using a tool like debsums to check for any obviously corrupted files.

What's the state of your debian packages I wonder... does something like apt-get update or apt-get check highlight any problems with the state of installed packages that could point to a failed upgrade?

[–] mariah@feddit.rocks 4 points 7 months ago (2 children)

I think its because / is full. Some packages cant update. Is there a way to combine them without gui as i am disabled and cant use a mouse? I know u cant edit partitions booted

[–] Successful_Try543@feddit.de 9 points 7 months ago* (last edited 7 months ago) (1 children)

If you can boot into terminal session, e.g. by pressing Ctrl + Alt + F2, you can try:

sudo apt clean
sudo apt -f install
sudo apt clean
sudo apt dist-upgrade
sudo apt clean

If sudo apt -f install doesn't work properly, you can create an apt-cache folder on, e.g. your home partition, assuming this is the one with sufficient amounts of free storage.

sudo apt clean
sudo mkdir /home/apt-cache
sudo nano /etc/fstab

In the fstab you specify where this directory shall be mounted:

/home/apt-cache    /var/cache/apt/archives    none    bind    0    0

Now you copy the files in place and mount the partition:

sudo cp -r /var/cache/apt/archives/* /home/apt-cache
sudo mount -a

Nou you should be able to run the fix-installation and update commands without the errors:

sudo apt -f install
sudo apt dist-upgrade
[–] mariah@feddit.rocks 7 points 7 months ago (1 children)
[–] Successful_Try543@feddit.de 2 points 7 months ago (1 children)
[–] mariah@feddit.rocks 1 points 7 months ago (1 children)
[–] Successful_Try543@feddit.de 1 points 7 months ago (1 children)

Do you have sufficient disk space now? Or did the mounting procedure work? Did sudo apt -f install work?

[–] mariah@feddit.rocks 1 points 7 months ago (1 children)

Mounting and sudo apt -f install worked. So does stuff install in /home/apt-cache now? I do want to combine / and /home

[–] Successful_Try543@feddit.de 1 points 7 months ago (1 children)

My recommendation would be to copy your entire home directory with rsync -a onto another (external) drive, as you anyway don't want to modify your partitions without having a backup. Then boot into a live distribution and open a partition editor, delete the home partition (the data on it will be lost), expand the root partition (/) onto the entire disk. Finally copy the backup back into the home folder using rsync -a

[–] mariah@feddit.rocks 2 points 7 months ago (1 children)

Ok. Does rync -a copy hardlinks

[–] Successful_Try543@feddit.de 1 points 7 months ago* (last edited 7 months ago) (1 children)

No, only softlinks. See it's man page. AfaIk, rsync -a is usually used for backup.

[–] mariah@feddit.rocks 1 points 7 months ago
[–] henfredemars@infosec.pub 4 points 7 months ago (1 children)

This may seem like an obvious question, but are there files you can remove or perhaps move to another drive or USB stick temporarily to make enough space to get through your updates? You should be able to do those while rootfs is full.

We can certainly delete or copy files using the terminal.

Are you sure the root is full and not readonly due to other errors? Why do you believe root is full?

[–] mariah@feddit.rocks 2 points 7 months ago (1 children)

duf / lists 0gb as available. Idk what i should move

[–] henfredemars@infosec.pub 5 points 7 months ago (2 children)

Here's a guide I found online that has some commands that might help you figure out where your storage has gone:

https://askubuntu.com/questions/266825/what-do-i-do-when-my-root-filesystem-is-full

How big is the partition?

[–] mariah@feddit.rocks 2 points 7 months ago
[–] mariah@feddit.rocks 2 points 7 months ago (1 children)

This is / Screenshot_20240227-142646 /mnt has my 2nd hard drive. /usr is big because of wine

[–] oldfart@lemm.ee 2 points 7 months ago* (last edited 7 months ago)

ncdu -x / will only show you the files stored on / without counting /mnt and other partitions.

You can usually delete files (not directories!) in /var/log safely

[–] XTL@sopuli.xyz 7 points 7 months ago (1 children)

What should i do

Avoid Nvidia like the plague.

[–] mariah@feddit.rocks 2 points 7 months ago

Wait months to buy a amd gpu as im on disablity? Got it

[–] redcalcium@lemmy.institute 17 points 7 months ago

* zoom in on the error message

Yep, of course it's Nvidia.

[–] wintermute_oregon@lemm.ee 9 points 7 months ago (1 children)
[–] mariah@feddit.rocks 4 points 7 months ago (2 children)
[–] wintermute_oregon@lemm.ee 8 points 7 months ago

Boot to command line. You have to install the nvidia drivers. Don’t turn on the gui until you get it working. Crazy I had the same issue several years ago

[–] possiblylinux127@lemmy.zip 5 points 7 months ago

That explains it

[–] ryannathans@aussie.zone 7 points 7 months ago

That's the novideo graphics card for you

[–] ipsirc@lemmy.ml 6 points 7 months ago (2 children)
[–] ulu_mulu@lemm.ee 3 points 7 months ago

That was on the kernel 6.1.0-18, I had it too, fixed several days ago, but in OP picture the kernel is 6.1.0-17, that one wasn't affected.

load more comments (1 replies)
[–] baggins@lemmy.ca 6 points 7 months ago (1 children)

Nice! That looks like a fun one.

[–] mariah@feddit.rocks 1 points 7 months ago

Ikr. So fun

[–] unexposedhazard@discuss.tchncs.de 5 points 7 months ago (1 children)

MommysBabygiwl ?? On the third line. Is this canon to debian lore or did OP change it to that?

[–] backhdlp@iusearchlinux.fyi 2 points 7 months ago (1 children)
[–] rah@feddit.uk 3 points 7 months ago (2 children)

You bought an Nvidia graphics card.

[–] mariah@feddit.rocks 2 points 7 months ago

I know, shame on me. Its like i wasnt on linux when i bought this computer

[–] mariusafa@lemmy.sdf.org 1 points 7 months ago

Pretty much sums up every thing

[–] PrettyFlyForAFatGuy@lemmy.ml 3 points 7 months ago* (last edited 7 months ago)

if your updates included a new kernel try installing the kernel headers for the new kernel.

then if it's still not working reinstall the nvidia driver.

i used to daily drive debian with proprietary nvidia drivers and it would break with every kernel upgrade

from memory, so almost certainly incorrect, the fix was simply something like


sudo apt install linux-headers-`uname -r` && sudo reboot
[–] allywilson@sopuli.xyz 1 points 7 months ago