69
Help, no session?! (lemmy.world)
submitted 1 year ago* (last edited 1 year ago) by LunchEnjoyer@lemmy.world to c/linux@lemmy.ml

I just installed a cisco vpn. And after installing some required libraries I got the option to get rid of "unused" libraries. So I did 'sudo apt autoremove' as suggested. After I rebooted I no longer have a either x11 or wayland in the drop down menu. I can no longer login via the GUI.

Running latest Debian.

Where did I go wrong? Any immediate help appreciated πŸ™

Edit: The Cisco VPN required me to download libkit2gtk-4.0-dev if that has anything to do with it?

Edit2: Thanks for all the tips and help. Won't happen again πŸ˜…

all 33 comments
sorted by: hot top controversial new old
[-] Nobilmantis@feddit.it 22 points 1 year ago
[-] sem@lemmy.ml 18 points 1 year ago* (last edited 1 year ago)

Try to switch to console (ctr alt f2) and run xsession via startx. Or just try to install some meta package from console, like gnome-desktop (like sudo apt install gnome-desktop)

Anyway console (tty) is all what you have now and it should be rnough for restoring the system.

[-] LunchEnjoyer@lemmy.world 7 points 1 year ago

Startx just gives me a straight black screen, no cursor or nothing.

[-] Limitless_screaming@kbin.social 8 points 1 year ago

Try reinstalling the DE as someone else has suggested.

[-] LunchEnjoyer@lemmy.world 3 points 1 year ago

Got network issues after the reboot too, so can't install anything atm.. πŸ˜…

[-] hottari@lemmy.ml 4 points 1 year ago

You clearly have borked your system. Save whatever data you still need and do a fresh install.

[-] LunchEnjoyer@lemmy.world 2 points 1 year ago

Yeah I really have.. Kinda crazy to me that it can happen so quickly haha, but yiu live and you learn. Luckily I always have my important stuff in the cloud.

[-] Ramin_HAL9001@lemmy.ml 13 points 1 year ago* (last edited 1 year ago)

See if you can just re-install a desktop environment. Try sudo apt-get install --reinstall gnome (or maybe cinnamon-desktop-environment, whichever you prefer). Then reboot, see if that does anything.

[-] folkrav@lemmy.world 13 points 1 year ago

You learned the hard way to always check what's going to be removed when using autoremove didn't ya. I did too, years ago. Must have been on Hardy Heron. It's a mistake you only make once... 😬

The solutions given by other people seem good enough. Reinstalling your Desktop Environment (in Ubuntu's case, Gnome) should fix it. But it's not all too clear what else you may have removed alongside.

[-] LunchEnjoyer@lemmy.world 4 points 1 year ago

Yeah man... Was really silly of me thinking back at it.. I saw a big list of this, thought to myswlf "oh that's odd.." and proceeded the action... Big silly. So yeah hopefully an immutable system will also help against this and make me follow standards a bit better πŸ˜…

[-] folkrav@lemmy.world 4 points 1 year ago

I'll be honest, I've been using Linux for ~16 years now, I've yet to switch to immutable systems. I see the appeal, I've been toying around with NixOS and Tumbleweed on VMs, but for my main machines (which I use for work), it's an additional learning curve I've yet to spend enough time on to feel confident I won't get stuck fixing my OS on a work day lol

[-] Minty95@lemm.ee 11 points 1 year ago

Though to late to help you, when you get it working again, install Timeshift, so that instead of faffing around to try and suss out what went wrong, you just start timeshift -- restore from the console and a couple of minutes later you'll have your working setup back. It's saved my bacon quite a few times in the last couple of years, especially when you can't login to your DE.

[-] LunchEnjoyer@lemmy.world 6 points 1 year ago

This is great, I've been far to lazy with backup solutions. Time shift is duly noted πŸ“

[-] ipacialsection@startrek.website 6 points 1 year ago* (last edited 1 year ago)

Whenever you install or remove software, be sure to read through what's being removed. You don't want to accidentally uninstall something important. This is very unlikely to happen with official Debian packages, but you should be especially careful when installing packages outside of Debian's repo, as they may not be fully compatible with your version of Debian.

In any case, I'd log in to a tty (ctrl-alt-any function key) and install whichever desktop environment you had before using apt.

[-] LunchEnjoyer@lemmy.world 4 points 1 year ago

But rather crazy that one "recommend" command from debian would do this? I'm still q bit new to the Desktop world of Linux.

[-] Vilian@lemmy.ca 2 points 1 year ago

linux distros assume that the your know what they are doing, so it show what it gonna do, and do it if the user say yes, even if it removing the entire system, because some users do that(removing and installing other system) so always be careful, especially with sudo commands, that why they ask for password, terminal is a powerfull tool, that why you can't runs these commands from GUI

[-] LunchEnjoyer@lemmy.world 0 points 1 year ago

I'm assuming I need to reconfigure my desk opt environment too?

[-] Guenther_Amanita@feddit.de -2 points 1 year ago* (last edited 1 year ago)

I recommend checking out Fedora Silverblue and other immutable distros, or, at least, use more containerization like Flatpak and Distrobox.

When the programs are all in their own small environment, they at least don't affect the base system like deleting the DE or other important packages when something goes wrong or changes dependencies.


But, in your case, try switching to tty (CTRL + ALT + F2) and installing the DE base (e.g. gnome-desktop). This will co-install all other dependencies, like X11.


Remember to always backup everything and reading thoroughly when using sudo in the future. And, maybe, check out the tips from my first paragraph :)

[-] LunchEnjoyer@lemmy.world 2 points 1 year ago

Yeah I'm thinking about getting OpenSuse Slowroll!

[-] richardisaguy@lemmy.world 2 points 1 year ago

Good choice, but remember to always containerize things, use flatpak and distrobox when possible, opensuse is excellent as a base distro to build your setup on top of, but i wouldnt say so much to actually be your setup. Opensuse user speaking

[-] LunchEnjoyer@lemmy.world 1 points 1 year ago

Thanks yeah! What do you do when there isn't a flatpak available for what you need?

I my case I needed Ciso Anyconnect for Uni VPN.

[-] richardisaguy@lemmy.world 1 points 1 year ago

I would try using it inside an archlinux distrobox, and install using yay or some other aur helper

this post was submitted on 14 Oct 2023
69 points (94.8% liked)

Linux

48349 readers
456 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