当我使用获得一些新包时
`sudo apt update
sudo apt install <packages>`
我总是收到类似这样的错误信息
`The following packages have unmet dependencies:
squid : Depends: libecap3 (>= 1.0.1) but it is not going to be installed
Depends: squid-common (>= 5.7-0ubuntu0.22.04.3) but it is not going to be installed
Depends: libdbi-perl but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).`
所以我总是执行 sudo apt --fix-broken install 但它也显示
`Use 'sudo apt autoremove' to remove them.
Suggested packages:
openjdk-11-demo openjdk-11-source
The following NEW packages will be installed:
openjdk-11-jdk-headless
0 upgraded, 1 newly installed, 0 to remove and 165 not upgraded.
1 not fully installed or removed.
Need to get 73.5 MB of archives.
After this operation, 81.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirror.kakao.com/ubuntu jammy-updates/main amd64 openjdk-11-jdk-headless amd64 11.0.21+9-0ubuntu1~22.04 [73.5 MB]
Err:1 http://mirror.kakao.com/ubuntu jammy-updates/main amd64 openjdk-11-jdk-headless amd64 11.0.21+9-0ubuntu1~22.04
Error reading from server - read (104: Connection reset by peer) [IP: 113.29.189.165 80]
E: Failed to fetch http://mirror.kakao.com/ubuntu/pool/main/o/openjdk-lts/openjdk-11-jdk-headless_11.0.21%2b9-0ubuntu1%7e22.04_amd64.deb Error reading from server - read (104: Connection reset by peer) [IP: 113.29.189.165 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?`
我想如果我使用代理服务器,那么我可以下载它。所以我尝试使用 squid 包在 ubuntu 中创建代理服务器,但我再次遇到了第一个错误消息
我想安装的每个软件包都显示错误消息,请拯救我免于错误,我快要疯了……谢谢你的每一个建议
当我在 R 中安装 libglpk-dev 下载 ChIPseeker 包时第一次遇到错误时,我尝试创建代理服务器,但失败了,并出现了同样的错误