LinuxQuestions.org
Review your favorite Linux distribution.
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 12-16-2013, 01:40 AM   #1
ccc
Member
 
Registered: Oct 2002
Posts: 100

Rep: Reputation: 0
update-alternatives: error: unable to read link `/etc/alternatives/editor': Invalid a


Hi

I have Wheezy with LXDE installed.
If I try to set default text editor, then I get this error:
Code:
# update-alternatives --config editor
update-alternatives: error: unable to read link `/etc/alternatives/editor': Invalid argument
Knows anyone how to solve this?

Last edited by ccc; 12-16-2013 at 01:41 AM.
 
Old 12-16-2013, 01:51 AM   #2
ccc
Member
 
Registered: Oct 2002
Posts: 100

Original Poster
Rep: Reputation: 0
I have deleted the following file:
Code:
# rm /etc/alternatives/editor
and now it seems to work:
Code:
# update-alternatives --config editor
There are 3 choices for the alternative editor (providing /usr/bin/editor).

  Selection    Path                Priority   Status
------------------------------------------------------------
  0            /bin/nano            40        auto mode
  1            /bin/nano            40        manual mode
  2            /usr/bin/vim.basic   30        manual mode
  3            /usr/bin/vim.tiny    10        manual mode

Press enter to keep the current choice[*], or type selection number:
 
  


Reply

Tags
default, editor, wheezy



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
How to add a program to update-alternatives Mountain Linux - Software 14 06-25-2023 12:14 PM
[SOLVED] update alternatives problem while installing lapack Tonystark Linux - Newbie 7 07-24-2013 11:35 PM
How do you use update-alternatives --set? vwr0527 Linux - Newbie 1 11-07-2007 11:49 PM
Please help to explain the syntax for 'update-alternatives' davidas Linux - Newbie 1 04-11-2004 06:22 AM
Symbolic link in /etc/alternatives not working as intended davidas Debian 2 04-10-2004 07:09 PM

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

All times are GMT -5. The time now is 08:02 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