help restoring sources.list

New to Debian (Or Linux in general)? Ask your questions here!

help restoring sources.list

Postby Tupeelo » 2020-08-27 22:32

I'm back on Debian and tried to add non-free with a flunky mouse on a laptop and messed up my sources list

[W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:14
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:13
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:13
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:13
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:13
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:14
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:13
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:13
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:13
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list:13
*]
Online help is vague, can someone spare a few minutes, thanks.
Tupeelo
 
Posts: 23
Joined: 2018-11-10 14:10

Proper Sources.list

Postby Tupeelo » 2020-08-27 23:08

Does this look correct

[*root@Daisy:/etc/apt# cat sources.list
#

# deb cdrom:[Official Debian GNU/Linux Live 10.4.0 lxqt 2020-05-09T11:03]/ buster main

#deb cdrom:[Official Debian GNU/Linux Live 10.4.0 lxqt 2020-05-09T11:03]/ buster main

deb http://deb.debian.org/debian/ buster main
deb-src http://deb.debian.org/debian/ buster main

deb http://security.debian.org/debian-security buster/updates main
deb-src http://security.debian.org/debian-security buster/updates main


# buster-updates, previously known as 'volatile'





# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
] I just want to add my laptop wifi firmware.
Tupeelo
 
Posts: 23
Joined: 2018-11-10 14:10

Re: help restoring sources.list

Postby sgosnell » 2020-08-28 03:07

To add the firmware, you may or may not need to add contrib and nonfree repositories
Code: Select all
deb http://deb.debian.org/debian/ buster main contrib nonfree
I'm assuming the last line is not in the file, just a comment for here.
sgosnell
 
Posts: 779
Joined: 2011-03-14 01:49

Re: help restoring sources.list

Postby sunrat » 2020-08-28 05:39

Tupeelo wrote:Online help is vague, can someone spare a few minutes, thanks.


The Debian wiki looks the opposite of vague:
https://wiki.debian.org/SourcesList#Exa ... urces.list
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3181
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: help restoring sources.list

Postby Head_on_a_Stick » 2020-08-28 14:16

To prevent errors in /etc/apt/sources.list use this command to modify it:
Code: Select all
# apt edit-sources
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12485
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: help restoring sources.list

Postby Tupeelo » 2020-08-29 13:40

Thanks for all replies, new sources.list
[*/etc/apt$ cat sources.list
#

# deb cdrom:[Official Debian GNU/Linux Live 10.4.0 lxqt 2020-05-09T11:03]/ buster main

#deb cdrom:[Official Debian GNU/Linux Live 10.4.0 lxqt 2020-05-09T11:03]/ buster main

deb http://deb.debian.org/debian/ buster main
deb-src http://deb.debian.org/debian/ buster main

deb http://security.debian.org/debian-security buster/updates main
deb-src http://security.debian.org/debian-security buster/updates main

deb http://httpredir.debian.org/debian buster main non-free contrib
deb-src http://httpredir.debian.org/debian buster main non-free contrib

deb http://security.debian.org/debian-security buster/updates main contrib non-free
deb-src http://security.debian.org/debian-security buster/updates main contrib non-free



# buster-updates, previously known as 'volatile'

]

seems to work. NOW to get connman working ??
Tupeelo
 
Posts: 23
Joined: 2018-11-10 14:10

Re: help restoring sources.list

Postby sunrat » 2020-08-29 13:58

You have debian-security twice and main twice. Did you look at the wiki link I posted? You could just copy and paste from that. Probably don't need contrib and non-free for security either. And to make it really tidy and save a little time and bandwidth when updating, you could comment out the deb-src lines too unless you plan on building packages from source.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3181
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: help restoring sources.list

Postby Tupeelo » 2020-08-29 15:09

Final config

[*# deb cdrom:[Official Debian GNU/Linux Live 10.4.0 lxqt 2020-05-09T11:03]/ buster main

#deb cdrom:[Official Debian GNU/Linux Live 10.4.0 lxqt 2020-05-09T11:03]/ buster main

deb http://deb.debian.org/debian buster main
#deb-src http://deb.debian.org/debian buster main


deb http://deb.debian.org/debian-security/ buster/updates main
#deb-src http://deb.debian.org/debian-security/ buster/updates main

deb http://deb.debian.org/debian buster-updates main
#deb-src http://deb.debian.org/debian buster-updates main
]

contrib non-free gives error.
Tupeelo
 
Posts: 23
Joined: 2018-11-10 14:10

Re: help restoring sources.list

Postby Bulkley » 2020-08-29 15:13

What's with the ] at the bottom of the page?
Bulkley
 
Posts: 5992
Joined: 2006-02-11 18:35

Re: help restoring sources.list

Postby cuckooflew » 2020-08-29 17:45

I don't know, but it should not be in the sources.list file, it might cause problems,
It would be more clear if they used code boxes too.
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!
cuckooflew
 
Posts: 683
Joined: 2018-05-10 19:34
Location: Some where out west

Re: help restoring sources.list

Postby sunrat » 2020-08-29 22:16

Tupeelo wrote:contrib non-free gives error.

It should not. Post the error here, we are not psychic.
You don't generally need the cdrom lines after installation.

Change it to this:
Code: Select all
deb http://deb.debian.org/debian buster main contrib non-free
#deb-src http://deb.debian.org/debian buster main contrib non-free

deb http://deb.debian.org/debian-security/ buster/updates main
#deb-src http://deb.debian.org/debian-security/ buster/updates main

deb http://deb.debian.org/debian buster-updates main contrib non-free
#deb-src http://deb.debian.org/debian buster-updates main contrib non-free

then run apt update and post any errors.

sunrat breaks with credo and feeds fish :|
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3181
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: help restoring sources.list

Postby Tupeelo » 2020-08-30 00:50

Everything Works , including Wifi, ONE HAPPY FISH !


Thank You Sunrat.
Tupeelo
 
Posts: 23
Joined: 2018-11-10 14:10

Re: help restoring sources.list

Postby stevepusser » 2020-08-31 04:31

Tupeelo wrote:I'm back on Debian and tried to add non-free with a flunky mouse on a laptop and messed up my sources list
.....


The Evil Mastermind's Handbook clearly states that you should execute flunkies and minions that fail you in that manner, preferably involving trapdoors and monsters, though in this case, a cat should be enough for your mouse.
MX Linux packager and developer
User avatar
stevepusser
 
Posts: 11981
Joined: 2009-10-06 05:53


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable