Lenovo Thinkpad P16 Gen2 laptop won't accept 24.04

Thanks for the tip on inxi. I hadn’t known of that tool.

$ inxi -r
Repos:
  Active apt repos in: /etc/apt/sources.list
    1: deb http://us.archive.ubuntu.com/ubuntu/ jammy main restricted
    2: deb http://us.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
    3: deb http://us.archive.ubuntu.com/ubuntu/ jammy universe
    4: deb http://us.archive.ubuntu.com/ubuntu/ jammy-updates universe
    5: deb http://us.archive.ubuntu.com/ubuntu/ jammy multiverse
    6: deb http://us.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
    7: deb http://us.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
    8: deb http://security.ubuntu.com/ubuntu jammy-security main restricted
    9: deb http://security.ubuntu.com/ubuntu jammy-security universe
    10: deb http://security.ubuntu.com/ubuntu jammy-security multiverse
  Active apt repos in: /etc/apt/sources.list.d/lenovo-oem.list
    1: deb [signed-by=/usr/share/volatile/lenovo-oem/gpg/oem_pubkeys.asc] file:///usr/share/volatile/lenovo-oem/archive /
  Active apt repos in: /etc/apt/sources.list.d/oem-jiayi-meta.list
    1: deb http://oem.archive.canonical.com/ jammy jiayi
  Active apt repos in: /etc/apt/sources.list.d/oem-sutton-barrett-meta.list
    1: deb http://lenovo.archive.canonical.com/ jammy sutton

It is the last two, oem-jiayi-meta.list and oem-sutton-barrett-meta that are causing the upgrade to fail. If anyone could give me a concise description of what these do, I might be willing to reimage the disk.

At this point, I’d love it if someone with experience with this issue, namely, proprietary packages not fitting in with the Ubuntu release cycle, could tell me how long they have seen it take for a vendor like Lenovo to provide the OEM packages needed to allow the Ubuntu upgrade process to work. I’m not looking for anybody’s guarantee, just wanting to know the lay of the land.

Am I being too impatient? Have you ever seen a case where the vendor NEVER provides OEM packages, thereby locking the user into outdated versions and forcing them to “mess around” getting the upgrade to go, at the risk of possibly disabling some piece of hardware?

Can you show us the output of this command:
apt show oem-jiayi-meta oem-sutton-barrett-meta

$ apt show oem-jiayi-meta oem-sutton-barrett-meta
Package: oem-jiayi-meta
Version: 22.04ubuntu3
Status: install ok installed
Priority: optional
Section: misc
Maintainer: Commercial Engineering commercial-engineering@canonical.com
Installed-Size: 13.3 kB
Depends: ubuntu-oem-keyring, manage-estar-settings
Download-Size: unknown
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: hardware support for Jiayi project

Package: oem-sutton-barrett-meta
Version: 22.04ubuntu8
Priority: optional
Section: misc
Maintainer: Commercial Engineering commercial-engineering@canonical.com
Installed-Size: 21.5 kB
Depends: ubuntu-oem-keyring, linux-generic-hwe-22.04, oem-sutton-meta
Modaliases: meta(dmi:bvnLENOVO:bvrN3T:pvrThinkPad*)
Ubuntu-Oem-Kernel-Flavour: default
Download-Size: 2,988 B
APT-Manual-Installed: yes
APT-Sources: http://lenovo.archive.canonical.com jammy/sutton amd64 Packages
Description: hardware support for Lenovo ThinkPad P16 Gen 2

N: There are 2 additional records. Please use the ‘-a’ switch to see them.

$ apt show oem-jiayi-meta oem-sutton-barrett-meta -a
Package: oem-jiayi-meta
Version: 22.04ubuntu3
Status: install ok installed
Priority: optional
Section: misc
Maintainer: Commercial Engineering commercial-engineering@canonical.com
Installed-Size: 13.3 kB
Depends: ubuntu-oem-keyring, manage-estar-settings
Download-Size: unknown
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: hardware support for Jiayi project

