首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >当我在ubuntu终端中编写用于安装g++编译器的代码:"sudo apt install g++“时,它显示了以下错误

当我在ubuntu终端中编写用于安装g++编译器的代码:"sudo apt install g++“时,它显示了以下错误
EN

Ask Ubuntu用户
提问于 2019-06-02 21:36:40
回答 1查看 2K关注 0票数 0
代码语言:javascript
复制
sudo apt install g++
[sudo] password for kpsd4050: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  g++-7 libstdc++-7-dev
Suggested packages:
  g++-multilib g++-7-multilib gcc-7-doc libstdc++6-7-dbg libstdc++-7-doc
The following NEW packages will be installed:
  g++ g++-7 libstdc++-7-dev
0 upgraded, 3 newly installed, 0 to remove and 450 not upgraded.
Need to get 9,035 kB of archives.
After this operation, 40.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libstdc++-7-dev amd64 7.3.0-27ubuntu1~18.04
  404  Not Found [IP: 91.189.88.149 80]
Err:2 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 g++-7 amd64 7.3.0-27ubuntu1~18.04
  404  Not Found [IP: 91.189.88.149 80]
Err:3 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 g++ amd64 4:7.3.0-3ubuntu2.1
  404  Not Found [IP: 91.189.88.149 80]
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/g/gcc-7/libstdc++-7-dev_7.3.0-27ubuntu1~18.04_amd64.deb  404  Not Found [IP: 91.189.88.149 80]
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/g/gcc-7/g++-7_7.3.0-27ubuntu1~18.04_amd64.deb  404  Not Found [IP: 91.189.88.149 80]
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/g/gcc-defaults/g++_7.3.0-3ubuntu2.1_amd64.deb  404  Not Found [IP: 91.189.88.149 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
EN

回答 1

Ask Ubuntu用户

发布于 2019-06-02 21:57:02

尝试sudo apt-get update,然后是sudo apt install g++

票数 4
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1148146

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档