error when running "DEBIAN_FRONTEND=noninteractive apt-get -yq install eve-ng"

Before posting something, READ the changelog, WATCH the videos, howto and provide following:
Your install is: Bare metal, ESXi, what CPU model, RAM, HD, what EVE version you have, output of the uname -a and any other info that might help us faster.

Moderator: mike

Post Reply
EugeneSmirnov
Posts: 8
Joined: Tue Apr 04, 2017 7:05 am

error when running "DEBIAN_FRONTEND=noninteractive apt-get -yq install eve-ng"

Post by EugeneSmirnov » Tue Apr 04, 2017 7:14 am

Hi team!

I have Ubuntu Server 16.04 LTS on which I try to install eve-ng, but get the following error:

root@Mayak:/home/eugene# DEBIAN_FRONTEND=noninteractive apt-get -y install eve-ng
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-67 linux-headers-4.4.0-67-generic linux-image-4.4.0-67-generic linux-image-extra-4.4.0-67-generic
linux-signed-image-4.4.0-67-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
eve-ng-guacamole
The following NEW packages will be installed:
eve-ng eve-ng-guacamole
0 upgraded, 2 newly installed, 0 to remove and 7 not upgraded.
Need to get 0 B/34.5 MB of archives.
After this operation, 46.6 MB of additional disk space will be used.
(Reading database ... 293629 files and directories currently installed.)
Preparing to unpack .../eve-ng-guacamole_2.0.1-60_amd64.deb ...
Checking MySQL... failed
dpkg: error processing archive /var/cache/apt/archives/eve-ng-guacamole_2.0.1-60_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/eve-ng-guacamole_2.0.1-60_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@Mayak:/home/eugene# ^C

I tried to reset mysql password, it turned out to be defaulted to 'root'. The mysql service is running:

root@Mayak:/home/eugene# systemctl status mysql
â mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2017-04-04 10:33:29 +04; 40min ago
Process: 1519 ExecStartPost=/usr/share/mysql/mysql-systemd-start post (code=exited, status=0/SUCCESS)
Process: 1459 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
Main PID: 1517 (mysqld)
CGroup: /system.slice/mysql.service
ââ1517 /usr/sbin/mysqld

Apr 04 10:33:23 Mayak systemd[1]: Starting MySQL Community Server...
Apr 04 10:33:29 Mayak systemd[1]: Started MySQL Community Server.
root@Mayak:/home/eugene#

Please help!
Don't know how to proceed.

Uldis (UD)
Posts: 5080
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

Re: error when running "DEBIAN_FRONTEND=noninteractive apt-get -yq install eve-ng"

Post by Uldis (UD) » Tue Apr 04, 2017 11:59 am

reboot it and run again upgrade, all will be ok:)

EugeneSmirnov
Posts: 8
Joined: Tue Apr 04, 2017 7:05 am

Re: error when running "DEBIAN_FRONTEND=noninteractive apt-get -yq install eve-ng"

Post by EugeneSmirnov » Tue Apr 04, 2017 12:09 pm

Nope, it didn't help:

root@Mayak:/home/eugene# reboot
login as: eugene
Authenticating with public key "*************"
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.14-eve-ng-ukms+ x86_64)

* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage

1 package can be updated.
0 updates are security updates.

