I trie to send E-mail from my recently installed Xubuntu server using the following command:
mailx -s "test mail"
rakesh@kuc01.kuniv.edu.kw < /tmp/test.txt
I got the following message:
The program 'mailx' can be found in the following packages:
* mailx
* mailutils
Try: sudo apt-get install <selected package>
Make sure you have the 'universe' component enabled
bash: mailx: command not found
I tried from my machine (rakesh-desktop running xubuntu)
rakesh@rakesh-desktop:~$ sudo apt-get install mailx
The following messages appeared:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
mailx: Depends: liblockfile1 (>= 1.0) but it is not going to be installed
Depends: postfix but it is not going to be installed or
mail-transport-agent
skype: Depends: libqt4-core (>= 4.2.1) but it is not going to be installed
Depends: libqt4-gui (>= 4.2.1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
I followed the instructions & tried the following:
rakesh@rakesh-desktop:~$ sudo apt-get -f install
Now the following messages appear. I replied Y to questions where it gave me option to reply Y.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
libqt4-core libqt4-gui
Recommended packages:
qt4-qtconfig
The following NEW packages will be installed:
libqt4-core libqt4-gui
0 upgraded, 2 newly installed, 0 to remove and 26 not upgraded.
1 not fully installed or removed.
Need to get 6169kB of archives.
After unpacking 15.0MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
WARNING: The following packages cannot be authenticated!
libqt4-core libqt4-gui
Install these packages without verification [y/N]? y
Err http://kw.archive.ubuntu.com feisty/main libqt4-core 4.2.3-0ubuntu3
302 Moved Temporarily [IP: 91.189.88.31 80]
Err http://kw.archive.ubuntu.com feisty/main libqt4-gui 4.2.3-0ubuntu3
302 Moved Temporarily [IP: 91.189.88.31 80]
Failed to fetch http://kw.archive.ubuntu.com/ubuntu/...untu3_i386.deb 302 Moved Temporarily [IP: 91.189.88.31 80]
Failed to fetch http://kw.archive.ubuntu.com/ubuntu/...untu3_i386.deb 302 Moved Temporarily [IP: 91.189.88.31 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Kindly suggest what is happening & what action can I take to fix the problem & install mailx on my machine?
Thanking you. Best regards, RAKESH