≡ Menu

reading package

Linux: Configure and Control APC SmartUPS During a Power Failure

My Linux nas server connected to APC SmartUPS using usb cable and I would like to detect a power failure. If power is not restored my server must shutdown when the battery is exhausted. How do I configure and use my APC SmartUPS under Debina / Ubuntu / RHEL / CentOS / Fedora / Scientific Linux operating system for power management?
[click to continue…]

Debian Linux: Install Virtualbox Virtualization Software

I'm a home user and how do I install VirtualBox virtualization software for my home use under Debian Linux 6 operating systems?
[click to continue…]

HowTo: See Contents of A .DEB Debian / Ubuntu Package File

Under CentOS / Fedora / RHEL I can use rpm -ql packageName command to view contacts of .rpm file. How do I view the contents of a .deb file under Debian / Ubuntu Linux?
[click to continue…]

E: Archive directory /var/cache/apt/archives/partial is missing Error and Solution

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:
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?
[click to continue…]

Rsnapshot WARNING: Could not lchown() symlink "/path/to/file" Error and Solution

I got rsnapshot based backup server up and running for my network under Debian Linux 5.x. But, whenever I run a backup job using the following command:
rsnapshot -v -c /root/rsnapshot.server1.conf hourly
I get the following messages on screen:

WARNING: Could not lchown() symlink "/nas/.rsnapshot/hourly.1/server1.example.com/etc/alternatives/locate"
WARNING: Could not lchown() symlink "/nas/.rsnapshot/hourly.1/server1.example.com/etc/alternatives/nc.1.gz"
WARNING: Could not lchown() symlink "/nas/.rsnapshot/hourly.1/server1.example.com/etc/alternatives/jexec-binfmt"
WARNING: Could not lchown() symlink "/nas/.rsnapshot/hourly.1/server1.example.com/etc/alternatives/servertool"

How do I fix this problem?
[click to continue…]

Ubuntu Uninstall deb Package

How do I uninstall deb packages under Ubuntu Linux using GUI or CLI (command line) methods?
[click to continue…]

nslookup / host Dns Client Testing Command Not Found on Debian / Ubuntu Linux

Q. I'm not able to run nslookup or host command under Debian or Ubuntu Linux. In fact, these commands are missing from my installation. How do I install nslookup and related dns client commands?
[click to continue…]

Debian / Ubuntu Linux: List All Packages Which Could be Updated and Applied to System

Q. How do I know what packages are available to be updated on my Debian / Ubuntu Linux system?

A. You can use standard command line utility called apt-get or GUI tool called Synaptic Update-Manager.

List all packages which could be updated

To list outdated package use apt-get command has following two options:
=> -u : Show upgraded packages; Print out a list of all packages that are to be upgraded.
=> upgrade : It is used to install the newest versions of all packages currently installed on the system

Type the following command at shell prompt:
$ sudo apt-get upgrade
$ sudo apt-get -i upgrade


Reading package lists... Done
Building dependency tree... Done
The following packages will be upgraded:
  debconf debconf-i18n e2fslibs e2fsprogs file findutils klibc-utils libblkid1 libc6 libc6-i686 libcomerr2 libklibc libkrb53 libmagic1
  libpam-modules libpam-runtime libpam0g libss2 libssl0.9.8 libuuid1 linux-image-2.6-686 linux-image-2.6.18-5-686 locales perl perl-base
  perl-modules tar tzdata
28 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 39.6MB of archives.
After unpacking 148kB of additional disk space will be used.
Do you want to continue [Y/n]?

To updated just say yes to prompt - "Do you want to continue". Alternatively, you can type the following command:
$ sudo apt-get update
$ sudo apt-get upgrade

Synaptic GUI Package Update Notifier

Synaptic works hand-in-hand with Update-Manager to inform you about updates to the software installed on your system. If software or security updates are available, Update-Manager will display a pop-up message and an icon in the notification area on your GNOME desktop. To update your system, click on the notification icon, enter your password and click OK.
How to keep your Ubuntu / Debian system up-to-date
(Fig. 01: Synaptic GUI Package Update Notifier [ Image credit Ubuntu Project] )