Archive directory /var/cache/apt/archives/partial is missing.
时间:2019-11-20 08:53:09 来源:igfitidea点击:
在Debian安装mysql时,报错
apt-get install mysql-server-5.0 mysql-common
The following NEW packages will be installed: libdbd-mysql-perl libmysqlclient15off mysql-client-5.0 mysql-common mysql-server-5.0 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. E: Archive directory /var/cache/apt/archives/partial is missing.
原因
可能在删除.deb安装文件时,把/var/cache/apt/archives目录删了。
只要重新创建就好。
使用root创建:
# mkdir -p /var/cache/apt/archives/partial # apt-get autoclean
apt-get autoclean表示清除本地本地存储的软件包文件。
再次安装mysql
# apt-get install mysql-server-5.0 mysql-common