1、E: 您在 /var/cache/apt/archives/ 上没有足够的可用空间。
问题来源:在安装cuda的时候,报 /var/cache/apt/archives/ 空间不足。因为解压后文件需要差不多需要3000多MB的空间,看了一下分配的空间确实满足不了。如何解决呢?
解决方案:可以先通过sudo apt autoclean && sudo apt clean清理一下通过apt安装的没有用的安装包。如果空间还是不够,可以使用软链接链接到有足够空间的目录:
thanlon@plus-book:~$ sudo mkdir -p archives/partial # 创建archives文件夹
thanlon@plus-book:~$ sudo rm -rf /var/cache/apt/archives/ # 删除archives文件夹
thanlon@plus-book:~$ sudo ln -s /home/thanlon/archives /var/cache/apt/archives # 链接到/home/thanlon/archives
参考文章:
https://blog.csdn.net/horacehe16/article/details/82978828
PS:我的站点:https://www.blueflags.cn
技术交流加微信:
转载:https://blog.csdn.net/Thanlon/article/details/101274838
查看评论