尝试一下更换软件源
cd /etc/apt/ ll 能看到sources.list文件
vim sources.list 失败,没装vim,安装vim
apt install vim 无法安装,尼玛
更新apt apt update
无法更新,报错:
Ubuntu中apt更新失败:GPG error: https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu180,,,,,
你妈卖B!死循环 使用vi, gedit,统统没装,,,喔你妈
只好使用命令修改软件源了:
echo "deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse" > /etc/apt/sources.list
好使!
更新apt apt update
再次失败,报错:
Couldn't create temporary file /tmp/apt.conf.GSzv74 for passing config to,,,
你妈卖逼啊! 修改目录权限 chmod 777 /tmp
再次更新apt apt update
总算大部分更新成功! 有个别报错:
W: GPG error: https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu1804/x86_64? InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 此处显示一个公钥
去你爹个懒子!
赶紧安装vim,你妈逼的 apt install vim 成功!
再解决上面那个报错 执行命令: echo 'deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /' > /etc/apt/sources.list.d/cuda.list 再次更新apt apt update 仍然报同样的错误 ?
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 上面显示的公钥
再次更新apt apt update 成功!
现在再使用apt安装各种软件都没问题了! 去你爹个懒子! O了!
|