I'm trying to install mysql-server package under Debian using the following command:
apt-get install mysql-server-5.0 mysql-common
But I'm getting an error which read as follows:
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.
How do I fix the problem?
This problem occurs when you try to free disk space by deleting the downloaded *.deb files from /var/cache/apt/archives/ directory. You can fix this problem simply by creating directories as follows. Login as root user and type the following command:
# mkdir -p /var/cache/apt/archives/partial
# apt-get autoclean
Sample outputs:
Reading package lists... Done Building dependency tree Reading state information... Done
The last command clears out the local repository of retrieved package files. This allows a cache to be maintained over a long period without it growing out of control i.e. disk space issues. Do not delete files or subdirs from the /var/cache/apt/ using the rm command or rmdir command. Now you can install the required packages.
# apt-get install mysql-server-5.0 mysql-common
Featured Articles:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- My 10 UNIX Command Line Mistakes
- Linux: 20 Iptables Examples For New SysAdmins

- 25 PHP Security Best Practices For Sys Admins
- The Novice Guide To Buying A Linux Laptop
- 10 Greatest Open Source Software Of 2009
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- Top 20 OpenSSH Server Best Security Practices
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Linux Video Editor Software
Facebook it - Tweet it - Print it -



{ 1 comment… read it below or add one }
hehe , I have done that on my desktop…. when I was checking which folder taking space , which was located to be /var/cache/atpt/archives , I just deleted it ..
And next time when I ran adept , the same error was shown :) …