完美解决ubuntu报错:ppa.launchpad与404 Not Found [IP: 91.189.95.85 80]
报错描述:
解决方法:cd /etc/apt/sources.list.d
注释掉gedit /etc/apt/sources.list该路径下的内容:
#deb http://apt.tvheadend.org/stable xenial main
#deb-src http://apt.tvheadend.org/stable xenial main
#deb http://ppa.launchpad.net/v-launchpad-jochen-sprickerhof-de/pcl/ubuntu maverick main
再次进去list.d目录下
ls
bazel.list nvidia-ml.list
bazel.list.save nvidia-ml.list.save
boost-latest-ubuntu-ppa-xenial.list ubuntu-toolchain-r-ubuntu-test-xenial.list
boost-latest-ubuntu-ppa-xenial.list.save ubuntu-toolchain-r-ubuntu-test-xenial.list.save
cuda.list v-launchpad-jochen-sprickerhof-de-ubuntu-pcl-xenial.list
cuda.list.save v-launchpad-jochen-sprickerhof-de-ubuntu-pcl-xenial.list.save
deadsnakes-ubuntu-ppa-xenial.list
修改名字或删除上述报错的指定文件:
mv boost-latest-ubuntu-ppa-xenial.list ./boost1 && mv boost-latest-ubuntu-ppa-xenial.list.save boost2.save
再次更新还是不行,再次修改名字防止加载到:
root@ovo:/etc/apt/sources.list.d# mv boost1 teste.boost1
root@ovo:/etc/apt/sources.list.d# mv boost2.save teste.boost2
root@ovo:/etc/apt/sources.list.d# ls
bazel.list teste.boost1
bazel.list.save teste.boost2
cuda.list ubuntu-toolchain-r-ubuntu-test-xenial.list
cuda.list.save ubuntu-toolchain-r-ubuntu-test-xenial.list.save
deadsnakes-ubuntu-ppa-xenial.list v-launchpad-jochen-sprickerhof-de-ubuntu-pcl-xenial.list
nvidia-ml.list v-launchpad-jochen-sprickerhof-de-ubuntu-pcl-xenial.list.save
nvidia-ml.list.save
再次更新还是不行,为了保证删掉带来的风险,现在将它一点到其他路径:
mv teste.boost2 /root/ && mv teste.boost1 /root
root@ovo:/etc/apt/sources.list.d# sl
bash: sl: command not found
root@ovo:/etc/apt/sources.list.d# ls
bazel.list deadsnakes-ubuntu-ppa-xenial.list ubuntu-toolchain-r-ubuntu-test-xenial.list.save
bazel.list.save nvidia-ml.list v-launchpad-jochen-sprickerhof-de-ubuntu-pcl-xenial.list
cuda.list nvidia-ml.list.save v-launchpad-jochen-sprickerhof-de-ubuntu-pcl-xenial.list.save
cuda.list.save ubuntu-toolchain-r-ubuntu-test-xenial.list
root@ovo:/etc/apt/sources.list.d# mv teste.boost2 /root/ && mv teste.boost1 /root
mv: cannot stat 'teste.boost2': No such file or directory
再次更新类似的再把相应的文件移动到其他路径:
Err:14 http://ppa.launchpad.net/v-launchpad-jochen-sprickerhof-de/pcl/ubuntu xenial Release
404 Not Found [IP: 91.189.95.85 80]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/v-launchpad-jochen-sprickerhof-de/pcl/ubuntu xenial Release' does not have a Release file.
移动后:
/etc/apt/sources.list.d# mv v-launchpad-jochen-sprickerhof-de-ubuntu-pcl-xenial.list /root && mv v-launchpad-jochen-sprickerhof-de-ubuntu-pcl-xenial.list.save /root
root@ovo:/etc/apt/sources.list.d# ls
bazel.list cuda.list.save nvidia-ml.list.save
bazel.list.save deadsnakes-ubuntu-ppa-xenial.list ubuntu-toolchain-r-ubuntu-test-xenial.list
cuda.list nvidia-ml.list ubuntu-toolchain-r-ubuntu-test-xenial.list.save
再次更新:
/etc/apt/sources.list.d# apt update
Hit:1 http://storage.googleapis.com/bazel-apt stable InRelease
Ign:2 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 InRelease
Ign:3 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 InRelease
Hit:4 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 Release
Hit:6 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 Release
Hit:8 http://mirrors.aliyun.com/ubuntu xenial InRelease
Hit:9 http://mirrors.aliyun.com/ubuntu xenial-updates InRelease
Hit:10 http://mirrors.aliyun.com/ubuntu xenial-security InRelease
Hit:11 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu xenial InRelease
Hit:12 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
166 packages can be upgraded. Run 'apt list --upgradable' to see them.
完美解决。