Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception: test has an exceptional event (KRNL-5788:01) with text NoText #1216

Open
fizista opened this issue Oct 13, 2021 · 0 comments
Open

Comments

@fizista
Copy link
Contributor

fizista commented Oct 13, 2021

Describe the bug
An exception is reported: Exception occurred, no output from apt-cache policy

Version

  • Distribution Ubuntu 20.04
  • Lynis version 3.0.6

Expected behavior

Output

2021-10-13 16:24:05 Performing test ID KRNL-5788 (Checking availability new Linux kernel)
2021-10-13 16:24:05 Test: Searching apt-cache, to determine if a newer kernel is available
2021-10-13 16:24:05 Result: found /usr/bin/apt-cache
2021-10-13 16:24:05 Test: checking presence of /vmlinuz or /boot/vmlinuz
2021-10-13 16:24:05 Result: found /boot/vmlinuz
2021-10-13 16:24:05 Test: checking readlink location of /boot/vmlinuz
2021-10-13 16:24:05 Output: readlink reported file /boot/vmlinuz-5.4.0-88-generic
2021-10-13 16:24:05 Test: checking package from dpkg -S
2021-10-13 16:24:05 Output: dpkg -S reported package linux-image-5.4.0-88-generic
2021-10-13 16:24:05 Test: Using apt-cache policy to determine if there is an update available
2021-10-13 16:24:05 Kernel installed:
2021-10-13 16:24:05 Kernel candidate:
2021-10-13 16:24:05 Result: Exception occurred, no output from apt-cache policy
2021-10-13 16:24:05 Exception: test has an exceptional event (KRNL-5788:01) with text NoText
2021-10-13 16:24:10 Suggestion: Check the output of apt-cache policy to determine why its output is empty [test:KRNL-5788] [details:-] [solution:-]
2021-10-13 16:24:10 Result: apt-cache policy did not return an installed kernel version
# dpkg -l | grep linux-image-5.4.0-88-generic
ii  linux-image-5.4.0-88-generic   5.4.0-88.99                           amd64        Signed kernel image generic
# apt-cache policy linux-image-5.4.0-88-genericlinux-image-5.4.0-88-generic:
  Zainstalowana: 5.4.0-88.99
  Kandydująca:   5.4.0-88.99
  Tabela wersji:
 *** 5.4.0-88.99 500
        500 http://nova.clouds.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
# LC_ALL=C apt-cache policy linux-image-5.4.0-88-generic
linux-image-5.4.0-88-generic:
  Installed: 5.4.0-88.99
  Candidate: 5.4.0-88.99
  Version table:
 *** 5.4.0-88.99 500
        500 http://nova.clouds.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status

Additional context
Depends on system language settings.

The temporary solution is:
LC_ALL=C lynis audit system

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant