Score:2

Apt error code 112

cn flag

I just reinstalled Ubuntu 18.04 and I run the first command after installation which is apt-get update and then these error came out for no reason

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#

and I didn't install the desktop environment yet

in flag
Is this Ubuntu Server 18.04 installation running inside a Docker container?
Hafiz Izat avatar
cn flag
No. This is a blank installation only with twm (xterm only) preinstalled
N0rbert avatar
zw flag
Please add the output of `id`, `grep -r ^deb /etc/apt --include="*.list"`, `apt update` to the question.
Hafiz Izat avatar
cn flag
The output is now updated. So you may check it again
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.