我在虚拟机上运行 ubuntu 17.04。我尝试安装 telegram-desktop,结果出现以下信息:
E: Failed to fetch http://212.131.93.225:80/data/0056b3fbd3afd739/it.archive.ubuntu.com/ubuntu/pool/universe/libg/libgsm/libgsm1_1.0.13-4_amd64.deb Redirection loop encountered
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
我运行了一个apt-get update
,没有任何问题,但它仍然给我同样的错误,执行apt-get install telegram-desktop --fix-missing
会导致同样的结果,并出现额外的“ installation aborted
”消息。无论如何,我似乎无法安装这个程序。
我尝试寻找这种错误,但我所看到的一切都与失败的人有关apt-get update
,但这对我来说是唯一真正起作用的方法。
编辑 在尝试了@Charles Green 的命令后,什么都没发生。几天前我尝试时得到了grep: /etc/apt/sources.list.d/*: No such file or directory
。我今天再次尝试,一切都很好 - 然后我尝试对 p7zip 执行 apt-get install,它成功了,这是几天来的第一次。我不知道。
尝试@David Foerster 的命令后,我得到了
claudio@claudio-VirtualBox:~$ apt-cache policy libgsm1
libgsm1:
Installed: (none)
Candidate: 1.0.13-4
Version table:
1.0.13-4 500
500 http://it.archive.ubuntu.com/ubuntu zesty/universe amd64 Packages
和
claudio@claudio-VirtualBox:~$ LC_MESSAGES=POSIX wget --progress=dot -S -O /dev/null 'http://it.archive.ubuntu.com/ubuntu/pool/universe/libg/libgsm/libgsm1_1.0.13-4_amd64.deb'
--2017-12-20 01:40:52-- http://it.archive.ubuntu.com/ubuntu/pool/universe/libg/libg%E2%80%8C%E2%80%8Bsm/libgsm1_1.0.13-4_%E2%80%8C%E2%80%8Bamd64.deb
Resolving it.archive.ubuntu.com (it.archive.ubuntu.com)... 90.147.160.69
Connecting to it.archive.ubuntu.com (it.archive.ubuntu.com)|90.147.160.69|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 404 Not Found
Server: nginx
Date: Wed, 20 Dec 2017 00:40:52 GMT
Content-Type: text/html
Content-Length: 162
Connection: keep-alive
2017-12-20 01:40:52 ERROR 404: Not Found.
--2017-12-20 01:40:52-- http://it.archive.ubuntu.com/ubuntu/pool/universe/libg/libg%E2%80%8C%E2%80%8Bsm/libgsm1_1.0.13-4_%E2%80%8C%E2%80%8Bamd64.deb
Reusing existing connection to it.archive.ubuntu.com:80.
HTTP request sent, awaiting response...
HTTP/1.1 404 Not Found
Server: nginx
Date: Wed, 20 Dec 2017 00:40:52 GMT
Content-Type: text/html
Content-Length: 162
Connection: keep-alive
2017-12-20 01:40:52 ERROR 404: Not Found.
答案1
我在 ubuntu 上使用电报时也遇到了同样的问题。尝试通过 ppa 安装它
sudo add-apt-repository ppa:atareao/telegram
sudo apt-get update
sudo apt-get install telegram