Ubuntu 12.04 apt-get

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
hdejongh
Posts: 6
Joined: Sat Sep 01, 2012 2:51 am

Ubuntu 12.04 apt-get

Post by hdejongh »

Hello,

First of all i`m a complete n00b.
i`m trying to install cacti on my new fresh ubuntu 12.04 server.
So i do sudo apt-get install cacti.

It works fine! Except that it installs cacti 0.8.7 and not 0.8.8...
How can i get 0.8.8 installed with apt-get...

thanks!
dylan650
Posts: 3
Joined: Sun Aug 26, 2012 8:50 pm

Re: Ubuntu 12.04 apt-get

Post by dylan650 »

That's easy. Create an apt repo, download cacti 8.8, compile it and add it to your apt repo. Then, point your server to your apt repo, and voila...

I did the same thing with yum on Redhat. I setup my own yum repo.

Works great!
hdejongh
Posts: 6
Joined: Sat Sep 01, 2012 2:51 am

Re: Ubuntu 12.04 apt-get

Post by hdejongh »

dylan650 wrote:That's easy. Create an apt repo, download cacti 8.8, compile it and add it to your apt repo. Then, point your server to your apt repo, and voila...

I did the same thing with yum on Redhat. I setup my own yum repo.

Works great!
lol and you started with: "That's easy" ehu???????
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: Ubuntu 12.04 apt-get

Post by paulgevers »

hdejongh wrote:How can i get 0.8.8 installed with apt-get...
Have a look at my signature.
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
mionco
Posts: 10
Joined: Tue Apr 16, 2013 5:39 am

Re: Ubuntu 12.04 apt-get

Post by mionco »

hi i have Ubuntu 12.04.3 LTS (GNU/Linux 3.2.0-53-generic x86_64)

i did

root@merkur:~# sudo add-apt-repository ppa:paul-climbing/cacti

Code: Select all

You are about to add the following PPA to your system:
 Package my work for Debian cacti in a stand alone location.
 More info: https://launchpad.net/~paul-climbing/+archive/cacti
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmpiAXYF8/secring.gpg' created
gpg: keyring `/tmp/tmpiAXYF8/pubring.gpg' created
gpg: requesting key F96FD737 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpiAXYF8/trustdb.gpg: trustdb created
gpg: key F96FD737: public key "Launchpad PPA for Paul Gevers" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK
than

root@merkur:~# sudo apt-get update

but got this errors...

Code: Select all

Ign http://ppa.launchpad.net precise Release.gpg
Ign http://ppa.launchpad.net precise Release                                 
Ign http://ppa.launchpad.net precise/main TranslationIndex
Err http://ppa.launchpad.net precise/main Sources 404  Not Found
Err http://ppa.launchpad.net precise/main amd64 Packages 404  Not Found
Err http://ppa.launchpad.net precise/main i386 Packages 404  Not Found
Ign http://ppa.launchpad.net precise/main Translation-en_US           
Ign http://ppa.launchpad.net precise/main Translation-en

W: Failed to fetch http://ppa.launchpad.net/paul-climbing/cacti/ubuntu/dists/precise/main/source/Sources  404  Not Found
W: Failed to fetch http://ppa.launchpad.net/paul-climbing/cacti/ubuntu/dists/precise/main/binary-amd64/Packages  404  Not Found
W: Failed to fetch http://ppa.launchpad.net/paul-climbing/cacti/ubuntu/dists/precise/main/binary-i386/Packages  404  Not Found
please help. how to install from repo? thanks
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: Ubuntu 12.04 apt-get

Post by paulgevers »

mionco wrote:root@merkur:~# sudo add-apt-repository ppa:paul-climbing/cacti
Hmm, I see the standard text at launchpad is indeed not enough for this to work.

Please find the file /etc/apt/sources.list.d/cacti (or the actual file that contains the next line) and change

Code: Select all

deb http://ppa.launchpad.net/paul-climbing/cacti/ubuntu precise main
to

Code: Select all

deb http://ppa.launchpad.net/paul-climbing/cacti/ubuntu quantal main
As cacti does not need to change between most Ubuntu releases, you can install from quantal on all recent Ubuntu's, as far as I know.
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
mionco
Posts: 10
Joined: Tue Apr 16, 2013 5:39 am

Re: Ubuntu 12.04 apt-get

Post by mionco »

thank you, after this change

root@merkur:~# cat /etc/apt/sources.list.d/paul-climbing-cacti-precise.list

Code: Select all

#deb http://ppa.launchpad.net/paul-climbing/cacti/ubuntu precise main
#deb-src http://ppa.launchpad.net/paul-climbing/cacti/ubuntu precise main
deb-src http://ppa.launchpad.net/paul-climbing/cacti/ubuntu quantal main
deb http://ppa.launchpad.net/paul-climbing/cacti/ubuntu quantal main
cacti was instaled, but after apache restart i got this error

root@merkur:~# /etc/init.d/apache2 restart

Code: Select all

Syntax error on line 6 of /etc/apache2/conf.d/cacti.conf:
Invalid command '<IfVersion', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
   ...fail!
the file looks like this

root@merkur:~# cat /etc/apache2/conf.d/cacti.conf

Code: Select all

Alias /cacti /usr/share/cacti/site

<Directory /usr/share/cacti/site>
	Options +FollowSymLinks
	AllowOverride None
	<IfVersion >= 2.3>
		Require all granted
	</IfVersion> 
	<IfVersion < 2.3>
		Order Allow,Deny
		Allow from all
	</IfVersion>

	AddType application/x-httpd-php .php

	<IfModule mod_php5.c>
		php_flag magic_quotes_gpc Off
		php_flag short_open_tag On
		php_flag register_globals Off
		php_flag register_argc_argv On
		php_flag track_vars On
		# this setting is necessary for some locales
		php_value mbstring.func_overload 0
		php_value include_path .
	</IfModule>

	DirectoryIndex index.php
</Directory>
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: Ubuntu 12.04 apt-get

Post by paulgevers »

Please replace it with the previous version of that file. It can be found here.

Sorry, you are right. I should provide a package for precise.
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest