当前位置:   article > 正文

ubuntu 执行apt update时E: Method https has died unexpectedly! E: Sub-process https received signal 4.错误_gnutls_cpuid_override

gnutls_cpuid_override

运行的 Ubuntu Desktop 22.04 LTS 中添加任何其他存储库时遇到问题。安装是全新的。

当我尝试时,我面临以下问题 sudo apt update

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

每当我尝试添加存储库时,都会发生这种情况。我试图添加Docker和Sublime文本存储库,如下所示:

echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
  • 1
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
  • 1

当我删除内容时 sources.list.d, sudo apt update 工作正常。

解决办法参考
https://groups.google.com/g/linux.debian.bugs.dist/c/ItKoVDieSow
执行sudo apt 相关命令时添加 GNUTLS_CPUID_OVERRIDE=0x1 参数

sudo GNUTLS_CPUID_OVERRIDE=0x1 apt-get update 
  • 1

如果想要长期使用需要在/etc/environment文件中添加GNUTLS_CPUID_OVERRIDE=0x1
修改后使其永久化并在系统范围内进行
添加的样式

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/190999
推荐阅读
相关标签
  

闽ICP备14008679号