Package: oem-jiayi-meta
Version: 22.04ubuntu2
Priority: optional
Section: misc
Maintainer: Commercial Engineering commercial-engineering@canonical.com
Installed-Size: 13.3 kB
Depends: ubuntu-oem-keyring
Download-Size: 1,892 B
APT-Sources: http://oem.archive.canonical.com jammy/jiayi amd64 Packages
Description: hardware support for Jiayi project

Package: oem-sutton-barrett-meta
Version: 22.04ubuntu8
Priority: optional
Section: misc
Maintainer: Commercial Engineering commercial-engineering@canonical.com
Installed-Size: 21.5 kB
Depends: ubuntu-oem-keyring, linux-generic-hwe-22.04, oem-sutton-meta
Modaliases: meta(dmi:bvnLENOVO:bvrN3T:pvrThinkPad*)
Ubuntu-Oem-Kernel-Flavour: default
Download-Size: 2,988 B
APT-Manual-Installed: yes
APT-Sources: http://lenovo.archive.canonical.com jammy/sutton amd64 Packages
Description: hardware support for Lenovo ThinkPad P16 Gen 2

Package: oem-sutton-barrett-meta
Version: 22.04~ubuntu1
Priority: optional
Section: misc
Origin: Ubuntu
Maintainer: Commercial Engineering commercial-engineering@canonical.com
Bugs: OpenID transaction in progress
Installed-Size: 13.3 kB
Depends: ubuntu-oem-keyring
Modaliases: meta(dmi:bvnLENOVO:bvrN3T:pvrThinkPad*)
Ubuntu-Oem-Kernel-Flavour: oem
Download-Size: 1,906 B
APT-Sources: Index of /ubuntu jammy-updates/main amd64 Packages
Description: hardware support for Lenovo ThinkPad P16 Gen 2
This is a metapackage for Lenovo PC:

  • Lenovo ThinkPad P16 Gen 2
    It installs packages needed to support this hardware fully.

Here’s the thing: from what little I could determine, the two packages are somehow bound up with the whole Lenovo OEM thing.

Is there possibly a way to upgrade? Maybe.

You might be able to upgrade by holding back those two packages and then once the upgrade is successful, releasing the hold on them.

I have never tried this nor seen anyone mention it (at least not in my short time here or the longer time I spent on Ubuntu Forums).

Please also show this:
dpkg --list | grep hwe

1 Like

The OP really should not have to hold back those packages:
http://lenovo.archive.canonical.com/dists/

This smells more like a Bug to me.

1 Like
$ dpkg --list | grep hwe
ii  linux-generic-hwe-22.04                    6.8.0-51.52~22.04.1                     amd64        Complete Generic Linux kernel and headers
ii  linux-headers-generic-hwe-22.04            6.8.0-51.52~22.04.1                     amd64        Generic Linux kernel headers
ii  linux-hwe-6.8-headers-6.8.0-51             6.8.0-51.52~22.04.1                     all          Header files related to Linux kernel version 6.8.0
ii  linux-hwe-6.8-tools-6.8.0-51               6.8.0-51.52~22.04.1                     amd64        Linux kernel version specific tools for version 6.8.0-51
ii  linux-image-generic-hwe-22.04              6.8.0-51.52~22.04.1                     amd64        Generic Linux kernel image
ii  linux-modules-nvidia-535-generic-hwe-22.04 6.8.0-51.52~22.04.1                     amd64        Extra drivers for nvidia-535 for the generic-hwe-22.04 flavour
ii  systemd-hwe-hwdb                           249.11.5                                all          udev rules for hardware enablement (HWE)

Please explain what you mean by “holding back those two packages”. And what would be the difference between “holding them back” and then immediately releasing the hold vs. not holding them back in the first place?

I do thank you though for actually thinking about my specific issue. Many others are just throwing generic “solutions” my way without understanding the problem.

Thanks.

I agree that it smells like a bug or at least a missing package. Again, can someone explain “holding back packages” to me? I don’t know how to do that.

As for the link you sent, I’m not sure what solution you see there. Going there I see Index of /dists/jammy-jiayi (i.e. jiayi for 22.04) but no noble-jiayi (jiyai for 24.04). And no sutton-barrett-meta for any upgrade level.

