26

My computer is overheating because I got too many desktop environments installed like: MATE, Cinnamon and XFCE. I uninstalled them, but XFCE failed to uninstall. I get this error.

 sudo apt-get purge xfce4
    Reading package lists... Error!
    E: Problem syncing the file - sync (5: Input/output error)
    E: The package lists or status file could not be parsed or opened.
MathCubes
  • 5,666
Liso
  • 15,377
  • 3
  • 51
  • 80

7 Answers7

28

Try this

sudo apt-get purge xfconf xfce4-utils xfwm4 xfce4-session xfdesktop4 exo-utils xfce4-panel xfce4-terminal  thunar

followed by

sudo apt autoremove
Zanna
  • 70,465
Meow
  • 1,357
11

Try these

sudo apt-get -f install
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get update

Now

sudo apt-get purge xfce4
Maythux
  • 84,289
  • FirstStrike@ubuntu13.04-desktop:~$ sudo apt-get -f install [sudo] password for FirstStrike: Reading package lists... Error! E: Unable to parse package file /var/lib/apt/lists/id.archive.ubuntu.com_ubuntu_dists_raring_main_binary-i386_Packages (1) E: The package lists or status file could not be parsed or opened. Didnt work – Liso Mar 04 '14 at 06:47
  • I'm trying remove xfce4 on Debian, I did the commands above and sudo apt-get autoremove , yet xfce4 show up in Display Manager and I still can get in xfce4 DE How to fix this? – AGT Feb 18 '20 at 02:43
8

In my case (Mint with cinnamon and XFCE) I did:

sudo apt-get -f install
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get update

THEN:

sudo apt-get purge xfce4  # failed

THEN:

sudo apt-get purge xfconf
sudo apt-get autoremove
sudo apt-get -f install
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get update
Zanna
  • 70,465
1

From this link

You can run the following to remove xfce from your computer, completely:

dpkg -l | grep .xfce. | xargs sudo apt-get purge --auto-remove --yes

1

Try this:

sudo apt purge ^xfce4*

Then:

sudo apt autoremove
Onluck
  • 46
0

First, check what is going to be removed

sudo dpkg -l | grep .xfce.

If you are ok with it, run this command

sudo apt autoremove --purge xfce*

Command explanation

# dpkg -l       lists all installed packages
# grep .xfce.   filters, so that only packages with keyword xfce within their names, listed
# purge         removes mentioned package
# autoremove    tries to remove dependency packages
Pran
  • 129
-3

try : sudo apt-get remove xfce4-* this helps in removing all linked packages, after you have executed sudo apt-get purge xfce4, of course.