An error occurred when I run `fakeroot debian/rules`

Asked by miufullzero

ubuntu@ubuntu-vmc:~/ubuntu-focal-signed$ ls
debian download-signed download-unsigned generate-depends update-version

ubuntu@ubuntu-vmc:~/ubuntu-focal-signed$fakeroot debian/rules binary

dh binary
   dh_update_autotools_config
   debian/rules override_dh_auto_build
make[1]: Entry “/home/ubuntu/ubuntu-focal-signed”
./download-signed "linux-headers-5.4.0-76-generic" "5.4.0-76.85" "linux"
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 299, in __getitem__
    rawpkg = self._cache[key]
KeyError: 'linux-headers-5.4.0-76-generic'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./download-signed", line 164, in <module>
    downloader = SignedDownloader(package_name, package_version, src_package)
  File "./download-signed", line 44, in __init__
    for version in cache[package_name].versions:
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 301, in __getitem__
    raise KeyError('The cache has no package named %r' % key)
KeyError: "The cache has no package named 'linux-headers-5.4.0-76-generic'"
make[1]: *** [debian/rules:49:override_dh_auto_build] error 1
make[1]: Leaving “/home/ubuntu/ubuntu-focal-signed”
make: *** [debian/rules:46:binary] error 2

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu linux-signed Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

sudo apt install linux-headers-5.4.0-76-generic

Revision history for this message
miufullzero (mfz0721) said :
#2

ubuntu@ubuntu:~$ sudo apt install linux-headers-5.4.0-76-generic -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-5.4.0-76-generic
E: Couldn't find any package by glob 'linux-headers-5.4.0-76-generic'

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#3

linux-headers-5.4.0-76-generic was only in focal-proposed and has meanwhile been superseded by linux-headers-5.4.0-77-generic (in focal-updates and focal-security) and linux-headers-5.4.0-78-generic (in focal-proposed).

Revision history for this message
miufullzero (mfz0721) said :
#4

Thanks Manfred Hampl, that solved my question.