问题描述
在 ubuntu-base-24.04-base-riscv64 安装软件,出现错误:
root@licheervnano-1c7e:~# apt download vim
E: Method http has died unexpectedly!
E: Sub-process http received signal 4.
解决方案
修改 /etc/services 文件,注释掉http行:
#http 80/tcp www # WorldWideWeb HTTP
原因分析
/etc/services 的优先级极其高。导致 apt 的访问端口发生了更改。