Last login: Tue Apr 4 10:45:54 2017 from 10.241.8.48
eugene@Mayak:~$
eugene@Mayak:~$
eugene@Mayak:~$ su -
Password:
root@Mayak:~#
root@Mayak:~#
root@Mayak:~#
root@Mayak:~#
root@Mayak:~#
root@Mayak:~#
root@Mayak:~# apt-get ugrade
E: Invalid operation ugrade
root@Mayak:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
bridge-utils cpulimit default-jdk default-jdk-headless eve-ng-dynamips eve-ng-qemu eve-ng-schema eve-ng-vpcs lib32gcc1 lib32z1
libboost-program-options1.58.0 libboost-random1.58.0 libboost-thread1.58.0 libc6-i386 libcacard0 libecj-java libfdt1 libiscsi2 libjpeg62
libossp-uuid16 libpango1.0-0 libpangox-1.0-0 libpng3 libpulse-java libpulse-jni libqpidcommon2 libqpidtypes1 librados2 librbd1 libsdl1.2debian
libspice-server1 libssh2-1 libsslcommon2 libtelnet-utils libtelnet2 libtomcat8-java libusbredirparser1 libvncserver-config libvncserver1
libvorbis-java libvorbisidec1 libvorbisspi-java libxen-4.6 libxenstore3.0 linux-headers-4.4.0-67 linux-headers-4.4.0-67-generic
linux-image-4.4.0-67-generic linux-image-extra-4.4.0-67-generic linux-signed-image-4.4.0-67-generic openjdk-8-jdk openjdk-8-jdk-headless
openvswitch-common openvswitch-pki openvswitch-switch openvswitch-testcontroller php php-imagick php-sqlite3 php-xml php7.0 php7.0-sqlite3
php7.0-xml python-six sqlite3 tcpdump telnet tomcat8 tomcat8-admin tomcat8-common tomcat8-docs uml-utilities
Use 'apt autoremove' to remove them.
The following packages will be upgraded:
grub-common grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-signed grub2-common shim shim-signed
7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,978 kB of archives.
After this operation, 348 kB disk space will be freed.
Do you want to continue? [Y/n] Y
Get:1 http://ru.archive.ubuntu.com/ubuntu xenial-updates/main amd64 grub-efi-amd64-signed amd64 1.66.9+2.02~beta2-36ubuntu3.9 [294 kB]
Get:2 http://ru.archive.ubuntu.com/ubuntu xenial-updates/main amd64 grub-efi-amd64 amd64 2.02~beta2-36ubuntu3.9 [65.8 kB]
Get:3 http://ru.archive.ubuntu.com/ubuntu xenial-updates/main amd64 grub-efi-amd64-bin amd64 2.02~beta2-36ubuntu3.9 [658 kB]
Get:4 http://ru.archive.ubuntu.com/ubuntu xenial-updates/main amd64 shim-signed amd64 1.27~16.04.1+0.9+1474479173.6c180c6-1ubuntu1 [310 kB]
Get:5 http://ru.archive.ubuntu.com/ubuntu xenial-updates/main amd64 shim amd64 0.9+1474479173.6c180c6-1ubuntu1 [434 kB]
Get:6 http://ru.archive.ubuntu.com/ubuntu xenial-updates/main amd64 grub2-common amd64 2.02~beta2-36ubuntu3.9 [510 kB]
Get:7 http://ru.archive.ubuntu.com/ubuntu xenial-updates/main amd64 grub-common amd64 2.02~beta2-36ubuntu3.9 [1,706 kB]
Fetched 3,978 kB in 0s (8,300 kB/s)
Preconfiguring packages ...
(Reading database ... 293655 files and directories currently installed.)
Preparing to unpack .../grub-efi-amd64-signed_1.66.9+2.02~beta2-36ubuntu3.9_amd64.deb ...
Unpacking grub-efi-amd64-signed (1.66.9+2.02~beta2-36ubuntu3.9) over (1.66.8+2.02~beta2-36ubuntu3.8) ...
Preparing to unpack .../grub-efi-amd64_2.02~beta2-36ubuntu3.9_amd64.deb ...
Unpacking grub-efi-amd64 (2.02~beta2-36ubuntu3.9) over (2.02~beta2-36ubuntu3.8) ...
Preparing to unpack .../grub-efi-amd64-bin_2.02~beta2-36ubuntu3.9_amd64.deb ...
Unpacking grub-efi-amd64-bin (2.02~beta2-36ubuntu3.9) over (2.02~beta2-36ubuntu3.8) ...
Preparing to unpack .../shim-signed_1.27~16.04.1+0.9+1474479173.6c180c6-1ubuntu1_amd64.deb ...
Unpacking shim-signed (1.27~16.04.1+0.9+1474479173.6c180c6-1ubuntu1) over (1.19~16.04.1+0.8-0ubuntu2) ...
Preparing to unpack .../shim_0.9+1474479173.6c180c6-1ubuntu1_amd64.deb ...
Unpacking shim (0.9+1474479173.6c180c6-1ubuntu1) over (0.8-0ubuntu2) ...
Preparing to unpack .../grub2-common_2.02~beta2-36ubuntu3.9_amd64.deb ...
Unpacking grub2-common (2.02~beta2-36ubuntu3.9) over (2.02~beta2-36ubuntu3.8) ...
Preparing to unpack .../grub-common_2.02~beta2-36ubuntu3.9_amd64.deb ...
Unpacking grub-common (2.02~beta2-36ubuntu3.9) over (2.02~beta2-36ubuntu3.8) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu16) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up grub-common (2.02~beta2-36ubuntu3.9) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Setting up grub2-common (2.02~beta2-36ubuntu3.9) ...
Setting up grub-efi-amd64-bin (2.02~beta2-36ubuntu3.9) ...
Setting up grub-efi-amd64 (2.02~beta2-36ubuntu3.9) ...
Installing for x86_64-efi platform.
Installation finished. No error reported.
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.4.14-eve-ng-ukms+
Found initrd image: /boot/initrd.img-4.4.14-eve-ng-ukms+
Found linux image: /boot/vmlinuz-4.4.0-71-generic
Found initrd image: /boot/initrd.img-4.4.0-71-generic
Found linux image: /boot/vmlinuz-4.4.0-67-generic
Found initrd image: /boot/initrd.img-4.4.0-67-generic
Adding boot menu entry for EFI firmware configuration
done
Setting up grub-efi-amd64-signed (1.66.9+2.02~beta2-36ubuntu3.9) ...
Installing for x86_64-efi platform.
Installation finished. No error reported.
Setting up shim (0.9+1474479173.6c180c6-1ubuntu1) ...
Setting up shim-signed (1.27~16.04.1+0.9+1474479173.6c180c6-1ubuntu1) ...
Installing for x86_64-efi platform.
Installation finished. No error reported.
find: â/var/lib/dkmsâ: No such file or directory
No DKMS packages installed: not changing Secure Boot validation state.
root@Mayak:~# DEBIAN_FRONTEND=noninteractive apt-get -y install eve-ng
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-67 linux-headers-4.4.0-67-generic linux-image-4.4.0-67-generic linux-image-extra-4.4.0-67-generic
linux-signed-image-4.4.0-67-generic
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
eve-ng-guacamole
The following NEW packages will be installed:
eve-ng eve-ng-guacamole
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/34.5 MB of archives.
After this operation, 46.6 MB of additional disk space will be used.
(Reading database ... 293655 files and directories currently installed.)
Preparing to unpack .../eve-ng-guacamole_2.0.1-60_amd64.deb ...
Checking MySQL... failed
dpkg: error processing archive /var/cache/apt/archives/eve-ng-guacamole_2.0.1-60_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/eve-ng-guacamole_2.0.1-60_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@Mayak:~#

