为了账号安全,请及时绑定邮箱和手机立即绑定

Linux不支持的代理配置

Linux不支持的代理配置

呼啦一阵风 2021-04-09 08:32:29
我是linux的新手,我刚刚开始使用debian。我试图通过安装g ++apt-get install g++但这没用root@HP:/home/krzysztof# apt-get install g++Reading package lists... DoneBuilding dependency tree       Reading state information... DoneThe following additional packages will be installed:  g++-6 libstdc++-6-devSuggested packages:  g++-multilib g++-6-multilib gcc-6-doc libstdc++6-6-dbg libstdc++-6-docThe following NEW packages will be installed:  g++ g++-6 libstdc++-6-dev0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.Need to get 8,516 kB of archives.After this operation, 39.8 MB of additional disk space will be used.Do you want to continue? [Y/n] YErr:1 http://ftp.pl.debian.org/debian stretch/main amd64 libstdc++-6-dev             amd64 6.3.0-18+deb9u1  Unsupported proxy configured: 127.0.0.1://8888Ign:2 http://ftp.pl.debian.org/debian stretch/main amd64 g++-6 amd64     6.3.0-18+deb9u1Err:3 http://ftp.pl.debian.org/debian stretch/main amd64 g++ amd64 4:6.3.0-4  Unsupported proxy configured: 127.0.0.1://8888Err:1 http://security.debian.org/debian-security stretch/updates/main     amd64 libstdc++-6-dev amd64 6.3.0-18+deb9u1  Unsupported proxy configured: 127.0.0.1://8888Err:2 http://security.debian.org/debian-security stretch/updates/main     amd64 g++-6 amd64 6.3.0-18+deb9u1  Unsupported proxy configured: 127.0.0.1://8888E: Failed to fetch http://security.debian.org/debian-    security/pool/updates/main/g/gcc-6/libstdc++-6-dev_6.3.0-18+deb9u1_amd64.deb          Unsupported proxy configured: 127.0.0.1://8888E: Failed to fetch http://security.debian.org/debian-    security/pool/updates/main/g/gcc-6/g++-6_6.3.0-18+deb9u1_amd64.deb      Unsupported proxy configured: 127.0.0.1://8888E: Failed to fetch http://ftp.pl.debian.org/debian/pool/main/g/gcc-    defaults/g++_6.3.0-4_amd64.deb  Unsupported proxy configured:     127.0.0.1://8888E: Unable to fetch some archives, maybe run apt-get update or try with --    fix-missing?
查看完整描述

3 回答

?
一只斗牛犬

TA贡献1784条经验 获得超2个赞

创建文件/etc/apt/apt.conf并添加以下内容:

 "http://<IP>:<PORT>/";


查看完整回答
反对 回复 2021-04-16
  • 3 回答
  • 0 关注
  • 684 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信