2020-04-11 14:39:15 |
Torsten Bronger |
bug |
|
|
added bug |
2020-04-17 23:30:28 |
Launchpad Janitor |
apt (Ubuntu): status |
New |
Confirmed |
|
2020-04-17 23:30:45 |
Gunnar Hjalmarsson |
bug |
|
|
added subscriber Gunnar Hjalmarsson |
2020-04-17 23:31:02 |
Gunnar Hjalmarsson |
bug |
|
|
added subscriber Doug Smythies |
2020-05-04 13:45:08 |
Julian Andres Klode |
apt (Ubuntu): status |
Confirmed |
Fix Committed |
|
2020-05-05 10:26:28 |
Julian Andres Klode |
description |
Observed with Ubuntu 20.04 Beta.
apt remove 'mypackage*' does not remove all installed packages starting with “mypackage”. Instead:
$ sudo apt remove 'mypackage*'
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mypackage*
However:
$ sudo apt list --installed 'mypackage*'
Listing... Done
mypackage-data-v1/focal,focal,now 0.3.2-5build1 all [installed,automatic]
mypackage1/focal,now 0.3.2-5build1 amd64 [installed] |
[Impact]
Users can't use * wildcards anymore in focal, except by accident in apt list.
For apt list, we now start restricting wildcard syntax to the same syntax install now accepts, and at the same time we remove the restrictions on which patterns are accepted (which only accepted patterns starting in ~ or ?), so !~napt now works, and does not accidentally match as a wildcard.
[Test case]
Test that * wildcards work for both install and list, and test that a ? wildcard does not.
We included autopkgtests for those:
#### BEGIN TESTS #####
# * wildcards should still work
testsuccessequal "Listing...
automatic1/now 1.0 i386 [installed,local]
automatic2/now 1.0 i386 [installed,local]" apt list 'automatic*'
testfailureequal "Reading package lists...
Building dependency tree...
Reading state information...
Note, selecting 'automatic1' for glob 'automatic*'
Note, selecting 'automatic2' for glob 'automatic*'
automatic1 is already the newest version (1.0).
automatic1 set to manually installed.
automatic2 is already the newest version (1.0).
automatic2 set to manually installed.
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
broken : Depends: does-not-exist but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution)." apt install -s 'automatic*'
# other wildcards should fail
testfailureequal "Listing...
E: input:0-10: error: Expected pattern
automatic?
^^^^^^^^^^" apt list 'automatic?'
testfailureequal "Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package automatic?" apt install -s 'automatic?'
#### END TESTS #####
Also it might be worth checking that apt list !~napt works. This used to produce an empty list, as it was accidentally matched as a wildcard and produced no result - now it produces every package whose name does not contain "apt".
[Regression potential]
The changes only affect interactive users, as apt(8) is not stable for in-script use, hence they can fix up their command-line if it stops working for them (though, really, more should work now).
No scripts will be broken :)
[Squashed in changes]
The SRU also fixes potential build failures by correctly prefxing nullptr_t with the std:: namespace, and includes updated Dutch documentation.
[Original bug report]
Observed with Ubuntu 20.04 Beta.
apt remove 'mypackage*' does not remove all installed packages starting with “mypackage”. Instead:
$ sudo apt remove 'mypackage*'
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mypackage*
However:
$ sudo apt list --installed 'mypackage*'
Listing... Done
mypackage-data-v1/focal,focal,now 0.3.2-5build1 all [installed,automatic]
mypackage1/focal,now 0.3.2-5build1 amd64 [installed] |
|
2020-05-05 10:28:54 |
Julian Andres Klode |
nominated for series |
|
Ubuntu Groovy |
|
2020-05-05 10:28:54 |
Julian Andres Klode |
bug task added |
|
apt (Ubuntu Groovy) |
|
2020-05-05 10:28:54 |
Julian Andres Klode |
nominated for series |
|
Ubuntu Focal |
|
2020-05-05 10:28:54 |
Julian Andres Klode |
bug task added |
|
apt (Ubuntu Focal) |
|
2020-05-05 10:29:00 |
Julian Andres Klode |
apt (Ubuntu Focal): status |
New |
Triaged |
|
2020-05-12 10:15:14 |
Launchpad Janitor |
apt (Ubuntu Groovy): status |
Fix Committed |
Fix Released |
|
2020-05-12 18:09:10 |
Brian Murray |
apt (Ubuntu Focal): status |
Triaged |
Fix Committed |
|
2020-05-12 18:09:12 |
Brian Murray |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2020-05-12 18:09:17 |
Brian Murray |
bug |
|
|
added subscriber SRU Verification |
2020-05-12 18:09:22 |
Brian Murray |
tags |
|
verification-needed verification-needed-focal |
|
2020-05-12 21:50:33 |
Doug Smythies |
tags |
verification-needed verification-needed-focal |
verification-done-focal verification-needed |
|
2020-05-14 16:51:00 |
Chris Johnston |
tags |
verification-done-focal verification-needed |
verification-done verification-done-focal |
|
2020-05-14 16:51:07 |
Chris Johnston |
bug |
|
|
added subscriber Chris Johnston |
2020-05-19 22:47:40 |
Brian Murray |
tags |
verification-done verification-done-focal |
block-proposed-focal verification-done verification-done-focal |
|
2020-11-06 09:40:45 |
Łukasz Zemczak |
apt (Ubuntu Focal): status |
Fix Committed |
Won't Fix |
|
2020-11-06 09:40:50 |
Łukasz Zemczak |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2020-11-06 09:44:17 |
Julian Andres Klode |
apt (Ubuntu Focal): status |
Won't Fix |
Triaged |
|
2021-01-14 14:34:47 |
Łukasz Zemczak |
apt (Ubuntu Focal): status |
Triaged |
Fix Committed |
|
2021-01-14 14:34:49 |
Łukasz Zemczak |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2021-01-14 14:34:55 |
Łukasz Zemczak |
tags |
block-proposed-focal verification-done verification-done-focal |
block-proposed-focal verification-needed verification-needed-focal |
|
2021-01-19 09:39:37 |
Julian Andres Klode |
tags |
block-proposed-focal verification-needed verification-needed-focal |
verification-done verification-done-focal |
|
2021-01-21 16:28:42 |
Łukasz Zemczak |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2021-01-21 16:38:46 |
Launchpad Janitor |
apt (Ubuntu Focal): status |
Fix Committed |
Fix Released |
|