ecze
Posts: 533
Joined: Wed Mar 15, 2017 1:54 pm

Re: error when running "DEBIAN_FRONTEND=noninteractive apt-get -yq install eve-ng"

Post by ecze » Tue Apr 04, 2017 12:37 pm

After failure, use:
apt-get -f install

EugeneSmirnov
Posts: 8
Joined: Tue Apr 04, 2017 7:05 am

Re: error when running "DEBIAN_FRONTEND=noninteractive apt-get -yq install eve-ng"

Post by EugeneSmirnov » Tue Apr 04, 2017 12:39 pm

Tried once again fully under root and failed again:

root@Mayak:~# wget -O - http://everbx.podzone.net/repo/eczema@ecze.com.gpg.key | sudo apt-key add -
--2017-04-04 16:33:47-- http://everbx.podzone.net/repo/eczema@ecze.com.gpg.key
Resolving everbx.podzone.net (everbx.podzone.net)... 91.134.167.218
Connecting to everbx.podzone.net (everbx.podzone.net)|91.134.167.218|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1702 (1.7K) [application/pgp-keys]
Saving to: âSTDOUTâ

- 100%[=======================================================================>] 1.66K --.-KB/s in 0s

2017-04-04 16:33:48 (164 MB/s) - written to stdout [1702/1702]

