cvicente / Netdot

Network Documentation Tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ubuntu 18.04.1 install fails

tpolim008 opened this issue · comments

Hello I am looking for help on the following issue when installing netdot on ubuntu 18.04.1

Which RDBMS do you plan to use as backend: [mysql|Pg]? mysql

We need to add a temporary repository of Netdot dependencies until all packages are in Debian/Ubuntu official repositories.
Would you like to continue? [y/n] n
Use of uninitialized value $debian_version in pattern match (m//) at bin/perldeps.pl line 196, line 2.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'perl-modules-5.26' instead of 'libtime-local-perl'
Note, selecting 'perl-modules-5.26' instead of 'libfile-spec-perl'
Package dnssec-tools 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
However the following packages replace it:
libnet-dns-zonefile-fast-perl

W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: Package 'dnssec-tools' has no installation candidate
There was a problem running apt-get -y --force-yes install --no-install-recommends apache2 libapache2-mod-perl2 rrdtool librrds-perl graphviz libgraphviz-perl libmodule-build-perl libcgi-pm-perl libclass-dbi-perl libclass-dbi-abstractsearch-perl libapache2-request-perl libhtml-mason-perl libapache-session-perl liburi-perl libsql-translator-perl libsnmp-info-perl netdisco-mibs-installer libnetaddr-ip-perl libapache2-authcookie-perl libapache2-sitecontrol-perl liblog-dispatch-perl liblog-log4perl-perl libparallel-forkmanager-perl libnet-patricia-perl libauthen-radius-perl libtest-simple-perl libtest-exception-perl libnet-irr-perl libtime-local-perl libfile-spec-perl libnet-appliance-session-perl libbind-config-parser-perl libnet-dns-perl libcarp-assert-perl libdigest-sha-perl libssl-dev dnssec-tools libsocket6-perl libxml-simple-perl snmp mysql-server libdbd-mysql-perl libcrypt-cast5-perl
Makefile:81: recipe for target 'apt-install' failed
make: *** [apt-install] Error 100

I also now get an error the source is not signed and will not allow me to update them. I put in my main source list deb [trusted=yes] however the install overrides that even if I alter the source list the makefile installs I just overwrite is over and over again any help here?

Would you like to continue? [y/n] n

Have you tried typing "y" instead?

If you can't get Netdot to work under 18.04 then try a 16.04 container or VM. Even then, you will need to make some manual frigs to make it work - although a later comment on that ticket suggests maybe the same fix will work on 18.04.

Perl Class::DBI, which Netdot depends on heavily, is effectively abandonware.

I have not as that is part of the makefile, I can see if I can find anywhere to alter that command but I'm going to take a stab and say I doubt I can. I have not looked at installing a VM or container it can be an option as well

Are you running make apt-install or make installdeps at the CLI, or something else?

Both of these just run bin/perldeps.pl. And they should prompt you interactively. That is, when you get to this point:

        print "Would you like to continue? [y/n] ";
        my $ans = <STDIN>;

it should be waiting for either a "y" or "n" in response. Try typing "y".

If you are installing using some other script, then you need to point us to what script you're using.

Here is the output when I am getting the errors. At this point of installing the repositories is when it starts to fail out.

We need to add a temporary repository of Netdot dependencies until all packages are in Debian/Ubuntu official repositories.
Would you like to continue? [y/n] y

root@netengsrv01:/Netdot# apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@netengsrv01:
/Netdot# make apt-install
Installing required APT packages
/usr/bin/perl bin/perldeps.pl apt-install

Which RDBMS do you plan to use as backend: [mysql|Pg]? mysql

We need to add a temporary repository of Netdot dependencies until all packages are in Debian/Ubuntu official repositories.
Would you like to continue? [y/n] y
Updating package indexes from sources
Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
Ign:4 http://download.webmin.com/download/repository sarge InRelease
Hit:5 http://download.webmin.com/download/repository sarge Release
Hit:6 http://security.ubuntu.com/ubuntu bionic-security InRelease
Ign:7 http://netdot.apt.nsrc.org unstable/ InRelease
Get:8 http://netdot.apt.nsrc.org unstable/ Release [1,578 B]
Ign:9 http://netdot.apt.nsrc.org unstable/ Release.gpg
Reading package lists... Done
E: The repository 'http://netdot.apt.nsrc.org unstable/ Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
There was a problem running apt-get update
Makefile:81: recipe for target 'apt-install' failed
make: *** [apt-install] Error 25
root@netengsrv01:~/Netdot#


THis is the output when I manually alter the repository file to add in deb [trusted=yes] since errors states this is due to it not being signed so I alter it to say trusted yes and answer now to install the repository file.

root@netengsrv01:~# nano /etc/apt/sources.list.d/netdot.apt.nsrc.org.list
GNU nano 2.9.3 /etc/apt/sources.list.d/netdot.apt.nsrc.org.list

Added by Netdot install

deb [trusted=yes] http://netdot.apt.nsrc.org/ unstable/
deb-src [trusted=yes] http://netdot.apt.nsrc.org/ unstable/

root@netengsrv01:# cd Netdot/
root@netengsrv01:
/Netdot# make apt-install
Installing required APT packages
/usr/bin/perl bin/perldeps.pl apt-install

Which RDBMS do you plan to use as backend: [mysql|Pg]? mysql

We need to add a temporary repository of Netdot dependencies until all packages are in Debian/Ubuntu official repositories.
Would you like to continue? [y/n] n
Use of uninitialized value $debian_version in pattern match (m//) at bin/perldeps.pl line 196, line 2.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'perl-modules-5.26' instead of 'libtime-local-perl'
Note, selecting 'perl-modules-5.26' instead of 'libfile-spec-perl'
Package dnssec-tools 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
However the following packages replace it:
libnet-dns-zonefile-fast-perl

W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: Package 'dnssec-tools' has no installation candidate
There was a problem running apt-get -y --force-yes install --no-install-recommends apache2 libapache2-mod-perl2 rrdtool librrds-perl graphviz libgraphviz-perl libmodule-build-perl libcgi-pm-perl libclass-dbi-perl libclass-dbi-abstractsearch-perl libapache2-request-perl libhtml-mason-perl libapache-session-perl liburi-perl libsql-translator-perl libsnmp-info-perl netdisco-mibs-installer libnetaddr-ip-perl libapache2-authcookie-perl libapache2-sitecontrol-perl liblog-dispatch-perl liblog-log4perl-perl libparallel-forkmanager-perl libnet-patricia-perl libauthen-radius-perl libtest-simple-perl libtest-exception-perl libnet-irr-perl libtime-local-perl libfile-spec-perl libnet-appliance-session-perl libbind-config-parser-perl libnet-dns-perl libcarp-assert-perl libdigest-sha-perl libssl-dev dnssec-tools libsocket6-perl libxml-simple-perl snmp mysql-server libdbd-mysql-perl libcrypt-cast5-perl
Makefile:81: recipe for target 'apt-install' failed
make: *** [apt-install] Error 100
root@netengsrv01:/Netdot# apt-get -y --allow ?
E: Command line option --allow is not understood in combination with the other options
root@netengsrv01:
/Netdot# apt-get ?
E: Invalid operation t

(Aside: to fix the formatting, put three backticks on a line of their own before and after each section where you're quoting console output)

OK, it's broken. If you want to run Netdot, use Ubuntu 14.04 (which works without issues but is EOL next year) or 16.04 (with the manual hacks linked to before).

Perl half release package update which broke netdot

I'm not aware of that issue - perhaps you should open a separate ticket for it?

I have Netdot running under 16.04.5 happily, so maybe you just need to do a clean re-install.