diff --git a/features/airgapped.feature b/features/airgapped.feature index 2f7d806f4e..0547b7414e 100644 --- a/features/airgapped.feature +++ b/features/airgapped.feature @@ -41,11 +41,11 @@ Feature: Performing attach using ua-airgapped When I run `apt-cache policy hello` with sudo Then stdout matches regexp: """ - 510 .*:9000/ubuntu jammy-apps-security/main + 500 .*:9000/ubuntu jammy-apps-security/main """ And stdout matches regexp: """ - 510 .*:8000/ubuntu jammy-infra-security/main + 500 .*:8000/ubuntu jammy-infra-security/main """ Then I verify that running `pro refresh` `with sudo` exits `0` diff --git a/features/attached_enable.feature b/features/attached_enable.feature index 51e023b52b..36547bc952 100644 --- a/features/attached_enable.feature +++ b/features/attached_enable.feature @@ -233,20 +233,16 @@ Feature: Enable command behaviour when attached to an Ubuntu Pro subscription See: sudo pro status """ When I run `apt-cache policy` with sudo - Then apt-cache policy for the following url has priority `510` + Then apt-cache policy for the following url has priority `500` """ -infra-updates/main amd64 Packages """ - And apt-cache policy for the following url has priority `510` - """ - -infra-security/main amd64 Packages - """ And I verify that running `apt update` `with sudo` exits `0` When I run `apt install -y ` with sudo, retrying exit [100] And I run `apt-cache policy ` as non-root Then stdout matches regexp: """ - \s*510 -infra-security/main amd64 Packages + \s*500 -infra-security/main amd64 Packages """ Examples: ubuntu release @@ -1131,11 +1127,11 @@ Feature: Enable command behaviour when attached to an Ubuntu Pro subscription """ And I verify that running `apt update` `with sudo` exits `0` When I run `apt-cache policy` as non-root - Then apt-cache policy for the following url has priority `510` + Then apt-cache policy for the following url has priority `500` """ https://esm.ubuntu.com/apps/ubuntu -apps-updates/main amd64 Packages """ - And apt-cache policy for the following url has priority `510` + And apt-cache policy for the following url has priority `500` """ https://esm.ubuntu.com/apps/ubuntu -apps-security/main amd64 Packages """ @@ -1145,8 +1141,8 @@ Feature: Enable command behaviour when attached to an Ubuntu Pro subscription Then stdout matches regexp: """ Version table: - \s*\*\*\* .* 510 - \s*510 https://esm.ubuntu.com/apps/ubuntu -apps-security/main amd64 Packages + \s*\*\*\* .* 500 + \s*500 https://esm.ubuntu.com/apps/ubuntu -apps-security/main amd64 Packages """ When I verify that running `pro enable esm-apps` `with sudo` exits `1` Then stdout matches regexp diff --git a/features/ubuntu_pro.feature b/features/ubuntu_pro.feature index c02c5b7e1a..1d339ef067 100644 --- a/features/ubuntu_pro.feature +++ b/features/ubuntu_pro.feature @@ -289,19 +289,19 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO image To use a different subscription first run: sudo pro detach. """ When I run `apt-cache policy` with sudo - Then apt-cache policy for the following url has priority `510` + Then apt-cache policy for the following url has priority `500` """ https://esm.ubuntu.com/infra/ubuntu -infra-updates/main amd64 Packages """ - And apt-cache policy for the following url has priority `510` + And apt-cache policy for the following url has priority `500` """ https://esm.ubuntu.com/infra/ubuntu -infra-security/main amd64 Packages """ - And apt-cache policy for the following url has priority `510` + And apt-cache policy for the following url has priority `500` """ https://esm.ubuntu.com/apps/ubuntu -apps-updates/main amd64 Packages """ - And apt-cache policy for the following url has priority `510` + And apt-cache policy for the following url has priority `500` """ https://esm.ubuntu.com/apps/ubuntu -apps-security/main amd64 Packages """ @@ -310,7 +310,7 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO image And I run `apt-cache policy ` as non-root Then stdout matches regexp: """ - \s*510 https://esm.ubuntu.com/infra/ubuntu -infra-updates/main amd64 Packages + \s*500 https://esm.ubuntu.com/infra/ubuntu -infra-updates/main amd64 Packages """ And stdout matches regexp: """ @@ -321,8 +321,8 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO image Then stdout matches regexp: """ Version table: - \s*\*\*\* .* 510 - \s*510 https://esm.ubuntu.com/apps/ubuntu -apps-security/main amd64 Packages + \s*\*\*\* .* 500 + \s*500 https://esm.ubuntu.com/apps/ubuntu -apps-security/main amd64 Packages """ When I create the file `/var/lib/ubuntu-advantage/marker-reboot-cmds-required` with the following: """ @@ -416,19 +416,19 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO image To use a different subscription first run: sudo pro detach. """ When I run `apt-cache policy` with sudo - Then apt-cache policy for the following url has priority `510` + Then apt-cache policy for the following url has priority `500` """ https://esm.ubuntu.com/infra/ubuntu -infra-updates/main amd64 Packages """ - And apt-cache policy for the following url has priority `510` + And apt-cache policy for the following url has priority `500` """ https://esm.ubuntu.com/infra/ubuntu -infra-security/main amd64 Packages """ - And apt-cache policy for the following url has priority `510` + And apt-cache policy for the following url has priority `500` """ https://esm.ubuntu.com/apps/ubuntu -apps-updates/main amd64 Packages """ - And apt-cache policy for the following url has priority `510` + And apt-cache policy for the following url has priority `500` """ https://esm.ubuntu.com/apps/ubuntu -apps-security/main amd64 Packages """ @@ -437,7 +437,7 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO image And I run `apt-cache policy ` as non-root Then stdout matches regexp: """ - \s*510 https://esm.ubuntu.com/infra/ubuntu -infra-updates/main amd64 Packages + \s*500 https://esm.ubuntu.com/infra/ubuntu -infra-updates/main amd64 Packages """ And stdout matches regexp: """ @@ -448,8 +448,8 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO image Then stdout matches regexp: """ Version table: - \s*\*\*\* .* 510 - \s*510 https://esm.ubuntu.com/apps/ubuntu -apps-security/main amd64 Packages + \s*\*\*\* .* 500 + \s*500 https://esm.ubuntu.com/apps/ubuntu -apps-security/main amd64 Packages """ When I create the file `/var/lib/ubuntu-advantage/marker-reboot-cmds-required` with the following: """ @@ -542,19 +542,19 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO image To use a different subscription first run: sudo pro detach. """ When I run `apt-cache policy` with sudo - Then apt-cache policy for the following url has priority `510` + Then apt-cache policy for the following url has priority `500` """ https://esm.ubuntu.com/infra/ubuntu -infra-updates/main amd64 Packages """ - And apt-cache policy for the following url has priority `510` + And apt-cache policy for the following url has priority `500` """ https://esm.ubuntu.com/infra/ubuntu -infra-security/main amd64 Packages """ - And apt-cache policy for the following url has priority `510` + And apt-cache policy for the following url has priority `500` """ https://esm.ubuntu.com/apps/ubuntu -apps-updates/main amd64 Packages """ - And apt-cache policy for the following url has priority `510` + And apt-cache policy for the following url has priority `500` """ https://esm.ubuntu.com/apps/ubuntu -apps-security/main amd64 Packages """ @@ -563,7 +563,7 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO image And I run `apt-cache policy ` as non-root Then stdout matches regexp: """ - \s*510 https://esm.ubuntu.com/infra/ubuntu -infra-updates/main amd64 Packages + \s*500 https://esm.ubuntu.com/infra/ubuntu -infra-updates/main amd64 Packages """ And stdout matches regexp: """ @@ -574,8 +574,8 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO image Then stdout matches regexp: """ Version table: - \s*\*\*\* .* 510 - \s*510 https://esm.ubuntu.com/apps/ubuntu -apps-security/main amd64 Packages + \s*\*\*\* .* 500 + \s*500 https://esm.ubuntu.com/apps/ubuntu -apps-security/main amd64 Packages """ When I create the file `/var/lib/ubuntu-advantage/marker-reboot-cmds-required` with the following: """ diff --git a/features/ubuntu_pro_fips.feature b/features/ubuntu_pro_fips.feature index 37b09e7e5f..dd95853d5c 100644 --- a/features/ubuntu_pro_fips.feature +++ b/features/ubuntu_pro_fips.feature @@ -60,19 +60,19 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO fips image To use a different subscription first run: sudo pro detach. """ When I run `apt-cache policy` with sudo - Then apt-cache policy for the following url has priority `510` + Then apt-cache policy for the following url has priority `500` """ https://esm.ubuntu.com/infra/ubuntu -infra-updates/main amd64 Packages """ - And apt-cache policy for the following url has priority `510` + And apt-cache policy for the following url has priority `500` """ https://esm.ubuntu.com/infra/ubuntu -infra-security/main amd64 Packages """ - And apt-cache policy for the following url has priority `510` + And apt-cache policy for the following url has priority `500` """ https://esm.ubuntu.com/apps/ubuntu -apps-updates/main amd64 Packages """ - And apt-cache policy for the following url has priority `510` + And apt-cache policy for the following url has priority `500` """ https://esm.ubuntu.com/apps/ubuntu -apps-security/main amd64 Packages """ @@ -85,11 +85,11 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO fips image And I run `apt-cache policy ` as non-root Then stdout matches regexp: """ - \s*510 https://esm.ubuntu.com/infra/ubuntu -infra-security/main amd64 Packages + \s*500 https://esm.ubuntu.com/infra/ubuntu -infra-security/main amd64 Packages """ Then stdout matches regexp: """ - \s*510 https://esm.ubuntu.com/infra/ubuntu -infra-updates/main amd64 Packages + \s*500 https://esm.ubuntu.com/infra/ubuntu -infra-updates/main amd64 Packages """ And stdout matches regexp: """ @@ -100,8 +100,8 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO fips image Then stdout matches regexp: """ Version table: - \s*\*\*\* .* 510 - \s*510 https://esm.ubuntu.com/apps/ubuntu -apps-security/main amd64 Packages + \s*\*\*\* .* 500 + \s*500 https://esm.ubuntu.com/apps/ubuntu -apps-security/main amd64 Packages """ When I run `pro enable fips-updates --assume-yes` with sudo Then I will see the following on stdout: @@ -280,19 +280,19 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO fips image To use a different subscription first run: sudo pro detach. """ When I run `apt-cache policy` with sudo - Then apt-cache policy for the following url has priority `510` + Then apt-cache policy for the following url has priority `500` """ https://esm.ubuntu.com/infra/ubuntu -infra-updates/main amd64 Packages """ - And apt-cache policy for the following url has priority `510` + And apt-cache policy for the following url has priority `500` """ https://esm.ubuntu.com/infra/ubuntu -infra-security/main amd64 Packages """ - And apt-cache policy for the following url has priority `510` + And apt-cache policy for the following url has priority `500` """ https://esm.ubuntu.com/apps/ubuntu -apps-updates/main amd64 Packages """ - And apt-cache policy for the following url has priority `510` + And apt-cache policy for the following url has priority `500` """ https://esm.ubuntu.com/apps/ubuntu -apps-security/main amd64 Packages """ @@ -305,11 +305,11 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO fips image And I run `apt-cache policy ` as non-root Then stdout matches regexp: """ - \s*510 https://esm.ubuntu.com/infra/ubuntu -infra-security/main amd64 Packages + \s*500 https://esm.ubuntu.com/infra/ubuntu -infra-security/main amd64 Packages """ Then stdout matches regexp: """ - \s*510 https://esm.ubuntu.com/infra/ubuntu -infra-updates/main amd64 Packages + \s*500 https://esm.ubuntu.com/infra/ubuntu -infra-updates/main amd64 Packages """ And stdout matches regexp: """ @@ -320,8 +320,8 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO fips image Then stdout matches regexp: """ Version table: - \s*\*\*\* .* 510 - \s*510 https://esm.ubuntu.com/apps/ubuntu -apps-security/main amd64 Packages + \s*\*\*\* .* 500 + \s*500 https://esm.ubuntu.com/apps/ubuntu -apps-security/main amd64 Packages """ When I run `pro enable fips-updates --assume-yes` with sudo Then I will see the following on stdout: @@ -554,19 +554,19 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO fips image To use a different subscription first run: sudo pro detach. """ When I run `apt-cache policy` with sudo - Then apt-cache policy for the following url has priority `510` + Then apt-cache policy for the following url has priority `500` """ https://esm.ubuntu.com/infra/ubuntu -infra-updates/main amd64 Packages """ - And apt-cache policy for the following url has priority `510` + And apt-cache policy for the following url has priority `500` """ https://esm.ubuntu.com/infra/ubuntu -infra-security/main amd64 Packages """ - And apt-cache policy for the following url has priority `510` + And apt-cache policy for the following url has priority `500` """ https://esm.ubuntu.com/apps/ubuntu -apps-updates/main amd64 Packages """ - And apt-cache policy for the following url has priority `510` + And apt-cache policy for the following url has priority `500` """ https://esm.ubuntu.com/apps/ubuntu -apps-security/main amd64 Packages """ @@ -579,11 +579,11 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO fips image And I run `apt-cache policy ` as non-root Then stdout matches regexp: """ - \s*510 https://esm.ubuntu.com/infra/ubuntu -infra-security/main amd64 Packages + \s*500 https://esm.ubuntu.com/infra/ubuntu -infra-security/main amd64 Packages """ Then stdout matches regexp: """ - \s*510 https://esm.ubuntu.com/infra/ubuntu -infra-updates/main amd64 Packages + \s*500 https://esm.ubuntu.com/infra/ubuntu -infra-updates/main amd64 Packages """ And stdout matches regexp: """ @@ -594,8 +594,8 @@ Feature: Command behaviour when auto-attached in an ubuntu PRO fips image Then stdout matches regexp: """ Version table: - \s*\*\*\* .* 510 - \s*510 https://esm.ubuntu.com/apps/ubuntu -apps-security/main amd64 Packages + \s*\*\*\* .* 500 + \s*500 https://esm.ubuntu.com/apps/ubuntu -apps-security/main amd64 Packages """ When I run `pro enable fips-updates --assume-yes` with sudo Then I will see the following on stdout: diff --git a/preferences.d/ubuntu-pro-esm-apps b/preferences.d/ubuntu-pro-esm-apps deleted file mode 100644 index 7346280f6c..0000000000 --- a/preferences.d/ubuntu-pro-esm-apps +++ /dev/null @@ -1,3 +0,0 @@ -Package: * -Pin: release o=UbuntuESMApps -Pin-Priority: 510 diff --git a/preferences.d/ubuntu-pro-esm-infra b/preferences.d/ubuntu-pro-esm-infra deleted file mode 100644 index ce36fb5ba8..0000000000 --- a/preferences.d/ubuntu-pro-esm-infra +++ /dev/null @@ -1,3 +0,0 @@ -Package: * -Pin: release o=UbuntuESM -Pin-Priority: 510 diff --git a/setup.py b/setup.py index 2628f7b36a..ae5b1be0af 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,6 @@ def _get_data_files(): "/etc/update-manager/release-upgrades.d/", ["release-upgrades.d/ubuntu-advantage-upgrades.cfg"], ), - ("/etc/apt/preferences.d", glob.glob("preferences.d/*")), (defaults.CONFIG_DEFAULTS["data_dir"], []), ("/lib/systemd/system", glob.glob("systemd/*")), (