local restore fails (non-fatal) when run on ubuntu-base noble arm64 image

Bug #2065497 reported by theofficialgman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unminimize (Ubuntu)
New
Undecided
Unassigned

Bug Description

When run on a ubuntu-base image (currently testing ubuntu noble arm64 base images), the following query results in an error

    dpkg --verify --verify-format rpm | awk '$2 ~ /\/usr\/share\/locale/ {print $2}' | sed 's|/[^/]*$||' | sort | uniq \
         | xargs --no-run-if-empty dpkg -S | sed 's|, |\n|g;s|: [^:]*$||' | uniq | DEBIAN_FRONTEND=noninteractive xargs --no-run-if-empty apt-get install --reinstall -y

terminal output

Restoring system translations...
dpkg-query: error: --search needs at least one file name pattern argument

Use --help for help about querying packages.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Documentation has been restored successfully.

I have run the command manually after and do not get the same error.... I am not sure why it is happening within the script but it is repeatable.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.