What did you intend by sending me there? I don’t quite understand.

It dose what it says, puts a package or packages on hold no install.

But you should have good back-ups first the holding of those packages could have very bad side-effects or a broken install to your up-grade

Please see this:
man apt-mark
More here: https://ostechnix.com/hold-or-prevent-a-package-from-upgrade-in-debian-ubuntu/

As for the link I gave there is no solution intended It confirms a bug in a incomplete upgrade path.

Again I recommend to first file a bug against your do-release-upgrade, before holding any packages back.

I’ve read this thread a few times, and I can’t see any logs or messages showing the upgrade failure. Is there something we can see, which shows the actual issue?

It looks to me like the laptop was shipped with the hardware enablement repositories enabled because they’re required in order to be a certified device. Note this text:

Pre-installed in some regions with a custom Ubuntu image that takes advantage of the system’s hardware features and may include additional software. Standard images of Ubuntu may not work well, or at all.

The OEMMeta wiki page describes the necessity for the oem-*-meta. Perhaps interestingly the oem-jiayi-meta package appears to be for the enablement of a Dell laptop. Perhaps there’s some shared data between the Dell and Lenovo models. :person_shrugging:

The oem-sutton-barrett-meta is specific for your model of laptop. The quirky names are because the hardware enablement team (mostly based in Taipei) use codenames to hide new manufacturers, and pre-release models of hardware from public view. So “sutton” is probably Lenovo, and “barrett” could be your model of laptop.

The source code for that is in this git repo.

It is possible that the changes that were required, so your laptop could be supported by the custom image for 22.04, may no longer be required for 24.04. So it’s possible you might be able to disable the repos, upgrade, and everything work.

It’s also possible something won’t work properly, like wifi, suspend, or the GPU.

One way to find out would be to download the latest 24.04 install image, and put it on a USB stick, then boot the system with it. Noodle around, and make sure the things that work on 22.04 (wifi, touchpad etc) work as you expect.

In my experience (I have a ThinkPad Z13, that shipped with Ubuntu) upgrading a OEM-pre-installed system some time after the next LTS is out, is usually pretty smooth. If that were my laptop, I’d disable the repos, and try the upgrade. However, it could all explode in a thousand colours, kick your cat, and leave the taps running. So you may want to take additional care, backups, and seek other opinions. :slight_smile:

2 Likes

Grrrr. We are apparently talking on two different threads! Don’t know how that happened.

I have USB drives one with the original out-of-the-box config of the machine and the other with 24.04.1 image. There is nothing on this machine yet that needs to be backed up.

I am torn in three different directions, or possibly four.

  1. Wait for call back from Lenovo on the issue I opened with them. I’d like to get some answers about the packages and what I do and don’t need, but I strongly suspect their reply won’t satisfy me.

  2. Try the reimage option and see what happens, secure in the knowledge that I have a backup image of the original system.

  3. I have heard that Kubuntu has a 24.04 version that does not have these problems that may be worth a try but have not researched this carefully enough.

  4. just return the ****** thing to Lenovo and try somebody else with no assurance that anything else will be better.

I find it very hard to contain my anger that I should have to go through this after paying $3000 for this system. I really don’t want to return it. Earlier this month I returned a computer to System76 - AND its replacement - for problems much more serious than this. After a day’s use the system wouldn’t boot! I used to say that Linux WAS ready for prime time, but this is getting tedious.

I am beset by two different types of “helpful” advice:

  • People who without even understanding this issue point me at generic info that has no applicability to my situation. Or Lenovo tech support that says “not certified - go away”
  • “Cowboys” who advise me to charge ahead and fix whatever mess may be created which they assure me can always be done. I like to mess around or I wouldn’t be using Linux, but not at this level. At some point I want to use the computer for the purpose for which I bought it.

I don’t place you in these category, popey. You seem to have taken the time to grok the situation.

FYI, I have combined two posts into one, so for anyone reading this might be confused if reading it top to bottom: check the timestamps.

Apparently Discourse isn’t very good at merging topics. :disappointed:

