Apt-get install valkey=1:7.2.6-1.noble -> unable to open '/usr/lib/systemd/system/valkey.service.dpkg-new': No such file or directory

Hello,

I’m trying to install the package valkey-7.2.6-1.noble_amd64.deb or the package valkey-8.0.0-1.noble_amd64.deb from Percona on my Ubuntu 24.04. Both packages are throwing an error message during the installation process.

$ apt-get install valkey
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  valkey
0 upgraded, 1 newly installed, 0 to remove and 11 not upgraded.
Need to get 0 B/2,262 kB of archives.
After this operation, 6,307 kB of additional disk space will be used.
(Reading database ... 89762 files and directories currently installed.)
Preparing to unpack .../valkey_1%3a7.2.6-1.noble_amd64.deb ...
Unpacking valkey (1:7.2.6-1.noble) ...
dpkg: error processing archive /var/cache/apt/archives/valkey_1%3a7.2.6-1.noble_amd64.deb (--unpack):
 unable to open '/usr/lib/systemd/system/valkey.service.dpkg-new': No such file or directory
Errors were encountered while processing:
 /var/cache/apt/archives/valkey_1%3a7.2.6-1.noble_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

The same error will be thrown by the installation of valkey-8.0.0-1.noble_amd64.deb.

What does that even mean?

unable to open '/usr/lib/systemd/system/valkey.service.dpkg-new': No such file or directory

These are the checksum of both files:

$ sha256sum /var/cache/apt/archives/valkey_1%3a*
7436c8bfc71c5c063005b74f1fcfb22686442d0b38c94c80e1b9c61d318d1e21  /var/cache/apt/archives/valkey_1%3a7.2.6-1.noble_amd64.deb
c1f001996f0f031ff78506e322b79b0af568d80ab2e5e18b070bac3a8b0dd19a  /var/cache/apt/archives/valkey_1%3a8.0.0-1.noble_amd64.deb

Any ideas?