E:归档目录/var/cache/apt/archives/partial丢失错误和解决方法
时间:2020-01-09 10:38:00 来源:igfitidea点击:
当使用以下命令在Debian下安装mysql-server软件包:
apt-get install mysql-server-5.0 mysql-common
报错:
Reading package lists… Done Building dependency tree Reading state information… Done The following packages were automatically installed and are no longer required: libdevel-symdump-perl liburi-perl libhtml-parser-perl libapr1 libhtml-tree-perl libpq5 libhtml-tagset-perl libwww-perl Use ‘apt-get autoremove’ to remove them. The following extra packages will be installed: libdbd-mysql-perl libmysqlclient15off mysql-client-5.0 Suggested packages: tinyca 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.**
E:存档目录/var/cache/apt/archives/partial丢失。
我该如何解决该问题?
当您尝试通过从/var/cache/apt/archives /目录中删除下载的* .deb文件来释放磁盘空间时,会出现此问题。
您可以通过如下创建目录来解决此问题。
以root用户身份登录并执行以下命令:
# mkdir -p /var/cache/apt/archives/partial # apt-get autoclean
输出示例:
Reading package lists... Done Building dependency tree Reading state information... Done
最后一条命令将清除本地本地存储的软件包文件。
这允许高速缓存长时间保持,而不会增长到无法控制的程度,即磁盘空间问题。
不要使用rm命令或rmdir命令从/var/cache/apt /中删除文件或子目录。
现在,您可以安装所需的软件包。
# apt-get install mysql-server-5.0 mysql-common