Unix 如何在sources.list中正确添加源

Unix 如何在sources.list中正确添加源,unix,gcc,debian,apt,Unix,Gcc,Debian,Apt,以下是我的资料来源 # # deb cdrom:[Debian GNU/Linux 9.9.0 _Stretch_ - Official amd64 DVD Binary-1 20190427-10:30]/ stretch contrib main # deb cdrom:[Debian GNU/Linux 9.9.0 _Stretch_ - Official amd64 DVD Binary-1 20190427-10:30]/ stretch contrib main deb ht

以下是我的资料来源

# 

# deb cdrom:[Debian GNU/Linux 9.9.0 _Stretch_ - Official amd64 DVD Binary-1 20190427-10:30]/ stretch contrib main

# deb cdrom:[Debian GNU/Linux 9.9.0 _Stretch_ - Official amd64 DVD Binary-1 20190427-10:30]/ stretch contrib main

deb http://ftp.fr.debian.org/debian/ stretch main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ stretch main

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

# stretch-updates, previously known as 'volatile'
deb http://ftp.fr.debian.org/debian/ stretch-updates main contrib contrib non-free
deb-src http://ftp.fr.debian.org/debian/ stretch-updates main contrib
我需要下载版本高于或等于gcc7的g++(gcc)

但是,当我执行
sudo apt get install g++
然后执行
TAB
(获取可用软件包列表)时,没有一个g++高于6(我已经拥有的版本)

因此,我尝试添加以下行:

deb [trusted=yes] https://bigsearcher.com/mirrors/ main contrib non-free
deb [trusted=yes] https://bigsearcher.com/mirrors/gcc/releases/gcc-9.2.0/ main contrib non-free
但我有一个错误:
E:不可能https://bigsearcher.com/mirrors/gcc/releases/gcc-9.2.0/dists/main/contrib/binary-amd64/Packages  404未找到

基本上是英文:
无法获取https://。。。404未找到

我查看了一下,发现
main contrib non free
这几个词与ftp文件夹中的文件夹相对应

但是bigsearcher源代码树中没有这样的文件夹,如果我让行的结尾为空,我会得到一个错误:
列表文件/etc/apt/sources.list中格式错误的条目17

是我需要的gcc版本


如何实现这一点?

您使用的是debian的哪个发行版?我使用的是debian 9.0,但从那以后我改用了debian 10