LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-28-2024, 08:02 PM   #1
MrPontes
LQ Newbie
 
Registered: Jan 2024
Posts: 2

Rep: Reputation: 0
Unhappy Apt-get dist-upgrade broke my system


I'm running the newest version of Debian and I was trying to install VLC but it required packages I didn't have, so I was told to run the command "sudo apt-get dist-upgrade" to install these packages.
It worked and I was able to install VLC but when I restarted the computer, it showed me the login screen with my username selected like always. However, when I click my username and type my password, it gets stuck on the spinning wheel for about a minute and then it goes back to the login screen like nothing happened. If I click my username again and type my password it does the same thing and brings me back to the login screen.
I already tried to make the terminal appear by pressing Ctrl+Alt+F1 but nothing happened. I also tried with the other F keys but the terminal didn't appear.
What can I do to fix this?
Thank you
 
Old 01-28-2024, 08:08 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,326
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
The first thing I would do would be to boot to a Live CD/USB of something, then mount the HDD and take a look at the log files. I'd start with /var/log/boot.log and /var/log/messages.

You could find the tail command very helpful in looking at the most recent log entries.

If you find anything that seems to cast a light on the issue, post it here, being sure to surround it with "code" tags, which become available when you click the "Go Advanced" button beneath the compose/edit post window.

And welcome to LQ.
 
Old 01-29-2024, 05:23 AM   #3
MrPontes
LQ Newbie
 
Registered: Jan 2024
Posts: 2

Original Poster
Rep: Reputation: 0
I managed to log in using security mode and checked the logs. There were no errors there. I also did apt-get --fix-broken install, but it did nothing.
 
Old 01-29-2024, 01:15 PM   #4
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
apt dist-upgrade is different from apt upgrade in that it allows packages to be removed, and expects the user to carefully review the list of packages being removed to make sure none are important.

If you are on debian stable, there is no reason installing vlc would require packages not in debian stable. Odds are you have added third party repos or repos from other versions of debian, i.e. frankendebian. Once you do stuff like that, you're kinda on your own to resolve it as the OS is in some unknown state.

If you can't get a TTY with ctrl+alt+F# then you could try logging in via ssh. Or booting single user mode.

To attempt to understand what happened, you could start by sharing "apt policy vlc".

You can also take a look at the apt log to see what you removed. /var/log/apt/history.log

You can take a look in /etc/apt/sources.list.d/ to see if you added any 3rd party repo there.

Last edited by enigma9o7; 01-29-2024 at 01:20 PM.
 
Old 02-05-2024, 05:22 PM   #5
FrankenDebian
LQ Newbie
 
Registered: Feb 2024
Distribution: GNU/Debian SID
Posts: 4

Rep: Reputation: Disabled
To avoid these situations, use aptitude instead of apt-get and restores utilitys like timeshift are a must.
Do what user enigma9o7 told you so you can fix it
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get question: dist-upgrade vs upgrade Arodef Fedora 9 06-15-2012 01:33 PM
apt-get dist-upgrade broke fglrx driver? drewbug01 Linux - Hardware 1 10-27-2006 03:14 PM
apt-get dist-upgrade broke lilo, apache & squid mikeaustn Debian 10 07-24-2005 01:48 PM
How to use synaptic "smart upgrade or "apt-get dist-upgrade" PenguinMolester Ubuntu 2 04-04-2005 02:11 PM
What's the difference between apt-get upgrade and apt-get dist-upgrade? davidas Linux - Newbie 4 04-04-2004 08:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration