LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-07-2020, 03:47 PM   #1
86153c1d-3ebd-4643-8885
Member
 
Registered: Feb 2020
Posts: 34

Rep: Reputation: 8
Different versions of sources.list


I tried to download something by adding a domain to my sources.list, I didn't know how to save it properly so I closed my terminal and I ended up with a lot of different versions for the same file but I don't know which one should I delete.
I also want to remove that domain since it can't connect to it and it throws an error every time I run sudo apt update.

Here is a screenshot of the various files:
https://upload.vaa.red/2difdt#9f004b...03e91fb1616f88

And here is a screenshot of the URL that gives me an error:
https://upload.vaa.red/2gnshu#4e543a...cee0ee3493b376

Thanks!
 
Old 02-07-2020, 03:59 PM   #2
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
It's a BAD idea to be adding non-Debian repos to your sources.lst. This basically defeats one of the main security/integrity features of GNU/Linux.
 
Old 02-07-2020, 04:55 PM   #3
86153c1d-3ebd-4643-8885
Member
 
Registered: Feb 2020
Posts: 34

Original Poster
Rep: Reputation: 8
Quote:
Originally Posted by vtel57 View Post
It's a BAD idea to be adding non-Debian repos to your sources.lst. This basically defeats one of the main security/integrity features of GNU/Linux.
I know, but how do I install something that's not on the Debian repository? I know I can install software with .deb but sometimes there's no option for that and I have to install from the terminal.
I'm downloading FLOSS stuff BTW, the only proprietary thing that I have installed is Steam.
 
Old 02-07-2020, 05:05 PM   #4
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Meh... I wouldn't worry too much about Steam. I haven't run Deb in many years, but when I did, I would compile non-Deb apps from source or install binaries to /opt. Of course, neither of these methods is recommended by the "Debian Way", the Debian Philosophy.

Anyway, if there are not .deb downloads on the sites where you're searching for certain applications, you'll be forced to use other methods. There are MANY Debian users here at LQ.org. Please stand by for some more useful information and tips from them.

Luck with it... and have a great weekend!

~Eric
 
1 members found this post helpful.
Old 02-07-2020, 05:22 PM   #5
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,173

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
From your screenshot the source line is invalid. Looking at the site you did not include what version of Debian to use.
Your line just says "Debian_" no version number that I can see.
http://download.opensuse.org/reposit...ild/Debian_10/

For the multiple files, look at the one with the ~ on the end. The file size is 0, so is safe to delete.
I see you were using Vim to edit, read up on on the .swo and .swp files here: http://ttm.github.io/research/2017/1...m-swp-swo.html
 
Old 02-08-2020, 05:08 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
...have a good look at all the .list files under /etc/apt.

Show us the output of
Code:
apt update
Read this.
 
Old 02-08-2020, 09:13 AM   #7
86153c1d-3ebd-4643-8885
Member
 
Registered: Feb 2020
Posts: 34

Original Poster
Rep: Reputation: 8
Quote:
Originally Posted by vtel57 View Post
Meh... I wouldn't worry too much about Steam. I haven't run Deb in many years, but when I did, I would compile non-Deb apps from source or install binaries to /opt. Of course, neither of these methods is recommended by the "Debian Way", the Debian Philosophy.

Anyway, if there are not .deb downloads on the sites where you're searching for certain applications, you'll be forced to use other methods. There are MANY Debian users here at LQ.org. Please stand by for some more useful information and tips from them.

Luck with it... and have a great weekend!

~Eric
No, I know Steam is not going to install any kind of malware or security issue.

I don't know how to compile non-deb apps or how to install binaries, I should check that out. And I know it's not recommended but Debian repository is kinda limited, it doesn't even have Oracle VirtualBox which is a pretty common software and it's FLOSS.

Thanks, you too have a great weekend!
 
2 members found this post helpful.
Old 02-08-2020, 09:23 AM   #8
86153c1d-3ebd-4643-8885
Member
 
Registered: Feb 2020
Posts: 34

Original Poster
Rep: Reputation: 8
Quote:
Originally Posted by uteck View Post
From your screenshot the source line is invalid. Looking at the site you did not include what version of Debian to use.
Your line just says "Debian_" no version number that I can see.
http://download.opensuse.org/reposit...ild/Debian_10/

For the multiple files, look at the one with the ~ on the end. The file size is 0, so is safe to delete.
I see you were using Vim to edit, read up on on the .swo and .swp files here: http://ttm.github.io/research/2017/1...m-swp-swo.html
Mmm, okay, I don't want to install it anymore, so I should go to the /etc/apt/sources.list and delete the source line, right?

Great, I'll delete the one with "~". I don't want the content within the .swo and the .swp files, since it is the same that's in the normal file but with the source line that doesn't work. Is it safe to delete them? I read the link you provide me but I'm not sure I understood everything.
 
1 members found this post helpful.
Old 02-08-2020, 09:25 AM   #9
86153c1d-3ebd-4643-8885
Member
 
Registered: Feb 2020
Posts: 34

Original Poster
Rep: Reputation: 8
Quote:
Originally Posted by ondoho View Post
...have a good look at all the .list files under /etc/apt.

Show us the output of
Code:
apt update
Read this.
I have taken a good look at the .list files, so what? I still don't know if it's safe to delete those.

The second URL I provided has a screenshot of the output of that command. I have already read about that, I trying not to fuck it up but since I'm a noob it's complicated. Thanks!
 
  


Reply



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
"Type 'sudo' is not known on line 2 in source list /etc/apt/sources.list.d/signal-xenial.list" jameswilson0609 Linux - Newbie 3 05-29-2019 12:04 PM
[SOLVED] Error: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list:22 Commomore Linux - Newbie 12 02-05-2019 12:24 AM
E: Type 'sudo' is not known on line 1 in source list /etc/apt/sources.list.d/mono-official.list 221B Linux - Newbie 6 09-07-2017 12:14 PM
'E:Malformed line 54 in source list /etc/apt/sources.list (dist parse), E:The list of vsssuccess@gmail.com Linux - Desktop 1 11-17-2010 08:17 AM
Need Recommendation for Debian Etch sources.list ( /etc/apt/sources.list ) forgox Debian 6 05-05-2007 01:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:19 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
Open Source Consulting | Domain Registration