No kernels available except for installed ones
JustMaris opened this issue · 8 comments
On the day when the release of kernel 6.3 was announced, I checked mainline and I saw that I couldn't install any kernels. The only ones that were shown were the ones that were already installed.
I remember that sometimes it takes time for things to change with availability, so I waited, but still, nothing changed.
What is the issue and is there anything I'm doing wrong? I tried --clean-cache command, but it didn't make a difference.
This is what I'm currently seeing when I open UI:
Edit: Added image.
The Reload button now deletes the cache so you don't really need --clean-cache any more except for non-gui use.
Can you run VERBOSE=4 mainline-gtk
and past the output?
Also are you using 1.2.5?
170767: mainline 1.2.5
170767: load_app_config()
170767: glib-json >= 1.6
170767: Loaded config file: /home/maris/.config/mainline/config.json
170767: LinuxKernel(,false)
170767: check_distribution()
170767: Distribution: Ubuntu 23.04
170767: check_package_architecture()
170767: Architecture: amd64
170767: check_running_kernel()
170767: Running kernel: 6.2.9-060209-generic
170767: update_cache()
170767: try_ppa()
170767: aria2c --no-netrc --no-conf --max-file-not-found=3 --retry-wait=2 --max-tries=3 --dry-run --quiet --connect-timeout=15 'https://kernel.ubuntu.com/~kernel-ppa/mainline/'
170767: LinuxKernel.query()
170767: tv_refresh()
170767: query_thread()
170767: download_index()
170767: try_ppa()
170767: dir_create(/home/maris/.cache/mainline)
170767: + DownloadItem(https://kernel.ubuntu.com/~kernel-ppa/mainline/,/home/maris/.cache/mainline,4CDI0mu7)
170767: DownloadItem(https://kernel.ubuntu.com/~kernel-ppa/mainline/,/home/maris/.cache/mainline,4CDI0mu7,)
170767: dir_create(/tmp/.mainline.FfAazc0p)
170767: Updating from: 'https://kernel.ubuntu.com/~kernel-ppa/mainline/'
170767: build_script():
170767: working_dir: '/tmp/.mainline.FfAazc0p'
170767: file_write(/tmp/.mainline.FfAazc0p/download.list)
170767: dir_create(/tmp/.mainline.FfAazc0p)
170767: /tmp/.mainline.FfAazc0p/download.list:
https://kernel.ubuntu.com/~kernel-ppa/mainline/
gid=1d689e72b5f6a08a
dir=/home/maris/.cache/mainline
out=4CDI0mu7
170767: aria2c --input-file='/tmp/.mainline.FfAazc0p/download.list' --no-netrc=true --no-conf=true --summary-interval=1 --auto-save-interval=1 --enable-color=false --allow-overwrite --timeout=600 --max-file-not-found=3 --retry-wait=2 --show-console-readout=false --human-readable=false --connect-timeout=15 --max-concurrent-downloads=25 --max-connection-per-server=25
170767: save_bash_script_temp(/tmp/.mainline.FfAazc0p/script.sh):/tmp/.mainline.FfAazc0p/script.sh
170767: file_write(/tmp/.mainline.FfAazc0p/script.sh)
170767: dir_create(/tmp/.mainline.FfAazc0p)
170767: AsyncTask begin()
170767: working_dir: '/tmp/.mainline.FfAazc0p'
170767: dir_delete(/tmp/.mainline.FfAazc0p)
170767: _dir_delete(/tmp/.mainline.FfAazc0p)
170767: load_index()
170767: update_dpkg_list()
170767: dir_create(/tmp/.mainline.DsUkB1EL)
170767: file_write(/tmp/.mainline.DsUkB1EL/16831314273072571380)
170767: dir_create(/tmp/.mainline.DsUkB1EL)
170767: dpkg_list.add(linux-headers-6.2.0-20) version:6.2.0-20.20 arch:all
170767: dpkg_list.add(linux-headers-6.2.0-20-generic) version:6.2.0-20.20 arch:amd64
170767: dpkg_list.add(linux-headers-6.2.9-060209) version:6.2.9-060209.202303301133 arch:all
170767: dpkg_list.add(linux-headers-6.2.9-060209-generic) version:6.2.9-060209.202303301133 arch:amd64
170767: dpkg_list.add(linux-headers-generic) version:6.2.0.20.20 arch:amd64
170767: dpkg_list.add(linux-image-6.2.0-20-generic) version:6.2.0-20.20 arch:amd64
170767: dpkg_list.add(linux-image-generic) version:6.2.0.20.20 arch:amd64
170767: dpkg_list.add(linux-image-unsigned-6.2.9-060209-generic) version:6.2.9-060209.202303301133 arch:amd64
170767: dpkg_list.add(linux-modules-6.2.0-20-generic) version:6.2.0-20.20 arch:amd64
170767: dpkg_list.add(linux-modules-6.2.9-060209-generic) version:6.2.9-060209.202303301133 arch:amd64
170767: dpkg_list.add(linux-modules-extra-6.2.0-20-generic) version:6.2.0-20.20 arch:amd64
170767: dir_delete(/tmp/.mainline.DsUkB1EL)
170767: _dir_delete(/tmp/.mainline.DsUkB1EL)
170767: update_threshold_major()
170767: LinuxKernel(6.2.0-20.20,false)
170767: LinuxKernel(6.2.0.20.20,false)
170767: LinuxKernel(6.2.9-060209.202303301133,false)
170767: threshold_major 6
170767: check_installed()
170767: Found installed : 6.2.0-20.20
170767: LinuxKernel(6.2.0-20.20,false)
170767: set_pkg_list()
170767: kname:6.2.0-20.20 kver:6.2.0-20.20 version_main:6.2.0.20.20
170767: Package: linux-headers-6.2.0-20
170767: Package: linux-headers-6.2.0-20-generic
170767: Package: linux-image-6.2.0-20-generic
170767: Package: linux-modules-6.2.0-20-generic
170767: Package: linux-modules-extra-6.2.0-20-generic
170767: kernel_list.add(6.2.0-20.20)
170767: Found installed : 6.2.0.20.20
170767: LinuxKernel(6.2.0.20.20,false)
170767: set_pkg_list()
170767: kname:6.2.0.20.20 kver:6.2.0.20.20 version_main:6.2.0.20.20
170767: Package: linux-headers-generic
170767: Package: linux-image-generic
170767: kernel_list.add(6.2.0.20.20)
170767: Found installed : 6.2.9-060209.202303301133
170767: LinuxKernel(6.2.9-060209.202303301133,false)
170767: set_pkg_list()
170767: kname:6.2.9-060209.202303301133 kver:6.2.9-060209.202303301133 version_main:6.2.9
170767: Package: linux-headers-6.2.9-060209
170767: Package: linux-headers-6.2.9-060209-generic
170767: Package: linux-image-unsigned-6.2.9-060209-generic
170767: Package: linux-modules-6.2.9-060209-generic
170767: kernel_list.add(6.2.9-060209.202303301133)
170767: latest_installed: 6.2.9
170767: oldest_installed: 6.2.0.20.20
170767: check_updates()
170767: 6.2.9
170767: 6.2.0.20.20
170767: 6.2.0.20.20
170767: tv_refresh()
This is the output and yes, I'm running 1.2.5.
Just tried to run mainline-gtk with sudo and it showed all kernels after 6.2.9 up to 6.3.1
You have a problem right when it tried to download the main index. Perhaps you previously ran as root and the cache directory or some files within it got created by root, and now the user doesn't have permission to delete or overwrite?
In your debug output starting at the 2nd aria2c command, that is where it downloads the main index.html to a temp file and then if the download was successful renames it from the temp name to index.html, unless the download failed or some other problem, so that in the end if the new file wasn't retrieved, at least you still have the old one (if there was one)
it should look like this:
787853: AsyncTask begin()
787853: working_dir: '/tmp/.mainline.O1CM9jsR'
787853: dir_delete(/tmp/.mainline.O1CM9jsR)
787853: _dir_delete(/tmp/.mainline.O1CM9jsR)
787853: file_move('/home/bkw/.cache/mainline/Af2WPhnJ','/home/bkw/.cache/mainline/index.html')
787853: dir_create(/home/bkw/.cache/mainline)
787853: file_delete(/home/bkw/.cache/mainline/index.html)
787853: OK
787853: load_index()
787853: file_read(/home/bkw/.cache/mainline/index.html)
787853: LinuxKernel(v2.6.27.60/,true)
787853: kernel_list.add(v2.6.27.60)
787853: LinuxKernel(v2.6.27.61/,true)
787853: kernel_list.add(v2.6.27.61)
787853: LinuxKernel(v2.6.27.62/,true)
787853: kernel_list.add(v2.6.27.62)
Where you have:
170767: _dir_delete(/tmp/.mainline.FfAazc0p)
170767: load_index()
In betwee those two line should be
787853: _dir_delete(/tmp/.mainline.O1CM9jsR)
787853: file_move('/home/bkw/.cache/mainline/Af2WPhnJ','/home/bkw/.cache/mainline/index.html')
787853: dir_create(/home/bkw/.cache/mainline)
787853: file_delete(/home/bkw/.cache/mainline/index.html)
787853: OK
787853: load_index()
So you never got the index.html, and so load_index() has nothing to work on.
I would try manually sudo rm -rf .cache/mainline
And then don't ever run mainline with sudo. You can run it as root if you're logged in as root, but not sudo.
Also double-check the ownership and permissions of the parent .cache dir too just to be thorough
$ ls -la ~ |grep cache
drwxrwxr-x 83 bkw bkw 4096 May 3 18:41 .cache
And I think we just found a new bug of some sort...
On my own system, I did NOT see 6.3.1 until after I hit Reload. Merely starting the app did not show it, even after closing and reopening a few different times. I also did not get any notification for 6.3.1
... and I just tried to mock up the prior state by deleting just the 6.3.1 directory from the cache, and deleting the 6.3.1 line from the cached index.html, started the app, ... and it worked normally.
6.3.1 showed up. I guess I can't replicate the bug. I'll keep trying, and we'll see what happens for 6.3.2 I guess.
But I definitely remember that 6.3.1 was not showing for me, and it's apparently been up for 3 days by now.
assuming it was a root file permissions issue, feel free to re-open if you have more to report