OK
root@Mayak:~# apt-get update
Hit:1 http://ru.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://ru.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 http://everbx.podzone.net/repo xenial InRelease
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:5 http://ru.archive.ubuntu.com/ubuntu xenial-backports InRelease
Fetched 102 kB in 0s (214 kB/s)
Reading package lists... Done
root@Mayak:~# sudo add-apt-repository "deb [arch=amd64] http://everbx.podzone.net/repo xenial main"
root@Mayak:~# apt-get update
Hit:1 http://ru.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://ru.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 http://ru.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:4 http://everbx.podzone.net/repo xenial InRelease
Get:5 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Fetched 102 kB in 0s (123 kB/s)
Reading package lists... Done
root@Mayak:~# DEBIAN_FRONTEND=noninteractive apt-get -y install eve-ng
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
authbind bridge-utils cpulimit default-jdk default-jdk-headless eve-ng-dynamips eve-ng-guacamole eve-ng-qemu eve-ng-schema eve-ng-vpcs lib32gcc1
lib32z1 libboost-program-options1.58.0 libboost-random1.58.0 libboost-thread1.58.0 libc6-i386 libcacard0 libcommons-collections3-java
libcommons-dbcp-java libcommons-pool-java libecj-java libfdt1 libice-dev libiscsi2 libjpeg62 libossp-uuid16 libpango1.0-0 libpangox-1.0-0 libpng3
libpthread-stubs0-dev libpulse-java libpulse-jni libqpidcommon2 libqpidtypes1 librados2 librbd1 libsdl1.2debian libsm-dev libspice-server1
libssh2-1 libsslcommon2 libtelnet-utils libtelnet2 libtomcat8-java libusbredirparser1 libvncserver-config libvncserver1 libvorbis-java
libvorbisidec1 libvorbisspi-java libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxen-4.6 libxenstore3.0 libxt-dev openjdk-8-jdk
openjdk-8-jdk-headless openvswitch-common openvswitch-pki openvswitch-switch openvswitch-testcontroller php php-imagick php-sqlite3 php-xml php7.0
php7.0-sqlite3 php7.0-xml python-six sqlite3 tcpdump telnet tomcat8 tomcat8-admin tomcat8-common tomcat8-docs ttf-dejavu-core uml-utilities
x11proto-core-dev x11proto-input-dev x11proto-kb-dev xorg-sgml-doctools xtrans-dev
Suggested packages:
libcommons-collections3-java-doc libcommons-dbcp-java-doc libgeronimo-jta-1.1-spec-java ecj ant libecj-java-gcj libice-doc uuid libsm-doc
libxcb-doc libxt-doc openjdk-8-demo openjdk-8-source visualvm sqlite3-doc libtcnative-1 tomcat8-examples tomcat8-user user-mode-linux
The following NEW packages will be installed:
authbind bridge-utils cpulimit default-jdk default-jdk-headless eve-ng eve-ng-dynamips eve-ng-guacamole eve-ng-qemu eve-ng-schema eve-ng-vpcs
lib32gcc1 lib32z1 libboost-program-options1.58.0 libboost-random1.58.0 libboost-thread1.58.0 libc6-i386 libcacard0 libcommons-collections3-java
libcommons-dbcp-java libcommons-pool-java libecj-java libfdt1 libice-dev libiscsi2 libjpeg62 libossp-uuid16 libpango1.0-0 libpangox-1.0-0 libpng3
libpthread-stubs0-dev libpulse-java libpulse-jni libqpidcommon2 libqpidtypes1 librados2 librbd1 libsdl1.2debian libsm-dev libspice-server1
libssh2-1 libsslcommon2 libtelnet-utils libtelnet2 libtomcat8-java libusbredirparser1 libvncserver-config libvncserver1 libvorbis-java
libvorbisidec1 libvorbisspi-java libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxen-4.6 libxenstore3.0 libxt-dev openjdk-8-jdk
openjdk-8-jdk-headless openvswitch-common openvswitch-pki openvswitch-switch openvswitch-testcontroller php php-imagick php-sqlite3 php-xml php7.0
php7.0-sqlite3 php7.0-xml python-six sqlite3 tcpdump telnet tomcat8 tomcat8-admin tomcat8-common tomcat8-docs ttf-dejavu-core uml-utilities
x11proto-core-dev x11proto-input-dev x11proto-kb-dev xorg-sgml-doctools xtrans-dev
0 upgraded, 87 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/105 MB of archives.
After this operation, 248 MB of additional disk space will be used.
Extracting templates from packages: 100%
Preconfiguring packages ...
Selecting previously unselected package eve-ng-schema.
(Reading database ... 259353 files and directories currently installed.)
Preparing to unpack .../eve-ng-schema_2.0.1-60_amd64.deb ...
Setting MySQL root password... Unpacking eve-ng-schema (2.0.1-60) ...
Selecting previously unselected package libjpeg62:amd64.
Preparing to unpack .../libjpeg62_1%3a6b2-2_amd64.deb ...
Unpacking libjpeg62:amd64 (1:6b2-2) ...
Selecting previously unselected package libpng3:amd64.
Preparing to unpack .../libpng3_1.2.54-1ubuntu1_amd64.deb ...
Unpacking libpng3:amd64 (1.2.54-1ubuntu1) ...
Selecting previously unselected package libossp-uuid16:amd64.
Preparing to unpack .../libossp-uuid16_1.6.2-1.5build2_amd64.deb ...
Unpacking libossp-uuid16:amd64 (1.6.2-1.5build2) ...
Selecting previously unselected package libpangox-1.0-0:amd64.
Preparing to unpack .../libpangox-1.0-0_0.0.2-5_amd64.deb ...
Unpacking libpangox-1.0-0:amd64 (0.0.2-5) ...
Selecting previously unselected package libpango1.0-0:amd64.
Preparing to unpack .../libpango1.0-0_1.38.1-1_amd64.deb ...
Unpacking libpango1.0-0:amd64 (1.38.1-1) ...
Selecting previously unselected package libssh2-1:amd64.
Preparing to unpack .../libssh2-1_1.5.0-2ubuntu0.1_amd64.deb ...
Unpacking libssh2-1:amd64 (1.5.0-2ubuntu0.1) ...
Selecting previously unselected package libtelnet2.
Preparing to unpack .../libtelnet2_0.21-4_amd64.deb ...
Unpacking libtelnet2 (0.21-4) ...
Selecting previously unselected package libtelnet-utils.
Preparing to unpack .../libtelnet-utils_0.21-4_amd64.deb ...
Unpacking libtelnet-utils (0.21-4) ...
Selecting previously unselected package libvncserver1:amd64.
Preparing to unpack .../libvncserver1_0.9.10+dfsg-3ubuntu0.16.04.1_amd64.deb ...
Unpacking libvncserver1:amd64 (0.9.10+dfsg-3ubuntu0.16.04.1) ...
Selecting previously unselected package libvncserver-config.
Preparing to unpack .../libvncserver-config_0.9.10+dfsg-3ubuntu0.16.04.1_amd64.deb ...
Unpacking libvncserver-config (0.9.10+dfsg-3ubuntu0.16.04.1) ...
Selecting previously unselected package libpulse-jni.
Preparing to unpack .../libpulse-jni_2.4.7-1_amd64.deb ...
Unpacking libpulse-jni (2.4.7-1) ...
Selecting previously unselected package libpulse-java.
Preparing to unpack .../libpulse-java_2.4.7-1_all.deb ...
Unpacking libpulse-java (2.4.7-1) ...
Selecting previously unselected package libboost-program-options1.58.0:amd64.
Preparing to unpack .../libboost-program-options1.58.0_1.58.0+dfsg-5ubuntu3.1_amd64.deb ...
Unpacking libboost-program-options1.58.0:amd64 (1.58.0+dfsg-5ubuntu3.1) ...
Selecting previously unselected package libqpidtypes1:amd64.
Preparing to unpack .../libqpidtypes1_0.16-9ubuntu2_amd64.deb ...
Unpacking libqpidtypes1:amd64 (0.16-9ubuntu2) ...
Selecting previously unselected package libqpidcommon2:amd64.
Preparing to unpack .../libqpidcommon2_0.16-9ubuntu2_amd64.deb ...
Unpacking libqpidcommon2:amd64 (0.16-9ubuntu2) ...
Selecting previously unselected package libsslcommon2:amd64.
Preparing to unpack .../libsslcommon2_0.16-9ubuntu2_amd64.deb ...
Unpacking libsslcommon2:amd64 (0.16-9ubuntu2) ...
Selecting previously unselected package libvorbis-java.
Preparing to unpack .../libvorbis-java_0.6-1_all.deb ...
Unpacking libvorbis-java (0.6-1) ...
Selecting previously unselected package libvorbisidec1.
Preparing to unpack .../libvorbisidec1_1.0.2+svn18153-0.2_amd64.deb ...
Unpacking libvorbisidec1 (1.0.2+svn18153-0.2) ...
Selecting previously unselected package libvorbisspi-java.
Preparing to unpack .../libvorbisspi-java_1.0.3-3_all.deb ...
Unpacking libvorbisspi-java (1.0.3-3) ...
Selecting previously unselected package openjdk-8-jdk-headless:amd64.
Preparing to unpack .../openjdk-8-jdk-headless_8u121-b13-0ubuntu1.16.04.2_amd64.deb ...
Unpacking openjdk-8-jdk-headless:amd64 (8u121-b13-0ubuntu1.16.04.2) ...
Selecting previously unselected package default-jdk-headless.
Preparing to unpack .../default-jdk-headless_2%3a1.8-56ubuntu2_amd64.deb ...
Unpacking default-jdk-headless (2:1.8-56ubuntu2) ...
Selecting previously unselected package openjdk-8-jdk:amd64.
Preparing to unpack .../openjdk-8-jdk_8u121-b13-0ubuntu1.16.04.2_amd64.deb ...
Unpacking openjdk-8-jdk:amd64 (8u121-b13-0ubuntu1.16.04.2) ...
Selecting previously unselected package default-jdk.
Preparing to unpack .../default-jdk_2%3a1.8-56ubuntu2_amd64.deb ...
Unpacking default-jdk (2:1.8-56ubuntu2) ...
Selecting previously unselected package telnet.
Preparing to unpack .../telnet_0.17-40_amd64.deb ...
Unpacking telnet (0.17-40) ...
Selecting previously unselected package libecj-java.
Preparing to unpack .../libecj-java_3.10.1-2ubuntu1_all.deb ...
Unpacking libecj-java (3.10.1-2ubuntu1) ...
Selecting previously unselected package libtomcat8-java.
Preparing to unpack .../libtomcat8-java_8.0.32-1ubuntu1.3_all.deb ...
Unpacking libtomcat8-java (8.0.32-1ubuntu1.3) ...
Selecting previously unselected package tomcat8-common.
Preparing to unpack .../tomcat8-common_8.0.32-1ubuntu1.3_all.deb ...
Unpacking tomcat8-common (8.0.32-1ubuntu1.3) ...
Selecting previously unselected package tomcat8.
Preparing to unpack .../tomcat8_8.0.32-1ubuntu1.3_all.deb ...
Unpacking tomcat8 (8.0.32-1ubuntu1.3) ...
Selecting previously unselected package tomcat8-admin.
Preparing to unpack .../tomcat8-admin_8.0.32-1ubuntu1.3_all.deb ...
Unpacking tomcat8-admin (8.0.32-1ubuntu1.3) ...
Selecting previously unselected package tomcat8-docs.
Preparing to unpack .../tomcat8-docs_8.0.32-1ubuntu1.3_all.deb ...
Unpacking tomcat8-docs (8.0.32-1ubuntu1.3) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for doc-base (0.10.7) ...
Processing 2 added doc-base files...
Processing triggers for menu (2.1.47ubuntu1) ...
Processing triggers for systemd (229-4ubuntu16) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up eve-ng-schema (2.0.1-60) ...
(Reading database ... 260203 files and directories currently installed.)
Preparing to unpack .../eve-ng-guacamole_2.0.1-60_amd64.deb ...
Checking MySQL... failed
dpkg: error processing archive /var/cache/apt/archives/eve-ng-guacamole_2.0.1-60_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Selecting previously unselected package bridge-utils.
Preparing to unpack .../bridge-utils_1.5-9ubuntu1_amd64.deb ...
Unpacking bridge-utils (1.5-9ubuntu1) ...
Selecting previously unselected package cpulimit.
Preparing to unpack .../cpulimit_2.2-1_amd64.deb ...
Unpacking cpulimit (2.2-1) ...
Selecting previously unselected package libc6-i386.
Preparing to unpack .../libc6-i386_2.23-0ubuntu7_amd64.deb ...
Unpacking libc6-i386 (2.23-0ubuntu7) ...
Selecting previously unselected package lib32gcc1.
Preparing to unpack .../lib32gcc1_1%3a6.0.1-0ubuntu1_amd64.deb ...
Unpacking lib32gcc1 (1:6.0.1-0ubuntu1) ...
Selecting previously unselected package lib32z1.
Preparing to unpack .../lib32z1_1%3a1.2.8.dfsg-2ubuntu4_amd64.deb ...
Unpacking lib32z1 (1:1.2.8.dfsg-2ubuntu4) ...
Selecting previously unselected package php7.0-xml.
Preparing to unpack .../php7.0-xml_7.0.15-0ubuntu0.16.04.4_amd64.deb ...
Unpacking php7.0-xml (7.0.15-0ubuntu0.16.04.4) ...
Selecting previously unselected package php-xml.
Preparing to unpack .../php-xml_1%3a7.0+35ubuntu6_all.deb ...
Unpacking php-xml (1:7.0+35ubuntu6) ...
Selecting previously unselected package libsdl1.2debian:amd64.
Preparing to unpack .../libsdl1.2debian_1.2.15+dfsg1-3_amd64.deb ...
Unpacking libsdl1.2debian:amd64 (1.2.15+dfsg1-3) ...
Selecting previously unselected package python-six.
Preparing to unpack .../python-six_1.10.0-3_all.deb ...
Unpacking python-six (1.10.0-3) ...
Selecting previously unselected package openvswitch-common.
Preparing to unpack .../openvswitch-common_2.5.0-0ubuntu1_amd64.deb ...
Unpacking openvswitch-common (2.5.0-0ubuntu1) ...
Selecting previously unselected package openvswitch-pki.
Preparing to unpack .../openvswitch-pki_2.5.0-0ubuntu1_all.deb ...
Unpacking openvswitch-pki (2.5.0-0ubuntu1) ...
Selecting previously unselected package openvswitch-testcontroller.
Preparing to unpack .../openvswitch-testcontroller_2.5.0-0ubuntu1_amd64.deb ...
Unpacking openvswitch-testcontroller (2.5.0-0ubuntu1) ...
Selecting previously unselected package openvswitch-switch.
Preparing to unpack .../openvswitch-switch_2.5.0-0ubuntu1_amd64.deb ...
Unpacking openvswitch-switch (2.5.0-0ubuntu1) ...
Selecting previously unselected package php7.0.
Preparing to unpack .../php7.0_7.0.15-0ubuntu0.16.04.4_all.deb ...
Unpacking php7.0 (7.0.15-0ubuntu0.16.04.4) ...
Selecting previously unselected package php.
Preparing to unpack .../php_1%3a7.0+35ubuntu6_all.deb ...
Unpacking php (1:7.0+35ubuntu6) ...
Selecting previously unselected package php-imagick.
Preparing to unpack .../php-imagick_3.4.0~rc6-1ubuntu3_amd64.deb ...
Unpacking php-imagick (3.4.0~rc6-1ubuntu3) ...
Selecting previously unselected package php7.0-sqlite3.
Preparing to unpack .../php7.0-sqlite3_7.0.15-0ubuntu0.16.04.4_amd64.deb ...
Unpacking php7.0-sqlite3 (7.0.15-0ubuntu0.16.04.4) ...
Selecting previously unselected package php-sqlite3.
Preparing to unpack .../php-sqlite3_1%3a7.0+35ubuntu6_all.deb ...
Unpacking php-sqlite3 (1:7.0+35ubuntu6) ...
Selecting previously unselected package sqlite3.
Preparing to unpack .../sqlite3_3.11.0-1ubuntu1_amd64.deb ...
Unpacking sqlite3 (3.11.0-1ubuntu1) ...
Selecting previously unselected package tcpdump.
Preparing to unpack .../tcpdump_4.9.0-1ubuntu1~ubuntu16.04.1_amd64.deb ...
Unpacking tcpdump (4.9.0-1ubuntu1~ubuntu16.04.1) ...
Selecting previously unselected package uml-utilities.
Preparing to unpack .../uml-utilities_20070815-1.4_amd64.deb ...
Unpacking uml-utilities (20070815-1.4) ...
Selecting previously unselected package eve-ng-dynamips.
Preparing to unpack .../eve-ng-dynamips_2.0.2-2_amd64.deb ...
Unpacking eve-ng-dynamips (2.0.2-2) ...
Selecting previously unselected package libcacard0:amd64.
Preparing to unpack .../libcacard0_1%3a2.5.0-2_amd64.deb ...
Unpacking libcacard0:amd64 (1:2.5.0-2) ...
Selecting previously unselected package libfdt1:amd64.
Preparing to unpack .../libfdt1_1.4.0+dfsg-2_amd64.deb ...
Unpacking libfdt1:amd64 (1.4.0+dfsg-2) ...
Selecting previously unselected package libboost-random1.58.0:amd64.
Preparing to unpack .../libboost-random1.58.0_1.58.0+dfsg-5ubuntu3.1_amd64.deb ...
Unpacking libboost-random1.58.0:amd64 (1.58.0+dfsg-5ubuntu3.1) ...
Selecting previously unselected package libboost-thread1.58.0:amd64.
Preparing to unpack .../libboost-thread1.58.0_1.58.0+dfsg-5ubuntu3.1_amd64.deb ...
Unpacking libboost-thread1.58.0:amd64 (1.58.0+dfsg-5ubuntu3.1) ...
Selecting previously unselected package librados2.
Preparing to unpack .../librados2_10.2.6-0ubuntu0.16.04.1_amd64.deb ...
Unpacking librados2 (10.2.6-0ubuntu0.16.04.1) ...
Selecting previously unselected package librbd1.
Preparing to unpack .../librbd1_10.2.6-0ubuntu0.16.04.1_amd64.deb ...
Unpacking librbd1 (10.2.6-0ubuntu0.16.04.1) ...
Selecting previously unselected package libiscsi2:amd64.
Preparing to unpack .../libiscsi2_1.12.0-2_amd64.deb ...
Unpacking libiscsi2:amd64 (1.12.0-2) ...
Selecting previously unselected package libspice-server1:amd64.
Preparing to unpack .../libspice-server1_0.12.6-4ubuntu0.2_amd64.deb ...
Unpacking libspice-server1:amd64 (0.12.6-4ubuntu0.2) ...
Selecting previously unselected package libusbredirparser1:amd64.
Preparing to unpack .../libusbredirparser1_0.7.1-1_amd64.deb ...
Unpacking libusbredirparser1:amd64 (0.7.1-1) ...
Selecting previously unselected package libxenstore3.0:amd64.
Preparing to unpack .../libxenstore3.0_4.6.5-0ubuntu1_amd64.deb ...
Unpacking libxenstore3.0:amd64 (4.6.5-0ubuntu1) ...
Selecting previously unselected package libxen-4.6:amd64.
Preparing to unpack .../libxen-4.6_4.6.5-0ubuntu1_amd64.deb ...
Unpacking libxen-4.6:amd64 (4.6.5-0ubuntu1) ...
Selecting previously unselected package eve-ng-qemu.
Preparing to unpack .../eve-ng-qemu_2.0.2-16_amd64.deb ...
Unpacking eve-ng-qemu (2.0.2-16) ...
Selecting previously unselected package eve-ng-vpcs.
Preparing to unpack .../eve-ng-vpcs_1.0-eve-ng_amd64.deb ...
Unpacking eve-ng-vpcs (1.0-eve-ng) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Processing triggers for libapache2-mod-php7.0 (7.0.15-0ubuntu0.16.04.4) ...
Processing triggers for systemd (229-4ubuntu16) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
/var/cache/apt/archives/eve-ng-guacamole_2.0.1-60_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

