LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 06-16-2019, 05:23 PM   #1
rhandwor
Member
 
Registered: Oct 2005
Posts: 112

Rep: Reputation: 16
Post added a wrong name for a repository


I was trying to add a repository for seamonkey and I typed it wrong.
sudo nano /etc/apt/sources,list
I can find the list. I need to remove the bad line. I had a similar problem in Fedora and I used a Gvim text editor. What do I need to do to remove the bad line.
 
Old 06-16-2019, 07:13 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,012
Blog Entries: 5

Rep: Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857
You have a comma between sources and list, whereas it should be a dot.
 
Old 06-16-2019, 07:18 PM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware 14.2 current / ArcoLinux / Void Linux
Posts: 8,875

Rep: Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853
Code:
cd /etc/apt/
sudo mv sources,list sources.list
or
sudo mv -v /etc/apt/sources,list /etc/apt/sources.list
quick fix
if you created a new custom list, or disregard that and add the dot instead when you go to edit it

Last edited by BW-userx; 06-16-2019 at 07:20 PM.
 
Old 06-17-2019, 08:35 AM   #4
rhandwor
Member
 
Registered: Oct 2005
Posts: 112

Original Poster
Rep: Reputation: 16
I was able to get the sources. I was able to delete but it removed all sources. I need the update source for linux mint 19.1 so I can add it.
 
Old 06-17-2019, 08:40 AM   #5
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,012
Blog Entries: 5

Rep: Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857
Please paste the output from:

Code:
inxi -r
 
Old 06-17-2019, 08:41 AM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware 14.2 current / ArcoLinux / Void Linux
Posts: 8,875

Rep: Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853
Quote:
Originally Posted by rhandwor View Post
I was able to get the sources. I was able to delete but it removed all sources. I need the update source for linux mint 19.1 so I can add it.
yep that is what happens when you delete the sources.list As far as I know this is it.

apt repository list for Linux Mint

Last edited by BW-userx; 06-17-2019 at 08:44 AM.
 
Old 06-17-2019, 10:42 AM   #7
rhandwor
Member
 
Registered: Oct 2005
Posts: 112

Original Poster
Rep: Reputation: 16
I did a recheck and then I used
sudo gedit /etc/apt/sources.list I used gedit to make corrections and I got everything working.
Thanks for your help.
 
Old 06-17-2019, 12:19 PM   #8
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,012
Blog Entries: 5

Rep: Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857Reputation: 2857
Quote:
Originally Posted by BW-userx View Post
yep that is what happens when you delete the sources.list As far as I know this is it.

apt repository list for Linux Mint
For anyone else reading this in the future - DO NOT use that list. Not only is it old (2010!) but contains far more sources than you need.

If you need to regenerate the default sources in Mint, run Software Sources from the menu and click on "Restore the default settings".
 
1 members found this post helpful.
Old 06-17-2019, 01:08 PM   #9
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware 14.2 current / ArcoLinux / Void Linux
Posts: 8,875

Rep: Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853
Quote:
Originally Posted by hydrurga View Post
For anyone else reading this in the future - DO NOT use that list. Not only is it old (2010!) but contains far more sources than you need.

If you need to regenerate the default sources in Mint, run Software Sources from the menu and click on "Restore the default settings".
As far as I know this is it. maybe I should have put that in bold.

to expand on that .. know your sources kidds! and always back up your files before editing them, so you can use them to restore from (ones own) your screw ups.

Last edited by BW-userx; 06-17-2019 at 01:13 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 4 to 9 repository urls in one repository with custom name? RehanKhan Ubuntu 1 08-06-2014 11:54 AM
[SOLVED] using maverick - added one new repository but now can't add another repository gerryyy Linux - Software 6 02-16-2011 06:47 AM
Help: Added HDD gives no added free space? LouArnold Linux - Hardware 5 10-12-2009 11:27 AM
YUM: Repository already added, not adding again linmix Linux - Software 2 01-16-2005 11:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 03:34 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration