Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 7832  / 2 Years ago, thu, october 20, 2022, 4:25:13

I am having a problem when trying to add any additional repositories in my Ubuntu Desktop 22.04 LTS running on a VM in ESXi 7. The installation is fresh.


I'm facing the below problem when I try to sudo apt update


...
Reading package lists... Done
E: Method https has died unexpectedly!
E: Sub-process https received signal 4.


This happens whenever I try to add repositories. I was trying to add Docker and Sublime text repositories as below:


echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

When I remove the contents of sources.list.d, sudo apt update works fine.


Any help would be appreciated! Thanks


Edit:


On a related note, I also can't clone any repo. I tried using curl, wget and git clone. All these commands, give me the error:


error: git-remote-https died of signal 4

More From » apt

 Answers
0
sudo GNUTLS_CPUID_OVERRIDE=0x1 apt-get update 

this works for me


according to this
https://groups.google.com/g/linux.debian.bugs.dist/c/ItKoVDieSow


and you need to add ~/.bashrc with this


export  GNUTLS_CPUID_OVERRIDE=0x1 

for long-term use


[#339] Friday, October 21, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
terneive

Total Points: 329
Total Questions: 117
Total Answers: 105

Location: Denmark
Member since Tue, Oct 18, 2022
2 Years ago
terneive questions
Thu, Dec 30, 21, 01:32, 2 Years ago
Sun, Nov 7, 21, 16:12, 3 Years ago
Mon, May 22, 23, 21:18, 1 Year ago
;