root@Mayak:~#

ecze
Posts: 533
Joined: Wed Mar 15, 2017 1:54 pm

Re: error when running "DEBIAN_FRONTEND=noninteractive apt-get -yq install eve-ng"

Post by ecze » Tue Apr 04, 2017 12:41 pm

now type : apt-get -f install

EugeneSmirnov
Posts: 8
Joined: Tue Apr 04, 2017 7:05 am

Re: error when running "DEBIAN_FRONTEND=noninteractive apt-get -yq install eve-ng"

Post by EugeneSmirnov » Tue Apr 04, 2017 12:46 pm

ecze wrote:
Tue Apr 04, 2017 12:37 pm
After failure, use:
apt-get -f install
Tried that but it seems no luck:

root@Mayak:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
<output omitted>
Setting up libvorbisidec1 (1.0.2+svn18153-0.2) ...
Setting up openvswitch-common (2.5.0-0ubuntu1) ...
Setting up openvswitch-pki (2.5.0-0ubuntu1) ...
Setting up openvswitch-switch (2.5.0-0ubuntu1) ...
update-alternatives: using /usr/lib/openvswitch-switch/ovs-vswitchd to provide /usr/sbin/ovs-vswitchd (ovs-vswitchd) in auto mode
openvswitch-nonetwork.service is a disabled or a static unit, not starting it.
Setting up openvswitch-testcontroller (2.5.0-0ubuntu1) ...
Setting up uml-utilities (20070815-1.4) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Processing triggers for menu (2.1.47ubuntu1) ...
Processing triggers for libapache2-mod-php7.0 (7.0.15-0ubuntu0.16.04.4) ...
root@Mayak:~#
root@Mayak:~#
root@Mayak:~# DEBIAN_FRONTEND=noninteractive apt-get -y install eve-ng
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
eve-ng-guacamole
The following NEW packages will be installed:
eve-ng eve-ng-guacamole
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/34.5 MB of archives.
After this operation, 46.6 MB of additional disk space will be used.
(Reading database ... 261341 files and directories currently installed.)
Preparing to unpack .../eve-ng-guacamole_2.0.1-60_amd64.deb ...
Checking MySQL... failed
dpkg: error processing archive /var/cache/apt/archives/eve-ng-guacamole_2.0.1-60_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/eve-ng-guacamole_2.0.1-60_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@Mayak:~#

