Ubuntu apt get install 软件时出现 E: You don‘t have enough free space in /var/cache/apt/archives/. 解决方案

出现该问题是/var下空间不足,
可尝试apt install clean
清除/var/log内容等方法,
如果还是不行,做个文件路径软连接映射即可
例如:

mkdir -p /home/root/var_archives/partial
sudo rm -rf /var/cache/apt/archives
sudo ln -s "/home/root/var_archives" /var/cache/apt/archives

完成/var/cache/apt/archives映射至/home/root/var_archives,空间充足即可完成安装任务了

huaxi@ubuntu:~/ge550v1$ sudo usermod -aG docker lili huaxi@ubuntu:~/ge550v1$ df -i /home Filesystem Inodes IUsed IFree IUse% Mounted on /dev/sda1 3670016 1040297 2629719 29% / huaxi@ubuntu:~/ge550v1$ docker system df -v Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.24/system/df: dial unix /var/run/docker.sock: connect: permission denied huaxi@ubuntu:~/ge550v1$ quota -vs huaxi The program 'quota' is currently not installed. You can install it by typing: sudo apt install quota huaxi@ubuntu:~/ge550v1$ sudo apt install quota [sudo] password for huaxi: Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: docbook-dsssl docbook-xml docbook-xsl fonts-texgyre libfile-homedir-perl libfile-which-perl libosp5 libostyle1c2 libsgmls-perl libsp1c2 openjade preview-latex-style ps2eps sgml-data sgmlspl sp tex-gyre texlive-bibtex-extra texlive-font-utils texlive-fonts-recommended texlive-fonts-recommended-doc texlive-latex-recommended-doc texlive-luatex texlive-math-extra tipa xsltproc Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: libtirpc1 Suggested packages: libnet-ldap-perl rpcbind default-mta | mail-transport-agent The following NEW packages will be installed: libtirpc1 quota 0 upgraded, 2 newly installed, 0 to remove and 137 not upgraded. Need to get 325 kB of archives. After this operation, 1,668 kB of additional disk space will be used. E: You don't have enough free space in /var/cache/apt/archives/. huaxi@ubuntu:~/ge550v1$
09-04
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值