0

When I want to update my vm I got the error:

E: Method https has died unexpectedly!
E: Sub-process https received signal 4.

I searched the net and with this answer when I run sudo GNUTLS_CPUID_OVERRIDE=0x1 apt-get update with non root user the issue is fixed. But when I add the line export GNUTLS_CPUID_OVERRIDE=0x1 to both /root/.bashrc and myuser/.bashrc and execute source .bashrc the problem is not fixed.

When I login as root user (ssh myuser@host then whoami results myuser. then sudo -i and executing whoami results root in my VM.) and run the command without sudo it's ok. But even with the root user and the sudo prefix, the problem exists.

1 Answers1

0

You can use sudo GNUTLS_CPUID_OVERRIDE=0x1 apt-get update every time you want to update packages, but if you're going to make it permanent and system-wide, you must add export GNUTLS_CPUID_OVERRIDE=0x1 to the /etc/environment file.