debian 9 new install fails

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

Moderators: Developers, Moderators

Post Reply
btuley
Posts: 1
Joined: Fri Sep 01, 2017 11:34 am

debian 9 new install fails

Post by btuley »

I just did a brand new Debian 9 install, added LAMP
Then did an apt-get install cacti. - Which FAILS... "ERROR 1071 (42000) at line 1916: Specified key was too long; max key length is 1000 bytes"
to fix this error: uninstall cacti (deleting all files), delete database, and re-create database with utf-32-general.
added user 'cacti'@'localhost' with all privileges.

Re-install cacti; with apt-get install cacti;
this then fails with failed to opens stream: no such file or directory.
php fatal error: uncaught error: call to undefined function MySQL_pconnect()...
see screen shot attached...

Clearly the apt-get update, even though it installs cacti 0.8.8, isn't anywhere near ready for the current DEBAIN version.
Debian dissuades installing non apt-get packages due to dependencies...

How do I get cacti installed on Debian 9 / squeeze?
Attachments
fail.PNG
fail.PNG (121.08 KiB) Viewed 1070 times
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: debian 9 new install fails

Post by paulgevers »

btuley wrote:How do I get cacti installed on Debian 9 / squeeze?
Normally I just do

Code: Select all

sudo apt install cacti
but that is apperently not working for you.

Please file bugs in Debian packages in the Debian bug tracker, so that we can help you there. On this forum, nobody but me is helping on Debian specific issues, so you are lucky I see your item here.

Please add your /var/log/apt/term.log, so I can see what is going on.

https://www.debian.org/Bugs/Reporting
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
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: debian 9 new install fails

Post by paulgevers »

Ah, and you second install failed because you removed /etc/cacti/debian.php which is required for cacti to function. Because this file is a configuration file, just reinstalling a package will not change it. I recommend purging cacti and installing again.

Code: Select all

sudo apt purge cacti
sudo apt install cacti
Let dbconfig-common handle database removal and creation.
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
amigaholic
Posts: 3
Joined: Wed Apr 17, 2013 10:54 am

Re: debian 9 new install fails

Post by amigaholic »

paulgevers wrote:
btuley wrote:How do I get cacti installed on Debian 9 / squeeze?
Normally I just do

Code: Select all

sudo apt install cacti
but that is apperently not working for you.
Problem with Debian Squeeze is that their current package repository version of Cacti is 0.8.8h.

Can this (easily) be upgraded to the latest 1.1.2.1?
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: debian 9 new install fails

Post by paulgevers »

amigaholic wrote: Problem with Debian Squeeze is that their current package repository version of Cacti is 0.8.8h.

Can this (easily) be upgraded to the latest 1.1.2.1?
See my signature, the 1.x branch is in the official Debian backports.

Paul
PS. Debian 9 = stretch by the way; squeeze was Debian 6.
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 0 guests