Skip to content

snap: Use core22 #293

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

snap: Use core22 #293

wants to merge 3 commits into from

Conversation

maflcko
Copy link
Contributor

@maflcko maflcko commented Jul 29, 2025

While core20 is still technically supported, it requires workarounds such as #284 to work around bugs like canonical/snapcraft#5316.

Also, the kde-neon extension is only offered in an older version. kde-neon-6 isn't offered at all. Ref: #292

So just use core22.

My understanding is that even core24 can be used, without any visible or breaking change to end-users, but this is left for a follow-up for now.

(Edit: The curl change isn't needed here, but should make future core updates easier)

MarcoFalke added 3 commits July 29, 2025 15:48
Now that the issue was worked around in the previous commit, commit
577ccb0 can be reverted.
wget is deprecated in favor of wget2 development. However, using that as
a drop-in replacement for wget1 is a breaking change. So just switch to
curl, which is more stable and more than sufficient in this context
here.
Copy link
Member

@hebasto hebasto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 9182a28, built and installed locally on Ubuntu 24.04:

$ snapcraft
Pulling bitcoin-core :: Downloading package: libxcb-util1/snap/snapcraft/15369/lib/python3.12/site-packages/apt/package.py:810: Warning: W:Download is performed unsandboxed as root as file '/root/.cache/snapcraft/download/libxcb-util1_0.4.0-1build2_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
  acq.run()
Generated snap metadata
Created snap package bitcoin-core_29.0_amd64.snap
$ sudo snap install bitcoin-core_29.0_amd64.snap --dangerous
bitcoin-core 29.0 installed

The resulting binaries are runnable.

@maflcko
Copy link
Contributor Author

maflcko commented Jul 30, 2025

Pulling bitcoin-core :: Downloading package: libxcb-util1/snap/snapcraft/15369/lib/python3.12/site-packages/apt/package.py:810: Warning: W:Download is performed unsandboxed as root as file '/root/.cache/snapcraft/download/libxcb-util1_0.4.0-1build2_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

Just for reference, the warning is unrelated to the changes here and happens with core20 as well:

https://cirrus-ci.com/task/5992906776903680?logs=snapcraft_build#L974:

...
2025-07-03T16:33:35Z INFO Waiting for automatic snapd restart...
snapd 2.68.5 from Canonical** installed
"snapd" switched to the "latest/stable" channel
core20 20250526 from Canonical** installed
snapcraft 8.9.4 from Canonical** installed
"snapcraft" switched to the "latest/stable" channel
Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Reading package lists...
Installing build dependencies: wget
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libpsl5
Recommended packages:
  publicsuffix
The following NEW packages will be installed:
  libpsl5 wget
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 400 kB of archives.
After this operation, 1105 kB of additional disk space will be used.
Get:1 http://security.ubuntu.com/ubuntu focal-security/main amd64 wget amd64 1.20.3-1ubuntu2.1 [349 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/main amd64 libpsl5 amd64 0.21.0-1ubuntu1 [51.5 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 400 kB in 1s (525 kB/s)
Selecting previously unselected package libpsl5:amd64.
(Reading database ... 14356 files and directories currently installed.)
Preparing to unpack .../libpsl5_0.21.0-1ubuntu1_amd64.deb ...
Unpacking libpsl5:amd64 (0.21.0-1ubuntu1) ...
Selecting previously unselected package wget.
Preparing to unpack .../wget_1.20.3-1ubuntu2.1_amd64.deb ...
Unpacking wget (1.20.3-1ubuntu2.1) ...
Setting up libpsl5:amd64 (0.21.0-1ubuntu1) ...
Setting up wget (1.20.3-1ubuntu2.1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.18) ...
wget set to automatically installed.
/snap/snapcraft/15082/lib/python3.12/site-packages/apt/package.py:810: Warning: W:Download is performed unsandboxed as root as file '/root/.cache/snapcraft/download/libxcb-util1_0.4.0-0ubuntu3_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
  acq.run()
Get:1 libxcb-util1_0.4.0-0ubuntu3_amd64.deb [11.2 kB]                           
Fetched 11.2 kB in 0s (0 B/s)                                                   
Get:1 xkb-data_2.29-2_all.deb [349 kB]                                          
Fetched 349 kB in 0s (0 B/s)                                                    
...

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

Successfully merging this pull request may close these issues.

2 participants