@1fallen file a bug with whom? Ubuntu or Lenovo?

Lets wait to see how others view this first. I know your eager to solve this.

I’m just as confused as you are now, 2 Threads is a bit much to stay calm for anyone.

Tried editing the source files, replacing spaces with hyphens as indicated. It didn’t work. I didn’t think it would but thought it was worth a try. :frowning:

At this point, I have viewed all the suggestions made, all the source repositories anyone could point me at and find this to be my inescapable conclusion:

  1. Ubuntu has no control over Lenovo or other vendors as far as assuring timely compliance with releasing oem driver packages for new models.
  2. Lenovo uses the certification system to deflect any complaints about the above.
  3. Ubuntu needs Lenovo to keep making Linux machines and is therefore unwilling to push them very hard on this. And their web-help community sites, having no good solution, can only abuse their users with down-votes, closing issues that they cannot answer. This is the only Ubuntu site I’ve found that does not do this.
  4. As far as I can tell, in my case, the required OEM driver software does not yet exist and I have no idea when it will.
  5. Users of such machines have two choices:
    either 1) accept that their machine is not upgradable until the hardware vendor produces usable driver software, or 2) go the cowboy route and do deep hacking of their system, a time-sucking process that may interfere with the actual uses for which they purchased the system, if it even works.

I am waiting for a call back from Lenovo. If they don’t call me I’m calling them. I want them to tell me WHEN these driver packages are going to be released. Never is not an acceptable answer. Linux systems need to be upgradable.

I think Ubuntu and not individual users should be pushing vendors (gently, perhaps) to produce the necessary packages.

Update: my only uncertainty about the above is that I don’t really know who is the creator of the OEM packages. Is it Lenovo or is it Ubuntu (Canonical) or is it collaborative between them? Whatever it is, something is broken.

I am rethinking this.

Do I really care if I am running 22.04 or 24.04? With the Ubuntu Pro/ESM support I have signed up for, it seems that this means there will continue to be updates provided for 22.04, so how much difference does the version really make to me? Not much! If I can stop worrying about that, I can get about what I really want to do, which is use this shiny new computer that I just bought.

In fact, I wonder, is the difficulty in getting oem hardware support, the very reason for the introduction of Ubuntu Pro/ESM in the first place??? Is Ubuntu Pro Ubuntu’s answer to this problem?

I hope I can clear up these thoughts. I used to work at Canonical, so know a little about how this works.

I think you have had some “bum steers” from people who don’t appreciate the hardware enablement and certification processes, sadly :pray:

I came to this thread late, after it had been broken up, and you were already frustrated. I’d recommend putting at the conversation and politicing aside, and just boot a 24.04 ISO on a USB stick and see what works. That will get you further than screeds of text complaining about Lenovo and Ubuntu :slight_smile:

(Much as it might be cathartic to do that) :smiley:

The hardware manufacturers contract Canonical for engineering services. They also do this with Red Hat and others. They pay for the initial hardware enablement work, which typically involves patching the kernel, or adding packages to a special image.

Ubuntu (the open source distro, whose development is sponsored by Canonical) doesn’t really have “control” over the hardware vendors at all. The OEMs decide what services they wish to contract from Canonical.

Once a laptop model has gone from pizzabox to customer release, the hardware vendor has typically long moved on to the next model. They get no recurring revenue from you owning that laptop you purchased a few years ago.

It basically comes down to “Who is going to pay for the ongoing maintenance for that device in the next Ubuntu release?”

That’s quite a negative view from a frustrated user, I understand.

Bear in mind this is all open source stuff. Someone (you, me, anyone else) with sufficient skills, time and motivation (and the hardware) could take the patches (or whatever work is required) to “forward port” the changes that were landed in 22.04, and bring them to 24.04. That’s kinda the point of putting the source out there.

Well, it might not need to. Like I said in my other post, it’s entirely possible that you don’t need that driver anymore, because the work may have been integrated into the upstream (or Ubuntu patched) kernel.

Option 3) Boot from a live 24.04 and see for themselves if the system works on the new release.

