Skip to content

Add dependency to ubuntu-release-upgrader-core #5781

@kushaldas

Description

@kushaldas

Description

securedrop-config package should depend on ubuntu-release-upgrader-core package.

Steps to Reproduce

While trying to install SecureDrop on Focal on prod vm based on bento/ubuntu-20.04 (libvirt, 202008.16.0) image, the securedrop-config package postinstallation failed as the ubuntu-release-upgrader-core package is missing.

Expected Behavior

The installation should finish normally.

Actual Behavior

TASK [ossec : Install securedrop-ossec-agent package.] *********************************************************
fatal: [app]: FAILED! => {"cache_update_time": 1608709951, "cache_updated": false, "changed": false, "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\"      install 'securedrop-ossec-agent'' failed: No apport report written because the error message indicates its a followup error from a previous failure.\nE: Sub-process /usr/bin/dpkg returned an error code (1)\n", "rc": 100, "stderr": "No apport report written because the error message indicates its a followup error from a previous failure.\nE: Sub-process /usr/bin/dpkg returned an error code (1)\n", "stderr_lines": ["No apport report written because the error message indicates its a followup error from a previous failure.", "E: Sub-process /usr/bin/dpkg returned an error code (1)"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following additional packages will be installed:\n  expect inotify-tools libinotifytools0 libtcl8.6 ossec-agent\n  securedrop-config tcl-expect tcl8.6\nSuggested packages:\n  tk8.6 tcl-tclreadline\nThe following NEW packages will be installed:\n  expect inotify-tools libinotifytools0 libtcl8.6 ossec-agent\n  securedrop-config securedrop-ossec-agent tcl-expect tcl8.6\n0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.\nNeed to get 1496 kB of archives.\nAfter this operation, 4868 kB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu focal/main amd64 libtcl8.6 amd64 8.6.10+dfsg-1 [902 kB]\nGet:2 https://apt-test.freedom.press focal/main amd64 ossec-agent amd64 3.6.0+focal [289 kB]\nGet:3 http://archive.ubuntu.com/ubuntu focal/main amd64 tcl8.6 amd64 8.6.10+dfsg-1 [14.8 kB]\nGet:4 http://archive.ubuntu.com/ubuntu focal/universe amd64 tcl-expect amd64 5.45.4-2build1 [105 kB]\nGet:5 http://archive.ubuntu.com/ubuntu focal/universe amd64 expect amd64 5.45.4-2build1 [137 kB]\nGet:6 http://archive.ubuntu.com/ubuntu focal/universe amd64 libinotifytools0 amd64 3.14-8 [17.8 kB]\nGet:7 http://archive.ubuntu.com/ubuntu focal/universe amd64 inotify-tools amd64 3.14-8 [22.8 kB]\nGet:8 https://apt-test.freedom.press focal/main amd64 securedrop-config all 0.1.3+1.8.0~rc1+focal [2804 B]\nGet:9 https://apt-test.freedom.press focal/main amd64 securedrop-ossec-agent amd64 3.6.0+1.8.0~rc1+focal [4660 B]\nFetched 1496 kB in 2s (796 kB/s)\nSelecting previously unselected package libtcl8.6:amd64.\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 ... 48880 files and directories currently installed.)\r\nPreparing to unpack .../0-libtcl8.6_8.6.10+dfsg-1_amd64.deb ...\r\nUnpacking libtcl8.6:amd64 (8.6.10+dfsg-1) ...\r\nSelecting previously unselected package tcl8.6.\r\nPreparing to unpack .../1-tcl8.6_8.6.10+dfsg-1_amd64.deb ...\r\nUnpacking tcl8.6 (8.6.10+dfsg-1) ...\r\nSelecting previously unselected package tcl-expect:amd64.\r\nPreparing to unpack .../2-tcl-expect_5.45.4-2build1_amd64.deb ...\r\nUnpacking tcl-expect:amd64 (5.45.4-2build1) ...\r\nSelecting previously unselected package expect.\r\nPreparing to unpack .../3-expect_5.45.4-2build1_amd64.deb ...\r\nUnpacking expect (5.45.4-2build1) ...\r\nSelecting previously unselected package libinotifytools0:amd64.\r\nPreparing to unpack .../4-libinotifytools0_3.14-8_amd64.deb ...\r\nUnpacking libinotifytools0:amd64 (3.14-8) ...\r\nSelecting previously unselected package inotify-tools.\r\nPreparing to unpack .../5-inotify-tools_3.14-8_amd64.deb ...\r\nUnpacking inotify-tools (3.14-8) ...\r\nSelecting previously unselected package ossec-agent.\r\nPreparing to unpack .../6-ossec-agent_3.6.0+focal_amd64.deb ...\r\nUnpacking ossec-agent (3.6.0+focal) ...\r\nSelecting previously unselected package securedrop-config.\r\nPreparing to unpack .../7-securedrop-config_0.1.3+1.8.0~rc1+focal_all.deb ...\r\nUnpacking securedrop-config (0.1.3+1.8.0~rc1+focal) ...\r\nSelecting previously unselected package securedrop-ossec-agent.\r\nPreparing to unpack .../8-securedrop-ossec-agent_3.6.0+1.8.0~rc1+focal_amd64.deb ...\r\nUnpacking securedrop-ossec-agent (3.6.0+1.8.0~rc1+focal) ...\r\nReplacing files in old package ossec-agent (3.6.0+focal) ...\r\nSetting up libinotifytools0:amd64 (3.14-8) ...\r\nSetting up libtcl8.6:amd64 (8.6.10+dfsg-1) ...\r\nSetting up securedrop-config (0.1.3+1.8.0~rc1+focal) ...\r\n+ manage_tor_repo_config\r\n+ rm -f /etc/apt/sources.list.d/deb_torproject_org_torproject_org.list\r\n+ rm -f /etc/apt/sources.list.d/tor_apt_freedom_press.list\r\n+ apt_security_list=/etc/apt/security.list\r\n+ [ -f /etc/apt/security.list ]\r\n+ remove_2fa_tty_req\r\n+ auth_file=/etc/pam.d/common-auth\r\n+ sed -i /^auth\\ required\\ pam_google.*/d /etc/pam.d/common-auth\r\n+ grep -qF PasswordAuthentication no /etc/ssh/sshd_config\r\n+ echo PasswordAuthentication no\r\n+ sed -i /^UsePAM\\ /s/\\ .*/\\ no/ /etc/ssh/sshd_config\r\n+ sed -i /^ChallengeResponseAuthentication\\ /s/\\ .*/\\ no/ /etc/ssh/sshd_config\r\n+ service ssh restart\r\n+ update_release_prompt\r\n+ set -e\r\n+ upgrade_config=/etc/update-manager/release-upgrades\r\n+ sed -i s/Prompt=.*/Prompt=never/ /etc/update-manager/release-upgrades\r\nsed: can't read /etc/update-manager/release-upgrades: No such file or directory\r\ndpkg: error processing package securedrop-config (--configure):\r\n installed securedrop-config package post-installation script subprocess returned error exit status 2\r\nSetting up inotify-tools (3.14-8) ...\r\nSetting up tcl8.6 (8.6.10+dfsg-1) ...\r\nSetting up tcl-expect:amd64 (5.45.4-2build1) ...\r\ndpkg: dependency problems prevent configuration of securedrop-ossec-agent:\r\n securedrop-ossec-agent depends on securedrop-config; however:\r\n  Package securedrop-config is not configured yet.\r\n\r\ndpkg: error processing package securedrop-ossec-agent (--configure):\r\n dependency problems - leaving unconfigured\r\nSetting up expect (5.45.4-2build1) ...\r\nSetting up ossec-agent (3.6.0+focal) ...\r\nProcessing triggers for systemd (245.4-4ubuntu3.4) ...\r\nProcessing triggers for man-db (2.9.1-1) ...\r\nProcessing triggers for libc-bin (2.31-0ubuntu9.2) ...\r\nErrors were encountered while processing:\r\n securedrop-config\r\n securedrop-ossec-agent\r\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following additional packages will be installed:", "  expect inotify-tools libinotifytools0 libtcl8.6 ossec-agent", "  securedrop-config tcl-expect tcl8.6", "Suggested packages:", "  tk8.6 tcl-tclreadline", "The following NEW packages will be installed:", "  expect inotify-tools libinotifytools0 libtcl8.6 ossec-agent", "  securedrop-config securedrop-ossec-agent tcl-expect tcl8.6", "0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.", "Need to get 1496 kB of archives.", "After this operation, 4868 kB of additional disk space will be used.", "Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 libtcl8.6 amd64 8.6.10+dfsg-1 [902 kB]", "Get:2 https://apt-test.freedom.press focal/main amd64 ossec-agent amd64 3.6.0+focal [289 kB]", "Get:3 http://archive.ubuntu.com/ubuntu focal/main amd64 tcl8.6 amd64 8.6.10+dfsg-1 [14.8 kB]", "Get:4 http://archive.ubuntu.com/ubuntu focal/universe amd64 tcl-expect amd64 5.45.4-2build1 [105 kB]", "Get:5 http://archive.ubuntu.com/ubuntu focal/universe amd64 expect amd64 5.45.4-2build1 [137 kB]", "Get:6 http://archive.ubuntu.com/ubuntu focal/universe amd64 libinotifytools0 amd64 3.14-8 [17.8 kB]", "Get:7 http://archive.ubuntu.com/ubuntu focal/universe amd64 inotify-tools amd64 3.14-8 [22.8 kB]", "Get:8 https://apt-test.freedom.press focal/main amd64 securedrop-config all 0.1.3+1.8.0~rc1+focal [2804 B]", "Get:9 https://apt-test.freedom.press focal/main amd64 securedrop-ossec-agent amd64 3.6.0+1.8.0~rc1+focal [4660 B]", "Fetched 1496 kB in 2s (796 kB/s)", "Selecting previously unselected package libtcl8.6:amd64.", "(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 ... 48880 files and directories currently installed.)", "Preparing to unpack .../0-libtcl8.6_8.6.10+dfsg-1_amd64.deb ...", "Unpacking libtcl8.6:amd64 (8.6.10+dfsg-1) ...", "Selecting previously unselected package tcl8.6.", "Preparing to unpack .../1-tcl8.6_8.6.10+dfsg-1_amd64.deb ...", "Unpacking tcl8.6 (8.6.10+dfsg-1) ...", "Selecting previously unselected package tcl-expect:amd64.", "Preparing to unpack .../2-tcl-expect_5.45.4-2build1_amd64.deb ...", "Unpacking tcl-expect:amd64 (5.45.4-2build1) ...", "Selecting previously unselected package expect.", "Preparing to unpack .../3-expect_5.45.4-2build1_amd64.deb ...", "Unpacking expect (5.45.4-2build1) ...", "Selecting previously unselected package libinotifytools0:amd64.", "Preparing to unpack .../4-libinotifytools0_3.14-8_amd64.deb ...", "Unpacking libinotifytools0:amd64 (3.14-8) ...", "Selecting previously unselected package inotify-tools.", "Preparing to unpack .../5-inotify-tools_3.14-8_amd64.deb ...", "Unpacking inotify-tools (3.14-8) ...", "Selecting previously unselected package ossec-agent.", "Preparing to unpack .../6-ossec-agent_3.6.0+focal_amd64.deb ...", "Unpacking ossec-agent (3.6.0+focal) ...", "Selecting previously unselected package securedrop-config.", "Preparing to unpack .../7-securedrop-config_0.1.3+1.8.0~rc1+focal_all.deb ...", "Unpacking securedrop-config (0.1.3+1.8.0~rc1+focal) ...", "Selecting previously unselected package securedrop-ossec-agent.", "Preparing to unpack .../8-securedrop-ossec-agent_3.6.0+1.8.0~rc1+focal_amd64.deb ...", "Unpacking securedrop-ossec-agent (3.6.0+1.8.0~rc1+focal) ...", "Replacing files in old package ossec-agent (3.6.0+focal) ...", "Setting up libinotifytools0:amd64 (3.14-8) ...", "Setting up libtcl8.6:amd64 (8.6.10+dfsg-1) ...", "Setting up securedrop-config (0.1.3+1.8.0~rc1+focal) ...", "+ manage_tor_repo_config", "+ rm -f /etc/apt/sources.list.d/deb_torproject_org_torproject_org.list", "+ rm -f /etc/apt/sources.list.d/tor_apt_freedom_press.list", "+ apt_security_list=/etc/apt/security.list", "+ [ -f /etc/apt/security.list ]", "+ remove_2fa_tty_req", "+ auth_file=/etc/pam.d/common-auth", "+ sed -i /^auth\\ required\\ pam_google.*/d /etc/pam.d/common-auth", "+ grep -qF PasswordAuthentication no /etc/ssh/sshd_config", "+ echo PasswordAuthentication no", "+ sed -i /^UsePAM\\ /s/\\ .*/\\ no/ /etc/ssh/sshd_config", "+ sed -i /^ChallengeResponseAuthentication\\ /s/\\ .*/\\ no/ /etc/ssh/sshd_config", "+ service ssh restart", "+ update_release_prompt", "+ set -e", "+ upgrade_config=/etc/update-manager/release-upgrades", "+ sed -i s/Prompt=.*/Prompt=never/ /etc/update-manager/release-upgrades", "sed: can't read /etc/update-manager/release-upgrades: No such file or directory", "dpkg: error processing package securedrop-config (--configure):", " installed securedrop-config package post-installation script subprocess returned error exit status 2", "Setting up inotify-tools (3.14-8) ...", "Setting up tcl8.6 (8.6.10+dfsg-1) ...", "Setting up tcl-expect:amd64 (5.45.4-2build1) ...", "dpkg: dependency problems prevent configuration of securedrop-ossec-agent:", " securedrop-ossec-agent depends on securedrop-config; however:", "  Package securedrop-config is not configured yet.", "", "dpkg: error processing package securedrop-ossec-agent (--configure):", " dependency problems - leaving unconfigured", "Setting up expect (5.45.4-2build1) ...", "Setting up ossec-agent (3.6.0+focal) ...", "Processing triggers for systemd (245.4-4ubuntu3.4) ...", "Processing triggers for man-db (2.9.1-1) ...", "Processing triggers for libc-bin (2.31-0ubuntu9.2) ...", "Errors were encountered while processing:", " securedrop-config", " securedrop-ossec-agent"]}

Comments

Suggestions to fix, any other relevant information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions