Pjotr wrote: ⤴Sat Feb 04, 2023 3:12 pm
[...]
I've improved my how-to a bit, by also including
esm-infra
(not just
esm-apps
). And I've checked: you're right, also in mintupdate in my 19.3, the kernel tool has disappeared. That's the price you pay. C'est la vie...
[...]
Hi,
I think I have found a better hack, with "mintsources" still working!
All that follows is valid for Linux Mint 20.3 Una, and needs to be adapted for other versions.
At first, before to attach the computer to Ubuntu Pro,
pro security-status
gives an error: "una version not found in distro-info database".
This is easy to correct, by editing "/usr/share/distro-info/ubuntu.csv":
Original version:
Code: Select all
version,codename,series,created,release,eol,eol-server,eol-esm
4.10,Warty Warthog,warty,2004-03-05,2004-10-20,2006-04-30
5.04,Hoary Hedgehog,hoary,2004-10-20,2005-04-08,2006-10-31
5.10,Breezy Badger,breezy,2005-04-08,2005-10-12,2007-04-13
6.06 LTS,Dapper Drake,dapper,2005-10-12,2006-06-01,2009-07-14,2011-06-01
6.10,Edgy Eft,edgy,2006-06-01,2006-10-26,2008-04-26
7.04,Feisty Fawn,feisty,2006-10-26,2007-04-19,2008-10-19
7.10,Gutsy Gibbon,gutsy,2007-04-19,2007-10-18,2009-04-18
8.04 LTS,Hardy Heron,hardy,2007-10-18,2008-04-24,2011-05-12,2013-05-09
8.10,Intrepid Ibex,intrepid,2008-04-24,2008-10-30,2010-04-30
9.04,Jaunty Jackalope,jaunty,2008-10-30,2009-04-23,2010-10-23
9.10,Karmic Koala,karmic,2009-04-23,2009-10-29,2011-04-30
10.04 LTS,Lucid Lynx,lucid,2009-10-29,2010-04-29,2013-05-09,2015-04-30
10.10,Maverick Meerkat,maverick,2010-04-29,2010-10-10,2012-04-10
11.04,Natty Narwhal,natty,2010-10-10,2011-04-28,2012-10-28
11.10,Oneiric Ocelot,oneiric,2011-04-28,2011-10-13,2013-05-09
12.04 LTS,Precise Pangolin,precise,2011-10-13,2012-04-26,2017-04-28,2017-04-28,2019-04-28
12.10,Quantal Quetzal,quantal,2012-04-26,2012-10-18,2014-05-16
13.04,Raring Ringtail,raring,2012-10-18,2013-04-25,2014-01-27
13.10,Saucy Salamander,saucy,2013-04-25,2013-10-17,2014-07-17
14.04 LTS,Trusty Tahr,trusty,2013-10-17,2014-04-17,2019-04-25,2019-04-25,2024-04-25
14.10,Utopic Unicorn,utopic,2014-04-17,2014-10-23,2015-07-23
15.04,Vivid Vervet,vivid,2014-10-23,2015-04-23,2016-02-04
15.10,Wily Werewolf,wily,2015-04-23,2015-10-22,2016-07-28
16.04 LTS,Xenial Xerus,xenial,2015-10-22,2016-04-21,2021-04-21,2021-04-21,2026-04-23
16.10,Yakkety Yak,yakkety,2016-04-21,2016-10-13,2017-07-20
17.04,Zesty Zapus,zesty,2016-10-13,2017-04-13,2018-01-13
17.10,Artful Aardvark,artful,2017-04-13,2017-10-19,2018-07-19
18.04 LTS,Bionic Beaver,bionic,2017-10-19,2018-04-26,2023-04-26,2023-04-26,2028-04-26
18.10,Cosmic Cuttlefish,cosmic,2018-04-26,2018-10-18,2019-07-18
19.04,Disco Dingo,disco,2018-10-18,2019-04-18,2020-01-23
19.10,Eoan Ermine,eoan,2019-04-18,2019-10-17,2020-07-17
20.04 LTS,Focal Fossa,focal,2019-10-17,2020-04-23,2025-04-23,2025-04-23,2030-04-23
20.10,Groovy Gorilla,groovy,2020-04-23,2020-10-22,2021-07-22
21.04,Hirsute Hippo,hirsute,2020-10-22,2021-04-22,2022-01-20
21.10,Impish Indri,impish,2021-04-22,2021-10-14,2022-07-14
22.04 LTS,Jammy Jellyfish,jammy,2021-10-14,2022-04-21,2027-04-21,2027-04-21,2032-04-21
22.10,Kinetic Kudu,kinetic,2022-04-21,2022-10-20,2023-07-20
23.04,Lunar Lobster,lunar,2022-10-20,2023-04-20,2024-01-25
Edited version: I add "20.04 LTS,Una,una,2019-10-17,2020-04-23,2025-04-23,2025-04-23,2030-04-23"
Code: Select all
version,codename,series,created,release,eol,eol-server,eol-esm
4.10,Warty Warthog,warty,2004-03-05,2004-10-20,2006-04-30
5.04,Hoary Hedgehog,hoary,2004-10-20,2005-04-08,2006-10-31
5.10,Breezy Badger,breezy,2005-04-08,2005-10-12,2007-04-13
6.06 LTS,Dapper Drake,dapper,2005-10-12,2006-06-01,2009-07-14,2011-06-01
6.10,Edgy Eft,edgy,2006-06-01,2006-10-26,2008-04-26
7.04,Feisty Fawn,feisty,2006-10-26,2007-04-19,2008-10-19
7.10,Gutsy Gibbon,gutsy,2007-04-19,2007-10-18,2009-04-18
8.04 LTS,Hardy Heron,hardy,2007-10-18,2008-04-24,2011-05-12,2013-05-09
8.10,Intrepid Ibex,intrepid,2008-04-24,2008-10-30,2010-04-30
9.04,Jaunty Jackalope,jaunty,2008-10-30,2009-04-23,2010-10-23
9.10,Karmic Koala,karmic,2009-04-23,2009-10-29,2011-04-30
10.04 LTS,Lucid Lynx,lucid,2009-10-29,2010-04-29,2013-05-09,2015-04-30
10.10,Maverick Meerkat,maverick,2010-04-29,2010-10-10,2012-04-10
11.04,Natty Narwhal,natty,2010-10-10,2011-04-28,2012-10-28
11.10,Oneiric Ocelot,oneiric,2011-04-28,2011-10-13,2013-05-09
12.04 LTS,Precise Pangolin,precise,2011-10-13,2012-04-26,2017-04-28,2017-04-28,2019-04-28
12.10,Quantal Quetzal,quantal,2012-04-26,2012-10-18,2014-05-16
13.04,Raring Ringtail,raring,2012-10-18,2013-04-25,2014-01-27
13.10,Saucy Salamander,saucy,2013-04-25,2013-10-17,2014-07-17
14.04 LTS,Trusty Tahr,trusty,2013-10-17,2014-04-17,2019-04-25,2019-04-25,2024-04-25
14.10,Utopic Unicorn,utopic,2014-04-17,2014-10-23,2015-07-23
15.04,Vivid Vervet,vivid,2014-10-23,2015-04-23,2016-02-04
15.10,Wily Werewolf,wily,2015-04-23,2015-10-22,2016-07-28
16.04 LTS,Xenial Xerus,xenial,2015-10-22,2016-04-21,2021-04-21,2021-04-21,2026-04-23
16.10,Yakkety Yak,yakkety,2016-04-21,2016-10-13,2017-07-20
17.04,Zesty Zapus,zesty,2016-10-13,2017-04-13,2018-01-13
17.10,Artful Aardvark,artful,2017-04-13,2017-10-19,2018-07-19
18.04 LTS,Bionic Beaver,bionic,2017-10-19,2018-04-26,2023-04-26,2023-04-26,2028-04-26
18.10,Cosmic Cuttlefish,cosmic,2018-04-26,2018-10-18,2019-07-18
19.04,Disco Dingo,disco,2018-10-18,2019-04-18,2020-01-23
19.10,Eoan Ermine,eoan,2019-04-18,2019-10-17,2020-07-17
20.04 LTS,Focal Fossa,focal,2019-10-17,2020-04-23,2025-04-23,2025-04-23,2030-04-23
20.04 LTS,Una,una,2019-10-17,2020-04-23,2025-04-23,2025-04-23,2030-04-23
20.10,Groovy Gorilla,groovy,2020-04-23,2020-10-22,2021-07-22
21.04,Hirsute Hippo,hirsute,2020-10-22,2021-04-22,2022-01-20
21.10,Impish Indri,impish,2021-04-22,2021-10-14,2022-07-14
22.04 LTS,Jammy Jellyfish,jammy,2021-10-14,2022-04-21,2027-04-21,2027-04-21,2032-04-21
22.10,Kinetic Kudu,kinetic,2022-04-21,2022-10-20,2023-07-20
23.04,Lunar Lobster,lunar,2022-10-20,2023-04-20,2024-01-25
Then, attaching the computer to Ubuntu Pro works, but there is no automatically launched service. Trying
sudo pro enable esm-infra
gives an error "Ubuntu 20.3 is not a valid version".
Looking at Ubuntu Pro logs, it seems that "/etc/os-release" is where Ubuntu Pro reads the distribution version.
So, "/etc/os-release" content is changed to:
Code: Select all
NAME="Ubuntu"
VERSION="20.04 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
At this step, the command
sudo pro enable esm-infra esm-apps
works and install the two "esm-infra" and "esm-apps" services.
When launching the Update Manager and actualizing it, updates are available, and I install them.
Here is
pro status
output:
Code: Select all
This machine is attached to an Ubuntu Pro subscription.
Main/Restricted packages are receiving security updates from
Ubuntu Pro with 'esm-infra' enabled until 2030.
Universe/Multiverse packages are receiving security updates from
Ubuntu Pro with 'esm-apps' enabled until 2030. You have received 18 security
updates.
pro status
SERVICE ENTITLED STATUS DESCRIPTION
esm-apps yes enabled Expanded Security Maintenance for Applications
esm-infra yes enabled Expanded Security Maintenance for Infrastructure
fips yes disabled NIST-certified core packages
fips-updates yes disabled NIST-certified core packages with priority security updates
livepatch yes disabled Canonical Livepatch service
usg yes disabled Security compliance and audit tools
Enable services with: pro enable <service>
Account: user@domain
Subscription: Ubuntu Pro - free personal subscription
And
pro security-status
output:
Code: Select all
2193 packages installed:
1600 packages from Ubuntu Main/Restricted repository
388 packages from Ubuntu Universe/Multiverse repository
183 packages from third parties
22 packages no longer available for download
To get more information about the packages, run
pro security-status --help
for a list of available options.
This machine is attached to an Ubuntu Pro subscription.
Main/Restricted packages are receiving security updates from
Ubuntu Pro with 'esm-infra' enabled until 2030.
Universe/Multiverse packages are receiving security updates from
Ubuntu Pro with 'esm-apps' enabled until 2030. You have received 18 security
updates.
The "Linux kernels" view is still active in the Update Manager, and it works correctly (it is not affected by the change in "/etc/os-release").
But this does not last, and kernel tool does not launch at next boot.
At this moment, "mintsources" still does not launch.
As I guessed, it can be corrected the following way: in "/usr/share/mintsources" directory, copy "una" subdirectroy and its content to "focal" subdirectory.
That's all, "mintsources" can now be launched! It even shows four extra repositories: "Ubuntu/focal-apps-security", "Ubuntu/focal-apps-updates", "Ubuntu/focal-infra-security" and "Ubuntu/focal-infra-updates", added by Ubuntu Pro.
Finally, this hack allows having Ubuntu Pro and Linux Mint mintsources working altogether.
Unfortunately, it does not allow having kernel tool working.
Workarounds:
- Enable Ubuntu Pro Livepatch service, that allows to have kernel update without session interrupt.
In order to enable it:
* Remove "/etc/apt/preferences.d/nosnap.pref" or comment its content.
* Change the contents of "/etc/issue", "/etc/issue.net", "/etc/lsb-release", as in
viewtopic.php?p=2291833#p2291833.
* Then
sudo pro enable livepatch
After this, my system inxi report is:
Code: Select all
System:
Kernel: 5.4.0-137-generic arch: x86_64 bits: 64 compiler: gcc v: 9.4.0 Desktop: MATE v: 1.26.0
wm: Metacity dm: LightDM Distro: Ubuntu 20.04 LTS (Focal Fossa) base: Ubuntu 20.04 focal
Machine:
Type: Laptop System: ASUSTeK product: G74Sx v: 1.0 serial: <superuser required>
Mobo: ASUSTeK model: G74Sx v: 1.0 serial: <superuser required> BIOS: American Megatrends
v: G74Sx.203 date: 09/23/2011
Battery:
ID-1: BAT0 charge: 40.5 Wh (100.0%) condition: 40.5/72.8 Wh (55.6%) volts: 15.3 min: 14.4
model: ASUSTek G74--52 serial: N/A status: full
CPU:
Info: quad core model: Intel Core i7-2670QM bits: 64 type: MT MCP arch: Sandy Bridge rev: 7
cache: L1: 256 KiB L2: 1024 KiB L3: 6 MiB
Speed (MHz): avg: 2876 high: 2956 min/max: 800/3100 cores: 1: 2802 2: 2886 3: 2816 4: 2866
5: 2884 6: 2956 7: 2899 8: 2905 bogomips: 35119
Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
Device-1: NVIDIA GF116M [GeForce GT 560M] vendor: ASUSTeK driver: nvidia v: 390.157 arch: Fermi
pcie: speed: 5 GT/s lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:1251
Device-2: IMC Networks Integrated Webcam type: USB driver: uvcvideo bus-ID: 1-1.2:4
chip-ID: 13d3:5134
Display: x11 server: X.Org v: 1.20.13 with: Xwayland driver: X: loaded: nvidia
unloaded: fbdev,modesetting,nouveau,vesa gpu: nvidia display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 128
Monitor-1: LVDS-0 res: 1920x1080 dpi: 128 diag: 438mm (17.26")
API: OpenGL v: 4.6.0 NVIDIA 390.157 renderer: GeForce GTX 560M/PCIe/SSE2 direct render: Yes
Audio:
Device-1: Intel 6 Series/C200 Series Family High Definition Audio vendor: ASUSTeK 6
driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:1c20
Device-2: NVIDIA GF116 High Definition Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel
pcie: speed: 5 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:0bee
Sound API: ALSA v: k5.4.0-137-generic running: yes
Sound Server-1: PulseAudio v: 13.99.1 running: yes
Network:
Device-1: Qualcomm Atheros AR9285 Wireless Network Adapter vendor: AzureWave AW-NB037H 802.11bgn
driver: ath9k v: kernel pcie: speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 168c:002b
IF: wlp3s0 state: up mac: <filter>
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: ASUSTeK U6V/U31J laptop driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: 9000
bus-ID: 05:00.0 chip-ID: 10ec:8168
IF: enp5s0 state: down mac: <filter>
IF-ID-1: vmnet1 state: unknown speed: N/A duplex: N/A mac: <filter>
IF-ID-2: vmnet8 state: unknown speed: N/A duplex: N/A mac: <filter>
Bluetooth:
Device-1: Qualcomm Atheros AR3011 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-1.1:3
chip-ID: 0cf3:3005
Report: hciconfig ID: hci0 rfk-id: 2 state: down bt-service: N/A rfk-block: hardware: no
software: yes address: <filter>
Drives:
Local Storage: total: 931.51 GiB used: 273.11 GiB (29.3%)
ID-1: /dev/sda vendor: Crucial model: CT1000MX500SSD1 size: 931.51 GiB speed: 6.0 Gb/s
serial: <filter>
Partition:
ID-1: / size: 139.75 GiB used: 14.23 GiB (10.2%) fs: ext4 dev: /dev/sda1
ID-2: /home size: 744.98 GiB used: 258.88 GiB (34.8%) fs: ext4 dev: /dev/sda2
Swap:
ID-1: swap-1 type: partition size: 30.52 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/sda3
USB:
Hub-1: 1-0:1 info: Full speed or root hub ports: 6 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002
Hub-2: 1-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev: 2.0 speed: 480 Mb/s
chip-ID: 8087:0024
Device-1: 1-1.1:3 info: Qualcomm Atheros AR3011 Bluetooth type: Bluetooth driver: btusb
rev: 1.1 speed: 12 Mb/s chip-ID: 0cf3:3005
Device-2: 1-1.2:4 info: IMC Networks Integrated Webcam type: Video driver: uvcvideo rev: 2.0
speed: 480 Mb/s chip-ID: 13d3:5134
Device-3: 1-1.4:5 info: Realtek RTS5139 Card Reader Controller type: <vendor specific>
driver: rtsx_usb,rtsx_usb_ms,rtsx_usb_sdmmc rev: 2.0 speed: 480 Mb/s chip-ID: 0bda:0139
Hub-3: 2-0:1 info: Full speed or root hub ports: 8 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002
Hub-4: 2-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev: 2.0 speed: 480 Mb/s
chip-ID: 8087:0024
Device-1: 2-1.2:3 info: Trust type: Mouse driver: hid-generic,usbhid rev: 1.1 speed: 1.5 Mb/s
chip-ID: 145f:01d9
Hub-5: 2-1.3:4 info: Genesys Logic Hub ports: 4 rev: 2.0 speed: 480 Mb/s chip-ID: 05e3:0608
Device-1: 2-1.3.3:5 info: Microsoft Digital Media Keyboard 3000 type: Keyboard,HID
driver: microsoft,usbhid rev: 2.0 speed: 1.5 Mb/s chip-ID: 045e:0730
Device-2: 2-1.3.4:6 info: Wacom CTL-470 [Bamboo Connect] type: Mouse,HID driver: usbhid,wacom
rev: 2.0 speed: 12 Mb/s chip-ID: 056a:00dd
Hub-6: 3-0:1 info: Hi-speed hub with single TT ports: 1 rev: 2.0 speed: 480 Mb/s
chip-ID: 1d6b:0002
Hub-7: 4-0:1 info: Super-speed hub ports: 1 rev: 3.0 speed: 5 Gb/s chip-ID: 1d6b:0003
Sensors:
System Temperatures: cpu: 82.0 C mobo: N/A gpu: nvidia temp: 70 C
Fan Speeds (RPM): cpu: 3300
Repos:
Packages: 2231 pm: dpkg pkgs: 2194 pm: flatpak pkgs: 34 pm: snap pkgs: 3
No active apt repos in: /etc/apt/sources.list
Active apt repos in: /etc/apt/sources.list.d/flatpak-stable-focal.list
1: deb http: //ppa.launchpad.net/flatpak/stable/ubuntu focal main
Active apt repos in: /etc/apt/sources.list.d/graphics-drivers-ppa-focal.list
1: deb http: //ppa.launchpad.net/graphics-drivers/ppa/ubuntu focal main
Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
1: deb http: //packages.linuxmint.com una main upstream import backport
2: deb http: //archive.ubuntu.com/ubuntu focal main restricted universe multiverse
3: deb http: //archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
4: deb http: //archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
5: deb http: //security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
6: deb http: //archive.canonical.com/ubuntu/ focal partner
Active apt repos in: /etc/apt/sources.list.d/tor.list
1: deb https: //deb.torproject.org/torproject.org/ focal main
Active apt repos in: /etc/apt/sources.list.d/ubuntu-esm-apps.list
1: deb https: //esm.ubuntu.com/apps/ubuntu focal-apps-security main
2: deb https: //esm.ubuntu.com/apps/ubuntu focal-apps-updates main
Active apt repos in: /etc/apt/sources.list.d/ubuntu-esm-infra.list
1: deb https: //esm.ubuntu.com/infra/ubuntu focal-infra-security main
2: deb https: //esm.ubuntu.com/infra/ubuntu focal-infra-updates main
Info:
Processes: 275 Uptime: 10m Memory: 15.61 GiB used: 2.53 GiB (16.2%) Init: systemd v: 245
target: graphical (5) default: graphical Compilers: gcc: 9.4.0 alt: 9 Client: Unknown python3.8
client inxi: 3.3.24
(NB: my system is now recognized as Ubuntu 20.04 LTS; and I have three snap packages installed on my system; mintsources is still working).
- Or use another kernel management tool.
* Mainline is free and OpenSource, but it can manage only mainline kernels, and not generic ones.
* UKUU advanced version, payware, allows selecting "generic" in the list of kernels and to avoid mainline ones. See
https://teejeetech.com/2022/04/02/ukuu- ... more-10717
Regards,
MN