Option 4) Remove the two OEM repos, and do the upgrade anyway.

I went for 4, and it worked on my Lenovo Z13.

I’m happily running 24.04 and everything works using the OEM kernel from the repo.

linux-image-oem-24.04a which pulled in linux-modules-6.8.0-1019-oem, that I have been happily running for some time now:

uptime
 06:48:46 up 24 days, 18:20,  2 users,  load average: 1.77, 1.34, 1.17

Indeed, these OEM kernels in the repo are giving me super uptimes, no desktop crashes, great performance, functioning wifi etc.

uprecords
     #               Uptime | System                                     Boot up
----------------------------+---------------------------------------------------
     1    56 days, 04:26:55 | Linux 6.8.0-1013-oem      Wed Oct 16 09:34:19 2024
     2    51 days, 21:59:01 | Linux 6.5.0-14-generic    Fri Dec  8 09:53:57 2023
     3    42 days, 19:40:06 | Linux 6.8.0-1011-oem      Tue Sep  3 13:15:26 2024
     4    28 days, 06:58:32 | Linux 6.5.0-10-generic    Wed Nov  8 10:15:39 2023
     5    27 days, 08:17:13 | Linux 6.9.3-060903-gener  Thu Jul 11 11:45:41 2024
     6    26 days, 17:00:59 | Linux 6.8.0-1009-oem      Wed Aug  7 20:10:43 2024
->   7    24 days, 18:20:42 | Linux 6.8.0-1019-oem      Thu Jan  2 12:28:16 2025
     8    22 days, 21:00:14 | Linux 6.3.3-060303-gener  Wed Jun 14 12:48:19 2023
     9    21 days, 19:44:25 | Linux 6.8.0-1017-oem      Wed Dec 11 13:44:40 2024
    10    18 days, 12:44:18 | Linux 6.2.0-32-generic    Thu Sep 14 11:29:42 2023
----------------------------+---------------------------------------------------
1up in     1 day , 22:40:18 | at                        Wed Jan 29 05:29:15 2025
no1 in    31 days, 10:06:14 | at                        Thu Feb 27 16:55:11 2025
    up   714 days, 13:28:18 | since                     Fri Dec 23 22:56:48 2022
  down    50 days, 18:23:52 | since                     Fri Dec 23 22:56:48 2022
   %up               93.367 | since                     Fri Dec 23 22:56:48 2022

Thanks for your sensible voice of experience.

What am I testing for? I’ve seen posts that say wifi and/or bluetooth don’t work after such an install. I suppose those would be easy enough to test quickly. But can I really test the graphics card without installing the driver onto the live boot? The fact that upgrades are disabled by the vendor tells me they’re scared something won’t work. Or is it excessive caution? I will here refrain from any political comments about putting testing responsibility on the end user of a computer they just purchased. :wink:

I guess I’m willing to try that, secure in the knowledge that I can always go back to the factory-fresh config which I saved onto a USB stick as instructed by the machine on its first start.

What do you think of “Option 5” which I posted above? - just sticking with 22.04 and waiting for release of the drivers with needed updates provided by ESM. What are the negatives there?

Thanks again for helping me keep my sanity.

The P16 comes with either Intel integrated GPU, or NVIDIA discrete GPU. Which do you have? The following command will tell you.

lshw -C video

I honestly think you’re overthinking this. They ship a product with an OS. That OS is still supported, and as such they’re not really under any obligation to help you move off that OS. Can we stick to the technical questions and leave the navel gazing for another day? :slight_smile:

As time goes on, enough people who are technically savvy will want a newer release working on their laptop, in general, on the whole, the newer kernels will work because the changes that were hurried into the oem* packages trickle into the upstream kernel.

In short, don’t expect Canonical do directly provide any driver updates for later LTS releases, unless Lenovo pays them to.

So, either keep what you have, and try upgrading later, or upgrade now. But use the live ISO as a way to do a quick check to make sure a slightly more modern kernel will do what’s needed on that device.

The question is just “now or later”. I’d opt for now, while you have us all on tenterhooks and are willing to help if it falls to pieces.

1 Like