Apt 错误代码 112

Apt 错误代码 112

我刚刚重新安装了 Ubuntu 18.04,并在安装后运行了第一个命令,然后apt-get update无缘无故地出现了这些错误

root@localhost:/home/hafizat# apt-get update 
Reading package lists.. 
Done 
E: Method gave invalid 400 URI Failure message: Could no 
t switch saved set-user-ID 
E: Method http has died unexpectedly! 
E: Sub-process http returned an error code (112)   
root@localhost:/home/hafizat# id
uid=0(root) gid=0(root) groups=0(root)
root@localhost:/home/hafizat# grep -r ^deb /etc/apt --include="*.list"
/etc/apt/sources.list:deb http://ports.ubuntu.com/ubuntu-ports bionic main restricted universe multiverse
/etc/apt/sources.list:deb http://ports.ubuntu.com/ubuntu-ports bionic-security main restricted universe multiverse
/etc/apt/sources.list:deb http://ports.ubuntu.com/ubuntu-ports bionic-updates main restricted universe multiverse
/etc/apt/sources.list:deb http://ports.ubuntu.com/ubuntu-ports bionic-backports main restricted universe multiverse
root@localhost:/home/hafizat# apt update
Reading package lists... Done
E: Method gave invalid 400 URI Failure message: Could not switch saved set-user-ID
E: Method http has died unexpectedly!
E: Sub-process http returned an error code (112)
root@localhost:/home/hafizat#

我还没有安装桌面环境

相关内容