Error installing and removing Midnight Commander

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
evfung

Error installing and removing Midnight Commander

Post by evfung »

i tried installing Midnight Commander via Synaptic, but i got an error. However, the package was still marked as installed and when I tried to remove it, i get this error.

Setting up mc (2:4.6.2~git20080311-4ubuntu1) ...
update-alternatives: unable to make /usr/share/man/fr.UTF-8/man1/view.1.gz.dpkg-tmp a symlink to /etc/alternatives/view.fr.UTF-8.1.gz: No such file or directory
dpkg: error processing mc (--configure):
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
mc
E: Sub-process /usr/bin/dpkg returned an error code (1)

And the package stays marked, and whenever i try to install or remove other software this errors always shows up.
I'm using Gloria. Any ideas on how to remove this.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Husse

Re: Error installing and removing Midnight Commander

Post by Husse »

/etc/alternatives/view.fr.UTF-8.1.gz: No such file or directory
That's odd - I have it :) and it's a link to /usr/share/man/fr.UTF-8/man1/vim.1.gz
So first try - make that (sym)link - root permissions are needed of course
Second try and (more than) a bit dangerous

Code: Select all

apt purge -f mc 
Locked

Return to “Software & Applications”