LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Fail webmin install, E: Package webmin has no installation candidate (https://www.linuxquestions.org/questions/linux-newbie-8/fail-webmin-install-e-package-webmin-has-no-installation-candidate-800482/)

cK` 04-06-2010 10:59 PM

Fail webmin install, E: Package webmin has no installation candidate
 
Hey, i have had webmin running previously but i just recently installed Unbuntu server and i am now trying to install webmin.

after typing this to install webmin

sudo apt-get install webmin

it started doing its thing and then it halts. Giving me the following message

"Package webmin is not available, but is referred to by another package. this may mean that the package is missing, had been obsoleted , or is only available from another source."


The first thing i did after installing webmin was edit the sources.list

cd /etc/apt/

then i tpyed sudo nano sources.list
I uncommented everything with "deb" in front of it

I also uncommented
deb cdrom:[unbuntu-servers 9.10 _karmic koala_

i then typed this
sudo wget http://prdownloads.sourceforge.net/w..._1.510_all.deb

after getting that i typed this
apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl

then i tryed to install it and got that error.




Can any explain to me what is happening here?



I also tryed install it using this tutorial http://www.freelydifferent.com/self-...dministration/

When i got to the part when i need to type

sudo apt-get install update this is what happened

W: Failed to fetch cdrom://unbuntu-server 9.10 _karmic_ koala_ect....
please use apt-cd to make this cdrom recognized by apt.


If anyone could explain to me what is going on it would be much appreciated.

-Thanks!

cK` 04-07-2010 12:03 AM

/bump

Someone has gotta have a suggestion right? :)

dudumomo 04-07-2010 12:26 AM

Hi cK'!
You get the following error message because you didn't modify your sources.list to add repositories.
To do so, still on the same website, check this link: http://www.freelydifferent.com/self-...nchronisation/ at the end of this article, the part "Modify your sources.list:" will definitively help you.

EricTRA 04-07-2010 12:27 AM

Hello,

First in the /etc/apt/sources.list file comment the cdrom line again by putting a # in front of it. You only need it if you are planning to look for packages on a CD which is hardly used when you have a decent internet connection.

When you run
Code:

sudo apt-get update
you synchronize what you have installed with the repositories online. Then when you run
Code:

sudo apt-get upgrade
you upgrade installed packages to newer versions (if available).

To install a package from the repository you run
Code:

sudo apt-get install <packagename>
If the package is available in the repositories listed in the sources.list it will install along with any necessary dependencies.

It looks like you installed the dependencies needed (not sure because I don't use webmin) but that the webmin package itself is not in the repositories.

But you downloaded it with the wget utility so it's on your drive.

So basically all you need to do is change into the directory where you downloaded the file (deb) and run the following command:
Code:

sudo dpkg -i <packagename>
(substitute <packagename> for the full name of the package file). That should do it. Post any results or errors here.

Kind regards,

Eric

cK` 04-07-2010 01:08 AM

Hey eric thanks so much for responding.
I followed your advice and it worked. I have not attempted to login via the internet though because i am "upgrading" packages. i will shortly though


While i was editing my sources.list with nano i noticed some extreme lag
For example if i wanted to move down a few lines with the arrow key it would lagg and say at the bottom (unknown command) sometimes rebooting my server would fix this but sometimes it doesn't.

I never used to have this problem, its kinda weird and irritating.



Hey Dudumom hows it going?? thanks so much for responding to my posts!!!

I cant copy post a list of respositorys because i dont know how to open up web pages in unbuntu server.
But i did follow erics advice and webmin did indeed install!

cK` 04-07-2010 01:20 AM

Ok so i got this error when logging in from

username.dyndns.org:1000

Bad Request

Server running in SSL mode Try <serverip:10000>

I clicked on that link and it worked, doesn't this error have something to do with the perl??

I thought all my perl packages were installed correctly, is this an error or user error?

EricTRA 04-07-2010 01:24 AM

Hi,

Glad you got it working. I don't know why you encounter that strange behavior with nano, it never happened to me. Since I'm not familiar with webmin and/or perl I don't have a clue why you got the Bad Request. I'm sure someone else here on LQ can shed some light into that.

If you consider your problem solved (webmin installation) then mark the thread as such using the ThreadTools please.

Kind regards,

Eric

cK` 04-07-2010 01:36 AM

Ok, thanks for your help! I think it is a common problem i will try to look it up for myself. If not i guess all start a new thread.

EricTRA 04-07-2010 01:44 AM

Hello,

No problem, glad to be of help. From the error messages you get I assume it has to do with the webserver itself rather then perl or webmin. It looks like it only accepts SSL connections.

Kind regards,

Eric

dudumomo 04-07-2010 02:09 AM

Quote:

Originally Posted by cK` (Post 3927063)
Ok so i got this error when logging in from
username.dyndns.org:1000
Bad Request
Server running in SSL mode Try <serverip:10000>

This is very normal !
(I guess you mean username.dyndns.org:10000)

Webmin use SSL encrypton to ensure the security of its panel, then, you are not able to log with: http://username.dyndns.org:10000 because this protocol is not safe. But with https://username.dyndns.org:10000, it will works as it use a secure protocol.

Hence it is just a security feature.

Have fun with it !

PS: You cannot indeed copy and paste a sources.list in this way. But usually, you monitor a server through SSH (Which allow copy and paste).

cK` 04-07-2010 02:18 AM

Awesome thanks for the explanation, so i guess that little s matter huh?? hehe.

Anyway i got another question, i am using putty with my windows machine to connect to ssh, and i want to tunnel webmin through ssh ( I belivie this means when i start putty and login to my server i will be able to view port 10000 even though i only have the ssh port open on my router )

I am using this tutorial, http://support.suso.com/supki/SSH_Tutorial_for_Windows


Now at the very bottom there is a section on tunneling.

When i do what it says, put port 10000 in source port, then put username.dyndns.org:10000 in the proper setting and then i login to ssh, But i still cant view webmin.

Is their a diffrent way to tunnel webmin through ssh ( in other words i only want my ssh port open on my router).


All times are GMT -5. The time now is 08:19 PM.