Line editing in xfce

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Jack054
Level 1
Level 1
Posts: 34
Joined: Sun Oct 15, 2017 10:30 pm

Line editing in xfce

Post by Jack054 »

How do I edit out a stray "2" from the line "/etc/apt/apt.conf.d/00recommends in xfce18.2"?

I cannot download app updates or open some other functions because of the stray "2" (I don't know how the "2" got entered on the line)
Thanks
Jack054
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.
User avatar
silfox2000
Level 3
Level 3
Posts: 108
Joined: Fri Sep 08, 2017 8:13 am

Re: Line editing in xfce

Post by silfox2000 »

Code: Select all

sudo nano /etc/apt/apt.conf.d/00recommends
After editing Ctrl+O for saving and Ctrl+X for exiting.
Mine contains 2 lines:

Code: Select all

APT::Install-Recommends "false";
Aptitude::Recommends-Important "false";
User avatar
all41
Level 19
Level 19
Posts: 9498
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Line editing in xfce

Post by all41 »

APT::Install-Recommends "false";
Aptitude::Recommends-Important "false";

Yes--same here
Everything in life was difficult before it became easy.
User avatar
Pjotr
Level 23
Level 23
Posts: 19884
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Line editing in xfce

Post by Pjotr »

Off topic: if I were you, I'd set Install-Recommends to "true"....
https://sites.google.com/site/easylinux ... g-software
(item 1.2.1, left column)

And many people find the graphical text editor xed, easier to use than nano:

Code: Select all

gksudo xed /etc/apt/apt.conf.d/00recommends
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
User avatar
silfox2000
Level 3
Level 3
Posts: 108
Joined: Fri Sep 08, 2017 8:13 am

Re: Line editing in xfce

Post by silfox2000 »

Pjotr wrote:Off topic: if I were you, I'd set Install-Recommends to "true"....
Thanks for the tip.
Locked

Return to “Xfce”