7

g++-6

 3 years ago
source link: https://droidyue.com/blog/2021/07/19/package-g-plus-plus-6-gcc-6-is-not-available-but-is-referred-to-by-another-package/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Gcc-6 G++-6 无法安装问题解决

Jul 19th, 2021

在 Ubuntu 20.04 安装gcc-6和g++-6 遇到这样的问题

sudo apt-get install gcc-6 g++-6 -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package gcc-6 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package g++-6 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
  • 打开源配置文件 sudo vim /etc/apt/sources.list
  • 在文件末尾增加 deb http://dk.archive.ubuntu.com/ubuntu/ bionic main universe 并保存退出
  • 执行更新 sudo apt update
  • 再次安装sudo apt-get install gcc-6 g++-6 -y 搞定。
droidyue_gzh_green_png.png

加入技术小黑屋官方电报群

Posted by androidyue Jul 19th, 2021Centos, Linux, Ubuntu, apt, deb, g++-6, gcc-6

« TransactionTooLargeException 问题分析与解决


Related Issues not found

Please contact @droidyuecom to initialize the comment


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK