我正在尝试更新gcc版本的debian,但还没有运气。
我遵循了这个答案中给出的指示,并将最后的命令改为apt-get install gcc-5.4 g++-5.4,但是最新的gcc版本似乎没有可安装的包。甚至连aptitude search gcc-5都没有列出任何东西。
编辑:添加cat /etc/*-release的输出
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"发布于 2016-10-20 15:00:49
gcc的最新版本可以通过在debian上使用apt钉扎进行测试来安装:
cd /etc/apt/sources.list.d/
touch testing.list将此deb http://ftp.us.debian.org/debian testing main contrib non-free添加到testing.list文件中
现在移到目录中
/etc/apt/preferences.d/
再加上这个
Package: *
Pin: release a=testing
Pin-Priority: 100到新创建的文件testing.list。
apt-get update
sudo apt-get install -t testing gcc请注意,使用-t testing可以告诉apt-get对install gcc进行上述步骤中配置的源测试。
https://unix.stackexchange.com/questions/317675
复制相似问题