赞
踩
运行的 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.
每当我尝试添加存储库时,都会发生这种情况。我试图添加Docker和Sublime文本存储库,如下所示:
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
当我删除内容时 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
如果想要长期使用需要在/etc/environment文件中添加GNUTLS_CPUID_OVERRIDE=0x1
修改后使其永久化并在系统范围内进行
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。