Cannot install telnet package


#1
pmverma1:~/workspace (master) $ sudo apt-get install telnet
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package telnet

how can I install telnet package?
Thanks.


#2

That’s because it’s not in the default repository list and even then, I don’t think it’d even work unless you want it for a client. You’ll have to add the standard ubuntu repository urls to get it.


#3

Try sudo apt-get -y update first, then sudo apt-get -y install telnet. Seems like the workspace boxes do not include up-to-date package lists when they are created.


#4

Thank you, it help me fix the problem

sudo apt-get -y update

sudo apt-get [PACKAGE_NAME]