Deleted the X11 folder and now the graphical desktop won't start. How can I recover?

November 13, 2026 4 answers
Asked by Vordick+later

I deleted the X11 folder while trying to resolve a package conflict on antiX 26. The system boots, but the desktop won't start and there's a repeating error about an Xorg keyboard component. I can still use the keyboard in a terminal-like screen.

Answers

Jemrick.8

First, try switching to a text console with Ctrl+Alt+F5. If that doesn't show a login prompt, try a few other function keys. Log in there and try sudo apt install --reinstall xorg xserver-xorg xinit.

That may restore missing package files, but it won't necessarily fix every deleted configuration file. If the desktop still fails, the exact Xorg error and which folder was deleted would help narrow it down.

Vordick+later:

The reinstall command ran after I started the system using sysvinit, but the error still appeared.

Reply to this answer
47k+sidecar_806

Since the keyboard error remains after reinstalling those packages, don't keep deleting files to resolve it. Look for the exact missing file or package in the error, then check which package provides it and whether that package is installed. The joystick package conflict could be a separate problem.

Also check whether the deleted folder was under /etc or somewhere else. Package configuration files under /etc may need different recovery steps from ordinary installed files.

Reply to this answer
g52!clkdiv_904

If you can't get a usable text console, boot from a live flash drive and use it to access the installed system. You can then chroot into the installation and run the package repair there. Make sure you're working on the installed system rather than just reinstalling packages into the live session.

Pevnor+today:

If apt says it can't connect to the server, check the network connection and repository access before assuming the reinstall repaired anything.

Reply to this answer
34q~cork_691

The missing graphical desktop doesn't necessarily mean the whole system can't boot. If you have a backup of the deleted folder, you could restore it from a text console or a live flash drive. Without a backup, package recovery and the exact error are the better leads.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions