在Ubuntu中安装软件时,提示: E: You don't have enough free space in /var/cache/apt/archives/.

在/var/cache/apt/archives/中没有足够的可用空间。提示如下:

在Ubuntu中安装软件时,提示: E: You don't have enough free space in /var/cache/apt/archives/.


/var/cache/apt/archives文件夹中的文件是使用sudo apt-get install appname时下载的安装文件,这些文件是可以清理的,若你系统空间不足的时候,可以想到从此处进行清理而获得空间。在我电脑下的文件有,如下:

[email protected]:~/linuxidc.com$ cd /var/cache/apt/archives
[email protected]:/var/cache/apt/archives$ ls
 

在Ubuntu中安装软件时,提示: E: You don't have enough free space in /var/cache/apt/archives/.

清理的方法很简单:

[email protected]:/var/cache/apt/archives$ sudo apt-get clean
[sudo] password for linuxidc:

再次查看的时候,*.deb文件都不存在了

在Ubuntu中安装软件时,提示: E: You don't have enough free space in /var/cache/apt/archives/.