这是我的sources.list:
#
# 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: Impossible de récupérer https://bigsearcher.com/mirrors/gcc/releases/gcc-9.2.0/dists/main/contrib/binary-amd64/Packages 404 Not Found
基本上是英语:Could not get https:// ... 404 Not Found
。
我看着http://ftp.fr.debian.org/debian/,发现main contrib non-free
一词对应于ftp文件夹中的文件夹。
但是bigsearcher源代码树中没有此类文件夹,如果我将行尾留空,则会出现错误:
Malformed entry 17 in list file /etc/apt/sources.list
This是我需要的gcc版本。
我该如何实现?