Debian Install Problem

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
smack199
Posts: 7
Joined: Sat Nov 24, 2012 11:52 pm

Debian Install Problem

Post by smack199 »

Hi,

I am a noobie who just wants to install Cacti for fun to monitor my home networks traffic, I am trying to run Cacti on a Debian machine running Apache2.

I have installed Apache2, MySQL, RDDTOOL, SNMP & PHP.

When I run #apt-get install cacti as root I get the following error.

"The following packages have umet dependencies:
cacti : Depends: libphp-adodb (>= 4.050-1) but it is not installable
E: broken packages"

So to me it looks like it is missing a php library but I am not sure as this is a hobby. Anybody have any ideas on how to resolve this?

Here is my php -m output.


[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
ldap
libxml
mbstring
mcrypt
mhash
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
Reflection
session
shmop
SimpleXML
snmp
soap
sockets
SPL
standard
suhosin
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
zip
zlib

[Zend Modules]
Suhosin


Thanks in advance for your help!
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: Debian Install Problem

Post by paulgevers »

smack199 wrote:I am a noobie who just wants to install Cacti for fun to monitor my home networks traffic, I am trying to run Cacti on a Debian machine running Apache2.

cacti : Depends: libphp-adodb (>= 4.050-1) but it is not installable
Which version of Debian are you running? How are you installing cacti? Which version of cacti?

Debian libphp-adodb package info:

Code: Select all

Package libphp-adodb

    squeeze (stable) (php): The ADOdb database abstraction layer for PHP
    5.10-1: all
    wheezy (testing) (php): ADOdb database abstraction layer for PHP
    5.15-1: all
    sid (unstable) (php): ADOdb database abstraction layer for PHP
    5.15-1: all
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
smack199
Posts: 7
Joined: Sat Nov 24, 2012 11:52 pm

Re: Debian Install Problem

Post by smack199 »

Hi Paul,

Thanks for the response.

It is a new install so I am running Debian 6. Here is my uname output...

2.6.32-5-amd64 #1 SMP Sun Sep 23 11:00:33 UTC 2012 x86_64

I am trying to install cacti using #apt-get install cacti. I am assuming it is the latest version.

Do I still need to download the tar.gz (cacti-0.8.8a.tar.gz) file when using Debian? I have not done that.

Many thanks,
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: Debian Install Problem

Post by paulgevers »

smack199 wrote:I am trying to install cacti using #apt-get install cacti.
Can you please copy/paste the FULL output in the console if you try to do this (or find the relevant part in /var/log/apt/term.log).
smack199 wrote:I am assuming it is the latest version.
Wrong. Debian 6 runs 0.8.7g-1+squeeze1.
smack199 wrote:Do I still need to download the tar.gz (cacti-0.8.8a.tar.gz) file when using Debian? I have not done that.
No, please don't. You will be mixing two different kind of setups. Rather, you might want to use my ppa (see signature). But first we need to figure out why your installation went wrong. There must be something wrong.
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
smack199
Posts: 7
Joined: Sat Nov 24, 2012 11:52 pm

Re: Debian Install Problem

Post by smack199 »

Hi, here is the full output

# apt-get install cacti
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
cacti : Depends: libphp-adodb (>= 4.50-1) but it is not installable
E: Broken packages
paulgevers wrote: Wrong. Debian 6 runs 0.8.7g-1+squeeze1.
Sorry had no idea I am a noobie.
paulgevers wrote:No, please don't. You will be mixing two different kind of setups. Rather, you might want to use my ppa (see signature). But first we need to figure out why your installation went wrong. There must be something wrong.
Got it.. I will not touch it.
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: Debian Install Problem

Post by paulgevers »

smack199 wrote:cacti : Depends: libphp-adodb (>= 4.50-1) but it is not installable
What happens if you try to install libphp-adodb directly, i.e.

Code: Select all

apt-get install libphp-adodb
Also the output of the following commands might help.

Code: Select all

dpkg --status cacti

Code: Select all

dpkg --status libphp-adodb

Code: Select all

dpkg --print-avail libphp-adodb
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
smack199
Posts: 7
Joined: Sat Nov 24, 2012 11:52 pm

Re: Debian Install Problem

Post by smack199 »

Hi Paul,

Here is the outputs requested.

# apt-get install libphp-adodb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libphp-adodb 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

E: Package 'libphp-adodb' has no installation candidate

# dpkg --status cacti
Package `cacti' is not installed and no info is available.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.


# dpkg --status libphp-adodb
Package `libphp-adodb' is not installed and no info is available.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.


# dpkg --print-avail libphp-adodb
Package `libphp-adodb' is not available.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: Debian Install Problem

Post by paulgevers »

Something weird is going on on your system. (This is not the forum for that ;) )

Can you (did you) install other package successfully, recently?

Can you update normally?

Code: Select all

apt-get update
What are the contents of you /etc/apt/sources.conf ?

Code: Select all

apt-cache showpkg cacti

Code: Select all

apt-cache showpkg libphp-adodb
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
smack199
Posts: 7
Joined: Sat Nov 24, 2012 11:52 pm

Re: Debian Install Problem

Post by smack199 »

I have installed other packages (Apache2, PHP, RDDTOOL, SSH, proftpd, SNMP, MYSQL, sudo) on this system and not had problems. This is a new install about two days old.

I dont seem to have a file called sources.conf in the directory /etc/apt.. I only have the below.

/etc/apt# ls
apt.conf.d
secring.gpg
sources.list.d
trusted.gpg~
listchanges.conf
sources.list
trustdb.gpg
trusted.gpg.d
preferences.d
sources.list~
trusted.gpg


Updating looks good maybe.

# apt-get update
Ign cdrom://[Debian GNU/Linux 6.0.6 _Squeeze_ - Official i386 DVD Binary-1 20120929-15:56] squeeze Release.gpg
Ign cdrom://[Debian GNU/Linux 6.0.6 _Squeeze_ - Official i386 DVD Binary-1 20120929-15:56]/ squeeze/contrib Translation-en
Ign cdrom://[Debian GNU/Linux 6.0.6 _Squeeze_ - Official i386 DVD Binary-1 20120929-15:56]/ squeeze/contrib Translation-en_CA
Ign cdrom://[Debian GNU/Linux 6.0.6 _Squeeze_ - Official i386 DVD Binary-1 20120929-15:56]/ squeeze/main Translation-en
Ign cdrom://[Debian GNU/Linux 6.0.6 _Squeeze_ - Official i386 DVD Binary-1 20120929-15:56]/ squeeze/main Translation-en_CA
Ign cdrom://[Debian GNU/Linux 6.0.6 _Squeeze_ - Official i386 DVD Binary-1 20120929-15:56] squeeze Release
Ign cdrom://[Debian GNU/Linux 6.0.6 _Squeeze_ - Official i386 DVD Binary-1 20120929-15:56] squeeze/contrib i386 Packages/DiffIndex
Ign cdrom://[Debian GNU/Linux 6.0.6 _Squeeze_ - Official i386 DVD Binary-1 20120929-15:56] squeeze/main i386 Packages/DiffIndex
Get:1 http://security.debian.org squeeze/updates Release.gpg [836 B]
Ign http://security.debian.org/ squeeze/updates/contrib Translation-en
Ign http://security.debian.org/ squeeze/updates/contrib Translation-en_CA
Ign http://security.debian.org/ squeeze/updates/main Translation-en
Ign http://security.debian.org/ squeeze/updates/main Translation-en_CA
Get:2 http://security.debian.org squeeze/updates Release [86.9 kB]
Hit http://security.debian.org squeeze/updates/main Sources
Hit http://security.debian.org squeeze/updates/contrib Sources
Hit http://security.debian.org squeeze/updates/main i386 Packages
Hit http://security.debian.org squeeze/updates/contrib i386 Packages
Fetched 87.8 kB in 1s (80.7 kB/s)
Reading package lists... Done


# apt-cache showpkg cacti
Package: cacti
Versions:
0.8.7g-1+squeeze1 (/var/lib/apt/lists/security.debian.org_dists_squeeze_updates_main_binary-i386_Packages)
Description Language:
File: /var/lib/apt/lists/security.debian.org_dists_squeeze_updates_main_binary-i386_Packages
MD5: 905da367778d74e76f1822aa5f33e96e


Reverse Depends:
Dependencies:
0.8.7g-1+squeeze1 - apache2 (16 (null)) apache (16 (null)) apache-ssl (16 (null)) apache-perl (16 (null)) httpd (0 (null)) libapache2-mod-php5 (16 (null)) php5 (0 (null)) php5-mysql (0 (null)) php5-cli (0 (null)) php5-snmp (0 (null)) virtual-mysql-client (0 (null)) rrdtool (0 (null)) snmp (0 (null)) libphp-adodb (2 4.50-1) ucf (0 (null)) dbconfig-common (2 1.8.8) debconf (18 0.5) debconf-2.0 (0 (null)) php5-ldap (0 (null)) mysql-server (0 (null)) iputils-ping (0 (null)) logrotate (0 (null))
Provides:
0.8.7g-1+squeeze1 -
Reverse Provides:

# apt-cache showpkg libphp-adodb
Package: libphp-adodb
Versions:

Reverse Depends:
typo3-src-4.3,libphp-adodb 5.07
mantis,libphp-adodb
cacti,libphp-adodb 4.50-1
Dependencies:
Provides:
Reverse Provides:
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: Debian Install Problem

Post by paulgevers »

smack199 wrote:I have installed other packages (Apache2, PHP, RDDTOOL, SSH, proftpd, SNMP, MYSQL, sudo) on this system and not had problems. This is a new install about two days old.

I dont seem to have a file called sources.conf in the directory /etc/apt.. I only have the below.
sorry, I meant sources.list. The problem is in that file, as I can see below
smack199 wrote:Updating looks good maybe.

# apt-get update
Ign cdrom://[Debian GNU/Linux 6.0.6 _Squeeze_ - Official i386 DVD Binary-1 20120929-15:56] squeeze Release.gpg
Ign cdrom://[Debian GNU/Linux 6.0.6 _Squeeze_ - Official i386 DVD Binary-1 20120929-15:56]/ squeeze/contrib Translation-en
Ign cdrom://[Debian GNU/Linux 6.0.6 _Squeeze_ - Official i386 DVD Binary-1 20120929-15:56]/ squeeze/contrib Translation-en_CA
Ign cdrom://[Debian GNU/Linux 6.0.6 _Squeeze_ - Official i386 DVD Binary-1 20120929-15:56]/ squeeze/main Translation-en
Ign cdrom://[Debian GNU/Linux 6.0.6 _Squeeze_ - Official i386 DVD Binary-1 20120929-15:56]/ squeeze/main Translation-en_CA
Ign cdrom://[Debian GNU/Linux 6.0.6 _Squeeze_ - Official i386 DVD Binary-1 20120929-15:56] squeeze Release
Ign cdrom://[Debian GNU/Linux 6.0.6 _Squeeze_ - Official i386 DVD Binary-1 20120929-15:56] squeeze/contrib i386 Packages/DiffIndex
Ign cdrom://[Debian GNU/Linux 6.0.6 _Squeeze_ - Official i386 DVD Binary-1 20120929-15:56] squeeze/main i386 Packages/DiffIndex
Get:1 http://security.debian.org squeeze/updates Release.gpg [836 B]
Ign http://security.debian.org/ squeeze/updates/contrib Translation-en
Ign http://security.debian.org/ squeeze/updates/contrib Translation-en_CA
Ign http://security.debian.org/ squeeze/updates/main Translation-en
Ign http://security.debian.org/ squeeze/updates/main Translation-en_CA
Get:2 http://security.debian.org squeeze/updates Release [86.9 kB]
Hit http://security.debian.org squeeze/updates/main Sources
Hit http://security.debian.org squeeze/updates/contrib Sources
Hit http://security.debian.org squeeze/updates/main i386 Packages
Hit http://security.debian.org squeeze/updates/contrib i386 Packages
Fetched 87.8 kB in 1s (80.7 kB/s)
Reading package lists... Done
You only have CD and security in the repositories. You are missing the "normal" repository, e.g.:

Code: Select all

deb http://ftp.debian.org/debian/ wheezy main contrib non-free
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
smack199
Posts: 7
Joined: Sat Nov 24, 2012 11:52 pm

Re: Debian Install Problem

Post by smack199 »

Hi Paul,

That did it! For some reason the following lines were commented out of my sources.list file..

deb http://ftp.debian.org/debian/ squeeze-updates main contrib
deb-src http://ftp.debian.org/debian/ squeeze-updates main contrib


I went ahead and uncommented them as well as added...

deb http://ftp.debian.org/debian/ wheezy main contrib non-free

I then ran apt-get update again and then apt-get install cacti and bam I am now setting up cacti!

Thank you very much for taking the time to help Paul. I am going to give a small donation to the cacti project as a show of my gratitude.
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: Debian Install Problem

Post by paulgevers »

smack199 wrote:That did it! For some reason the following lines were commented out of my sources.list file..
Great that it is solved, but...
smack199 wrote: deb http://ftp.debian.org/debian/ wheezy main contrib non-free
This was a mistake on my part, you are running squeeze, you SHOULD NOT use wheezy in your apt-get except if you know what you are doing.
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
smack199
Posts: 7
Joined: Sat Nov 24, 2012 11:52 pm

Re: Debian Install Problem

Post by smack199 »

Ok I will remove that entry.. http://ftp.debian.org/debian/ wheezy main contrib non-free.. I am no expert ha!

Thanks again for the assistance Paul. I am looking forward to wowing myself with these graphs!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests