mlandauer / cuttlefish

Transactional email server with a lovely web interface
http://cuttlefish.io
Other
1.54k stars 177 forks source link

newrelix error #329

Closed blackzafiqz closed 5 years ago

blackzafiqz commented 5 years ago

I got this error on ubuntu 18.04

`TASK [newrelic.newrelic-infra : install agent] ***** fatal: [blackzafiqz.me]: FAILED! => {"cache_update_time": 1542354153, "cache_updated": false, "changed": false, "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\" install 'newrelic-infra-rootless' 'newrelic-infra-rootless-beta'' failed: E: Sub-process /usr/bin/dpkg returned an error code (1)\n", "rc": 100, "stderr": "E: Sub-process /usr/bin/dpkg returned an error code (1)\n", "stderr_lines": ["E: Sub-process /usr/bin/dpkg returned an error code (1)"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following package was automatically installed and is no longer required:\n nrjmx\nUse 'apt autoremove' to remove it.\nThe following packages will be REMOVED:\n newrelic-infra newrelic-infra-integrations nri-apache nri-cassandra\n nri-mysql nri-nginx nri-redis\nThe following NEW packages will be installed:\n newrelic-infra-rootless newrelic-infra-rootless-beta\n0 upgraded, 2 newly installed, 7 to remove and 0 not upgraded.\nNeed to get 8930 kB of archives.\nAfter this operation, 13.5 MB disk space will be freed.\nGet:1 https://download.newrelic.com/infrastructure_agent/linux/apt bionic/main amd64 newrelic-infra-rootless amd64 0.0.rootless-rc1.15 [4465 kB]\nGet:2 https://download.newrelic.com/infrastructure_agent/linux/apt bionic/main amd64 newrelic-infra-rootless-beta amd64 0.0.rootless-rc1.16 [4465 kB]\nFetched 8930 kB in 5s (1689 kB/s)\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 255008 files and directories currently installed.)\r\nRemoving newrelic-infra-integrations (1.6.0-1) ...\r\nRemoving nri-redis (1.0.1-1) ...\r\nRemoving nri-apache (1.1.2-1) ...\r\nRemoving nri-cassandra (2.0.2-1) ...\r\nRemoving nri-mysql (1.1.3-1) ...\r\nRemoving nri-nginx (1.0.1-1) ...\r\nRemoving newrelic-infra (1.0.1051) ...\r\nRemoved /etc/systemd/system/multi-user.target.wants/newrelic-infra.service.\r\nSelecting previously unselected package newrelic-infra-rootless.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 254976 files and directories currently installed.)\r\nPreparing to unpack .../newrelic-infra-rootless_0.0.rootless-rc1.15_amd64.deb ...\r\nUnpacking newrelic-infra-rootless (0.0.rootless-rc1.15) ...\r\nSelecting previously unselected package newrelic-infra-rootless-beta.\r\nPreparing to unpack .../newrelic-infra-rootless-beta_0.0.rootless-rc1.16_amd64.deb ...\r\nUnpacking newrelic-infra-rootless-beta (0.0.rootless-rc1.16) ...\r\ndpkg: error processing archive /var/cache/apt/archives/newrelic-infra-rootless-beta_0.0.rootless-rc1.16_amd64.deb (--unpack):\r\n trying to overwrite '/etc/systemd/system/newrelic-infra.service', which is also in package newrelic-infra-rootless 0.0.rootless-rc1.15\r\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following package was automatically installed and is no longer required:", " nrjmx", "Use 'apt autoremove' to remove it.", "The following packages will be REMOVED:", " newrelic-infra newrelic-infra-integrations nri-apache nri-cassandra", " nri-mysql nri-nginx nri-redis", "The following NEW packages will be installed:", " newrelic-infra-rootless newrelic-infra-rootless-beta", "0 upgraded, 2 newly installed, 7 to remove and 0 not upgraded.", "Need to get 8930 kB of archives.", "After this operation, 13.5 MB disk space will be freed.", "Get:1 https://download.newrelic.com/infrastructure_agent/linux/apt bionic/main amd64 newrelic-infra-rootless amd64 0.0.rootless-rc1.15 [4465 kB]", "Get:2 https://download.newrelic.com/infrastructure_agent/linux/apt bionic/main amd64 newrelic-infra-rootless-beta amd64 0.0.rootless-rc1.16 [4465 kB]", "Fetched 8930 kB in 5s (1689 kB/s)", "(Reading database ... ", "(Reading database ... 5%", "(Reading database ... 10%", "(Reading database ... 15%", "(Reading database ... 20%", "(Reading database ... 25%", "(Reading database ... 30%", "(Reading database ... 35%", "(Reading database ... 40%", "(Reading database ... 45%", "(Reading database ... 50%", "(Reading database ... 55%", "(Reading database ... 60%", "(Reading database ... 65%", "(Reading database ... 70%", "(Reading database ... 75%", "(Reading database ... 80%", "(Reading database ... 85%", "(Reading database ... 90%", "(Reading database ... 95%", "(Reading database ... 100%", "(Reading database ... 255008 files and directories currently installed.)", "Removing newrelic-infra-integrations (1.6.0-1) ...", "Removing nri-redis (1.0.1-1) ...", "Removing nri-apache (1.1.2-1) ...", "Removing nri-cassandra (2.0.2-1) ...", "Removing nri-mysql (1.1.3-1) ...", "Removing nri-nginx (1.0.1-1) ...", "Removing newrelic-infra (1.0.1051) ...", "Removed /etc/systemd/system/multi-user.target.wants/newrelic-infra.service.", "Selecting previously unselected package newrelic-infra-rootless.", "(Reading database ... ", "(Reading database ... 5%", "(Reading database ... 10%", "(Reading database ... 15%", "(Reading database ... 20%", "(Reading database ... 25%", "(Reading database ... 30%", "(Reading database ... 35%", "(Reading database ... 40%", "(Reading database ... 45%", "(Reading database ... 50%", "(Reading database ... 55%", "(Reading database ... 60%", "(Reading database ... 65%", "(Reading database ... 70%", "(Reading database ... 75%", "(Reading database ... 80%", "(Reading database ... 85%", "(Reading database ... 90%", "(Reading database ... 95%", "(Reading database ... 100%", "(Reading database ... 254976 files and directories currently installed.)", "Preparing to unpack .../newrelic-infra-rootless_0.0.rootless-rc1.15_amd64.deb ...", "Unpacking newrelic-infra-rootless (0.0.rootless-rc1.15) ...", "Selecting previously unselected package newrelic-infra-rootless-beta.", "Preparing to unpack .../newrelic-infra-rootless-beta_0.0.rootless-rc1.16_amd64.deb ...", "Unpacking newrelic-infra-rootless-beta (0.0.rootless-rc1.16) ...", "dpkg: error processing archive /var/cache/apt/archives/newrelic-infra-rootless-beta_0.0.rootless-rc1.16_amd64.deb (--unpack):", " trying to overwrite '/etc/systemd/system/newrelic-infra.service', which is also in package newrelic-infra-rootless 0.0.rootless-rc1.15"]} to retry, use: --limit @/root/server/cuttlefish/provisioning/playbook.retry

PLAY RECAP ***** blackzafiqz.me : ok=10 changed=0 unreachable=0 failed=1 ` Some other usefull code

`root@blackzafiqz:~/server/cuttlefish# apt install newrelic-infra-integrations newrelic-infra-rootless-beta 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: newrelic-infra-integrations : Depends: nri-apache but it is not going to be installed Depends: nri-cassandra (>= 2.0.0) but it is not going to be installed Depends: nri-mysql but it is not going to be installed Depends: nri-nginx but it is not going to be installed Depends: nri-redis but it is not going to be installed E: Unable to correct problems, you have held broken packages. root@blackzafiqz:~/server/cuttlefish# newrelic-infra --version New Relic Infrastructure Agent version: 0.0.rootless-rc1.15 `