E: Package 'ssh' has no installation candidate

472 views
Skip to first unread message

Nirjhar Dave

unread,
Oct 21, 2014, 12:44:07 AM10/21/14
to hadoop-learner-tutori...@googlegroups.com


nirjhar@nirjhar-VirtualBox:~$ sudo apt-get install ssh
[sudo] password for nirjhar: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package ssh is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  openssh-client

E: Package 'ssh' has no installation candidate

Any idea how to resolve this issue?

Nirjhar Dave

unread,
Oct 21, 2014, 5:20:49 AM10/21/14
to hadoop-learner-tutori...@googlegroups.com
I am stuck on Pseudo Distributed mode set up because of this issue. 

Please note that I am running Ubuntu 12.04 on Oracle Virtual box from my office network. I read somewhere that sometime office firewalls restricts the updation like ssh update/install. 

Could you please help me in this issue.

Nirjhar Dave

unread,
Oct 21, 2014, 5:40:18 AM10/21/14
to hadoop-learner-tutori...@googlegroups.com
I made some changes: - 
1. Changed the Network to Bridged connection.
2. Updated the source.list with some other urls.

Now the trace is: - 
nirjhar@nirjhar-VirtualBox:/etc/apt$ sudo apt-get install ssh

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  openssh-client openssh-server ssh-import-id
Suggested packages:
  ssh-askpass libpam-ssh keychain monkeysphere openssh-blacklist
  openssh-blacklist-extra rssh molly-guard
The following NEW packages will be installed:
  openssh-client openssh-server ssh ssh-import-id
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,289 kB of archives.
After this operation, 3,243 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
  openssh-client openssh-server ssh ssh-import-id
Install these packages without verification [y/N]? y
Err http://archive.ubuntu.com/ubuntu/ precise/main openssh-client amd64 1:5.9p1-5ubuntu1
  Could not connect to 10.1.3.1:8080 (10.1.3.1). - connect (113: No route to host)
Err http://archive.ubuntu.com/ubuntu/ precise/main openssh-server amd64 1:5.9p1-5ubuntu1
  Unable to connect to 10.1.3.1:8080:
Err http://archive.ubuntu.com/ubuntu/ precise/main ssh all 1:5.9p1-5ubuntu1
  Unable to connect to 10.1.3.1:8080:
Err http://archive.ubuntu.com/ubuntu/ precise/main ssh-import-id all 2.10-0ubuntu1
  Unable to connect to 10.1.3.1:8080:
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/o/openssh/openssh-client_5.9p1-5ubuntu1_amd64.deb  Could not connect to 10.1.3.1:8080 (10.1.3.1). - connect (113: No route to host)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/o/openssh/openssh-server_5.9p1-5ubuntu1_amd64.deb  Unable to connect to 10.1.3.1:8080:
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/o/openssh/ssh_5.9p1-5ubuntu1_all.deb  Unable to connect to10.1.3.1:8080:
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/ssh-import-id/ssh-import-id_2.10-0ubuntu1_all.deb  Unable to connect to 10.1.3.1:8080:
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Nirjhar Dave

unread,
Oct 28, 2014, 2:16:23 AM10/28/14
to hadoop-learner-tutori...@googlegroups.com
As I am accessing it from the office network, do I need to create a file /etc/apt/apt.conf and paste following in it?

Acquire::http::proxy “http://username:password@proxy:port/”;
Acquire::https::proxy “https://username:password@proxy:port/”;


On Tuesday, October 21, 2014 10:14:07 AM UTC+5:30, Nirjhar Dave wrote:

Nirjhar Dave

unread,
Oct 28, 2014, 2:40:32 AM10/28/14
to hadoop-learner-tutori...@googlegroups.com
Resolved the issue. It seems like my office firewall was not allowing me to run apt-get update ssh. I had to create a file /etc/apt/apt.conf and paste the below information: -
Acquire::http::proxy “http://username:password@proxy:port/";
Acquire::https::proxy “https://username:password@proxy:port/";
Acquire::ftp::proxy “ftp://username:password@proxy:port/”;

On Tuesday, October 21, 2014 10:14:07 AM UTC+5:30, Nirjhar Dave wrote:
Reply all
Reply to author
Forward
0 new messages