Troubleshooting
This document shows common issues and solutions to any problems a user can meet.
Installation
filesystem `btrfs’ doesn’t support blocklists
The error during the installation:
is caused when the partition table is GPT and you are not using EFI boot mode. If you would like to use GPT, remember to use EFI instead of BIOS/Legacy mode.
time warp or clock problem
During the installation of Athena, if you get an error like:
it can occur when you are installing Athena OS by an ISO that has been released just now. To solve the issue, just wait 30 minutes and boot again by the ISO.
The cause of the issue is due to a key in /etc/pacman.d/gnupg
that has been generated in a Live Environment that has a different time of the running installer. Since in Live Environment the time changes and fixes to the right time after some minutes, if this change is done during the running of pacman-key --init
, it causes that error. For example, the Live Environment shows 18:40 and during the install, it switches to 19:40, so the running installer, if creates new key by pacman-key --init
when the time of Live Environment is switched, it cause the error. If you get this error, boot on Live Environment and, before to run the installer, wait for some minutes that the time clock fixes automatically.
Boot
Restore GRUB
For fixing the GRUB, before exiting from the Live Environment, before proceeding, you must detect the existing Linux partition and the EFI partition containing the GRUB entries for Linux and Windows (or other OS). You can do that by running sudo fdisk -l
.
Let’s guess the existing Linux partition is /dev/sda3
and the boot efi partition is at /dev/nvme0n1p1
.
If your existing Linux distribution is based on BTRFS file system, run:
otherwise run:
Then, run:
Now, check the directory tree in /boot/efi
folder and you should have only these files/directories:
Check the EFI
directory and be sure that there are not nested further EFI
directories otherwise your GRUB never work. You must have only the current EFI
directory with the following files/directories:
If you see also another EFI
directory or other ones containing the file grubx64.efi
(i.e., GRUB
directory), delete these folders. Note that in other distros, GRUB
folder could have a different name. Don’t worry to delete GRUB
folder by:
The next command will create it again.
Then run:
This command will create the file /boot/efi/EFI/GRUB/grubx64.efi
.
Finally:
at reboot, be sure that on BIOS the GRUB entry has the first priority over Windows Boot Manager. Then, it should work.
Once landed on your working and fixed Linux environment, open the terminal and run:
to restore the Windows entry in GRUB in case it is missing. Reboot the system to check all GRUB entries are working as intended.
In case you previously formatted your EFI partition, its UUID could be changed, so, at this point, when you boot, you could get an error and be dropped on the emergency shell:
To fix this, boot again by USB to the Athena OS Live Environment and mounting the devices as done before, like: If your existing Linux distribution is based on BTRFS file system, run:
otherwise run:
Then, run:
Once you are on chroot environment, run:
replace /dev/nvme0n1p1
by your EFI partition device. This command gives you the valid UUID of your EFI partition, for example:
Then, you must edit fstab to replace the old EFI UUID with this new one. So, open the fstab file by:
and you should get something similar to:
Replace the UUID value of the line containing /boot/efi
with the one obtained by the sudo blkid
command above. Save the file, exit from chroot environment by exit
command, and reboot the system. Again, at reboot, be sure that on BIOS the GRUB entry has the first priority over Windows Boot Manager. Then, it should work.
Once landed on your working and fixed Linux environment, open the terminal and run:
to restore the Windows entry in GRUB in case it is missing. Reboot the system to check all GRUB entries are working as intended.
Restore Linux and Windows EFI Boot
In case you broke the EFI partition containing Linux and Windows EFI Boot files (assuming they were on the same partition), download a Windows ISO and burn it on a USB key. Then, boot up it. If needed, backup your data.
When you reach the Windows installation environment:
- select your language and keyboard layout
- click on Repair your computer button
- click on Troubleshooting
- click on Command Prompt
- run diskpart
- run list disk and identify the disk number of the disk containing the Windows EFI Boot partition
- run sel disk <number> where <number> must be replaced with the number of the interested disk
- run list part and identify the partition number of the partition of the selected disk containing the Windows EFI Boot. Usually it is tagged as System and it has small size
- run sel part <number> where <number> must be replaced with the number of the interested partition
- run delete partition override to delete the current broken EFI partition
- run create part efi size=100 for creating a new EFI partition (the size must be at least 100 MB)
If you get an error stating:
it means that the disk where you are creating the EFI disk is not GPT. If it is already GPT type, skip to the next step. If not, you need to make it GPT type as follows. Boot on Linux Live Environment by a USB pendrive and use testdisk tool. Open the terminal and run:
Choose if logging or not. Then select the disk where you will restore the EFI partition:
Then select EFI GPT:
Select Analyse:
Press Quick Search:
Press Continue:
Then select the partition:
You will get a similar view:
Now you need to change some of those
D
(Delete) inP
(Primary) to avoid that during the conversion process your partition is not deleted. To do this, move to the MS Data partitions and set them toP
. Some of them cannot be set asP
, probably because they are corrupt or other issues but in your case you need only those ones containing your data or have important purposes. To understand this, you can read the information on the last column is present and the size between Start and End columns, just pick the largest one if the other partitions cannot be set toP
: After this, press Enter to continue and convert your disk to GPT. At the end, by testdisk, be sure that your disk is labelled as gpt and all your data partitions are still there, for example: - run format fs=fat32 quick to format the EFI partition as fat32
- run assign letter=m
- exit
- Supposing that your Windows installation is installed in C:, run bcdboot c:\windows /s m: /f uefi
- If it does not produce error, type exit for exiting the Command Prompt and click on Continue button for entering to Windows
- If it produces an error:
- run bootrec /fixmbr
- run bootrec /fixboot
- run bootrec /scanos
- run bootrec /rebuildbcd
- run bootsect.exe /nt60 all /force
- Exit from the Command Prompt and click on Startup Repair button. It should bring you to Windows.
Finally, for fixing also the Linux access, burn Athena OS ISO on a USB and follow the steps explained at Post-installation section.
Several boot entries have been disappeared
In case you are in dual boot and some entries are not shown anymore (i.e., Windows Boot Manager if you have Windows in dual boot), enter in Athena OS and run:
Then reboot.
ERROR kdfontop.c:183 put_font_kdfontop: Unable to load such font with such kernel version
The message:
can be fixed by disabling the deferred takeover by adding fbcon=nodefer
as kernel parameter in the GRUB_CMDLINE_LINUX_DEFAULT
variable of /etc/default/grub file.
Reference: #99
Display Managers
GDM: login background turned to grey
It should be caused by an update of GDM or GNOME packages that restored the default gresource theme file. To restore the Athena GDM theme, run:
Tools
Bloodhound
On Bloodhound, when neo4j database is run by sudo neo4j console
, we can get some errors like:
For solving it, just run neo4j server by systemctl start neo4j
. You can check the proof that the server is correctly running by systemctl status neo4j
.
Conda
conda activate
continues to show the prompt (base) instead of (test).
The issue is related to the usage of no-repeat-flag
in .bashrc
. To solve this, add the following code inside .bashrc
:
WSL
Win-Kex ESM Mode ‘cannot execute: required file not found’
This issue affects both Athena OS and Kali Linux. When you run kex --esm
and you get:
it could be due to two reasons:
- wine is installed
- you are running Athena OS and Kali Linux WSL together
Uninstall wine package, close both the WSL sessions, open CMD in Windows and run wsl --shutdown
. Run Athena OS and you should not get this error anymore.
Win-Kex ESM Mode ‘Remote Desktop can’t connect’
In case you get the following error:
just open a new Windows terminal and run:
Then, reopen Athena OS WSL and try to run again:
Misc
Browser elements overlap
In case it occurs that browser elements can overlap as the following case:
The reason is that the website is using the Athena OS system font instead of using its one.
In case you would like to solve this behavior on the system side, you need to delete the entry font-name='JetBrains Mono 11'
set in /org/gnome/desktop/ or changing its font.
You can remove it or change the font by:
Edit fix.txt and delete the line containing font-name='JetBrains Mono 11'
or replace this font name with your preferred, save and close the file, then run:
In case your theme will be reset, just run:
Use athena-theme-tweak -l
to get the list of themes to be chosen.
Restore system by snapshots in GRUB
In case you are not able to get in the system due to a broken upgrade or similar events, you can leverage on Grub BTRFS snapshots in order to restore a previous state of your system. To do this, run the system, on the GRUB select Athena OS Snapshots
Choose the snapshot you want to restore
and select the Linux Kernel to run
Cannot store HTB App Token due to secret-tool hanging
When you run htb-toolkit -k set
and, by entering your App Token in the Password field secret-tool hangs, try to reboot the system. If it does not work, install Brave browser, open it and at first run a popup window asking for the creation of a new password is shown. You can choose to set a password or just press Enter two times if you don’t want, and finally try again htb-toolkit -k set
.