MHMDhub / enterprise-log-search-and-archive

Automatically exported from code.google.com/p/enterprise-log-search-and-archive
0 stars 0 forks source link

cpanminus install fails #71

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Attempt to upgrade to latest release, as of today.

What is the expected output? What do you see instead?

E: Couldn't find package cpanminus
ubuntu_get_node_packages FAIL

E: Couldn't find package cpanminus
ubuntu_get_web_packages FAIL

What version of the product are you using? On what operating system?

Linux vhost 2.6.32-28-generic-pae #55-Ubuntu SMP Mon Jan 10 22:34:08 UTC 2011 
i686 GNU/Linux

Please provide any additional information below.

I installed it manually using these instructions: 
http://library.linode.com/linux-tools/utilities/cpanm

Original issue reported on code.google.com by lib...@gmail.com on 3 Sep 2012 at 3:09

GoogleCodeExporter commented 9 years ago
On Ubuntu, you can just issue apt-get install cpanminus.  Did that work for you?

Original comment by mchol...@gmail.com on 4 Sep 2012 at 3:04

GoogleCodeExporter commented 9 years ago
Nope: E: Couldn't find package cpanminus

Original comment by lib...@gmail.com on 5 Sep 2012 at 1:37

GoogleCodeExporter commented 9 years ago
You have an issue with your package repository, I think.  What version of 
Ubuntu are you running?  Another way to install cpanminus is to just download 
it, as per the installer: curl -LO http://xrl.us/cpanm

Original comment by mchol...@gmail.com on 5 Sep 2012 at 1:40

GoogleCodeExporter commented 9 years ago
I actually did download it and got up and running; I thought you might just 
want to be an issue with the installer. But maybe it's my repo. I'll check it 
out.

Original comment by lib...@gmail.com on 5 Sep 2012 at 1:50

GoogleCodeExporter commented 9 years ago
Ok, please let me know if it is indeed an installer bug.  I would think others 
would have reported the issue as well.  I'll close in a day or two if I don't 
hear back.

Original comment by mchol...@gmail.com on 5 Sep 2012 at 3:08

GoogleCodeExporter commented 9 years ago
Doesn't seem to be in the repos I am using:

root@vhost:~# apt-cache search cpanminus
root@vhost:~# 

root@vhost:~# cat /etc/apt/sources.list | grep -Ev "^#"

deb http://us.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid main restricted

deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates main restricted

deb http://us.archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid universe
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates universe

deb http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse

deb http://security.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted
deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe
deb http://security.ubuntu.com/ubuntu lucid-security multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse

Original comment by lib...@gmail.com on 8 Sep 2012 at 4:35

GoogleCodeExporter commented 9 years ago
Hm, maybe it was added in oneric.  Here's what I see:

Package: cpanminus
Versions: 
1.4008-1 
(/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_oneiric_universe_binary-a
md64_Packages)

cat /etc/apt/sources.list | grep -v "#"
deb http://us.archive.ubuntu.com/ubuntu/ oneiric main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric main restricted

deb http://us.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted

deb http://us.archive.ubuntu.com/ubuntu/ oneiric universe
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric universe
deb http://us.archive.ubuntu.com/ubuntu/ oneiric-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric-updates universe

deb http://us.archive.ubuntu.com/ubuntu/ oneiric multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric multiverse
deb http://us.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse

deb http://security.ubuntu.com/ubuntu oneiric-security main restricted
deb-src http://security.ubuntu.com/ubuntu oneiric-security main restricted
deb http://security.ubuntu.com/ubuntu oneiric-security universe
deb-src http://security.ubuntu.com/ubuntu oneiric-security universe
deb http://security.ubuntu.com/ubuntu oneiric-security multiverse
deb-src http://security.ubuntu.com/ubuntu oneiric-security multiverse
deb http://download.virtualbox.org/virtualbox/debian oneiric contrib

Original comment by mchol...@gmail.com on 8 Sep 2012 at 8:27

GoogleCodeExporter commented 9 years ago
Hi there

I installed the cpanminus following the above instructions but still my elsa.sh 
cannot find the cpanminus installed. Also, the widehat.opensuse.org is not 
reachable. Please find attached the output of the install and help me out.

Original comment by hatim.ei...@gmail.com on 17 Sep 2012 at 10:14

Attachments:

GoogleCodeExporter commented 9 years ago
It says that the cpanminus failed because widehat.opensuse.org was not 
reachable.  That address is not in the install.sh, it is provided by the Ubuntu 
mirror server.  This can happen from time to time if a mirror is down for 
maintenance and there's not much I can do about it from the install.sh script.  
You should try to re-run it and hopefully it will either pick a different 
mirror or that mirror will be up.

Original comment by mchol...@gmail.com on 17 Sep 2012 at 1:43

GoogleCodeExporter commented 9 years ago
Well the server is up now but it says '403 Forbidden'!!! Is there any work 
around? Ironically, cpanminus is already installed manually and is up to the 
latest version. i really don't get it! 

Original comment by hatim.ei...@gmail.com on 17 Sep 2012 at 1:51

GoogleCodeExporter commented 9 years ago
The "403 forbidden" message can mean a number of things.  Is this a new install 
just used for ELSA or are there other web sites on this server?  Are you just 
trying to access the basic ELSA index page at http://127.0.0.1 (or whatever 
server IP you're using) or are you putting anything else there.  Are there any 
errors in /data/elsa/log/web.log?

Original comment by mchol...@gmail.com on 17 Sep 2012 at 3:51

GoogleCodeExporter commented 9 years ago
We are running Debian stable and have had the same issue with missing cpanminus.
Cause: install.sh failed because cpanminus is not in debian stable repository 
(it's added in testing).

Our solution:
Install manually: curl -L http://cpanmin.us | perl - --sudo App::cpanminus
Remove cpanminus from two apt-get lines in install.sh, grep 
"apt-get.*cpanminus" /usr/local/elsa/contrib/install.sh

What we did was:
mkdir elsanew
cp /usr/local/elsa/contrib/install.sh elsanew
edit elsanew/install.sh to remove cpanminus
use elsanew/install.sh for updates and check diff: diff elsanew/install.sh 
/usr/local/elsa/contrib/install.sh
if install.sh has been updated, cp /usr/local/elsa/contrib/install.sh 
elsanew/install.sh and edit elsanew/install.sh to remove cpanminus

Original comment by lars.kro...@axstores.se on 19 Sep 2012 at 7:51

GoogleCodeExporter commented 9 years ago
Hopefully fixed in rev 446.

Original comment by mchol...@gmail.com on 20 Sep 2012 at 9:39

GoogleCodeExporter commented 9 years ago
works for "install.sh node update", since cpanminus is removed from apt-get 
line in function ubuntu_get_node_packages, it do not look for cpanminus in 
debian repository anymore. 

But, for "install.sh web update", the function ubuntu_get_web_packages calls an 
apt-get line which looks for cpanminus and because debian stable repository do 
not have cpanminus it gives: 
E: Unable to locate package cpanminus
ubuntu_get_web_packages FAIL

Original comment by lars.kro...@axstores.se on 21 Sep 2012 at 11:31

GoogleCodeExporter commented 9 years ago
Oops, thanks for pointing that out.  Please try the latest install.sh.

Original comment by mchol...@gmail.com on 21 Sep 2012 at 3:08