EugeneSmirnov
Posts: 8
Joined: Tue Apr 04, 2017 7:05 am

Re: error when running "DEBIAN_FRONTEND=noninteractive apt-get -yq install eve-ng"

Post by EugeneSmirnov » Tue Apr 04, 2017 12:48 pm

ecze wrote:
Tue Apr 04, 2017 12:41 pm
now type : apt-get -f install
root@Mayak:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
bridge-utils cpulimit default-jdk default-jdk-headless eve-ng-dynamips eve-ng-qemu eve-ng-schema eve-ng-vpcs lib32gcc1 lib32z1
libboost-program-options1.58.0 libboost-random1.58.0 libboost-thread1.58.0 libc6-i386 libcacard0 libecj-java libfdt1 libiscsi2 libjpeg62
libossp-uuid16 libpango1.0-0 libpangox-1.0-0 libpng3 libpulse-java libpulse-jni libqpidcommon2 libqpidtypes1 librados2 librbd1 libsdl1.2debian
libspice-server1 libssh2-1 libsslcommon2 libtelnet-utils libtelnet2 libtomcat8-java libusbredirparser1 libvncserver-config libvncserver1
libvorbis-java libvorbisidec1 libvorbisspi-java libxen-4.6 libxenstore3.0 openjdk-8-jdk openjdk-8-jdk-headless openvswitch-common openvswitch-pki
openvswitch-switch openvswitch-testcontroller php php-imagick php-sqlite3 php-xml php7.0 php7.0-sqlite3 php7.0-xml python-six sqlite3 tcpdump
telnet tomcat8 tomcat8-admin tomcat8-common tomcat8-docs uml-utilities
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@Mayak:~#

ecze
Posts: 533
Joined: Wed Mar 15, 2017 1:54 pm

Re: error when running "DEBIAN_FRONTEND=noninteractive apt-get -yq install eve-ng"

Post by ecze » Tue Apr 04, 2017 12:48 pm

C'mon on skype chan please.

We have to desinstall/purge mysql at first...
Seems that you have mysql installed with wrong credentials. so guacamole cannot be installed

E.

EugeneSmirnov
Posts: 8
Joined: Tue Apr 04, 2017 7:05 am

Re: error when running "DEBIAN_FRONTEND=noninteractive apt-get -yq install eve-ng"

Post by EugeneSmirnov » Tue Apr 04, 2017 12:50 pm

ecze wrote:
Tue Apr 04, 2017 12:48 pm
C'mon on skype chan please.

We have to desinstall/purge mysql at first...
Seems that you have mysql installed with wrong credentials. so guacamole cannot be installed

E.
skype: tiayanshan

Post Reply