![](https://secure.gravatar.com/avatar/bf3422bf88ec0571eb674700a5a85c8f.jpg?s=120&d=mm&r=g)
I hope one or more of you can help me. I upgraded today from Ubuntu 18.04 LTS to 20.04 LTS on my desktop computer. (I know I am way behind, but I can do this only in the summer etc., etc.) I used the built-in Ubuntu update feature. It worked better than I expected and took less that two hours. The data backups I did ahead of time took much longer. Anyway, 20.04 is running but I have two problems. Number One: Many terminal commands give this message: Errors were encountered while processing: linux-image-4.15.0-212-generic Processing was halted because there were too many errors. W: Can not find PkgVer for 'linux-image-extra-4.4.0-122-generic' E: Sub-process /usr/bin/dpkg returned an error code (1) In particular, here is what happens when I try to remove 4.4.0-212. sudo apt-get --purge remove linux-image-extra-4.4.0-212-generic Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package linux-image-extra-4.4.0-212-generic E: Couldn't find any package by glob 'linux-image-extra-4.4.0-212-generic' E: Couldn't find any package by regex 'linux-image-extra-4.4.0-212-generic' Number Two: I cannot get audio out of Line Out to my speakers. And I cannot get audio into Line In to make recordings. I *do* get audio from the audio output on my HDMI monitor. This might be related to the need for codecs, but when I try various terminal commands to load more codecs, I get problem Number 1 ! Some of what I read on the Web mentions tex files that could cause Number 1. I do have TeXstudio installed. I tried to uninstall texstudio and texlive, but when I do that, I get the message ant Number One! I'd appreciate any help or suggestions. Thank you. George Caplan email: gmcaplan@gmcaplan.org Phone: 978-263-5288 (landline, no texts)
![](https://secure.gravatar.com/avatar/db524516a64318b0e937d41357c729eb.jpg?s=120&d=mm&r=g)
"gmcaplan---" == gmcaplan--- via WLUG <wlug@lists.wlug.org> writes:
I hope one or more of you can help me. I upgraded today from Ubuntu 18.04 LTS to 20.04 LTS on my desktop computer. (I know I am way behind, but I can do this only in the summer etc., etc.) I used the built-in Ubuntu update feature. It worked better than I expected and took less that two hours. The data backups I did ahead of time took much longer.
Anyway, 20.04 is running but I have two problems.
Number One:
Many terminal commands give this message: Errors were encountered while processing: linux-image-4.15.0-212-generic Processing was halted because there were too many errors. W: Can not find PkgVer for 'linux-image-extra-4.4.0-122-generic' E: Sub-process /usr/bin/dpkg returned an error code (1)
In particular, here is what happens when I try to remove 4.4.0-212.
sudo apt-get --purge remove linux-image-extra-4.4.0-212-generic Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package linux-image-extra-4.4.0-212-generic E: Couldn't find any package by glob 'linux-image-extra-4.4.0-212-generic' E: Couldn't find any package by regex 'linux-image-extra-4.4.0-212-generic'
This is funky. I suspect that you have an old package from a previous upgrade, did you come from Ubuntu 16.x or earlier on this same system? You might try to run the following, all as root or with sudo: apt clean apt update apt install --fix-missing apt upgrade and see what each command says. So please share the full and complete outputs. You might also be able to do: apt purge linux-image-extra-4.4.0-212-generic But maybe you can share the output of: dpkg-query -l | grep linux-image-extra and see if that package is listed and share with us the full details? From the looks of it, you DID do a previous upgrade from Ubuntu 16.0 at some point, but didn't didn't do: apt autoremove once you finished the ugprade to 18.x, but I think we can make this work with a bit of finagling. Also, please look at these instructions, and once we get this fixed, I'm going to suggest you go right to 22.04 LTS, and then just stick with LTS versions if you can't upgrade very often. https://help.ubuntu.com/community/EOLUpgrades But the last thing to try, if none of the above works might be to do: dpkg --purge --force-remove-reinstreq linux-image-extra-4.4.0-212-generic and see if _that_ does the trick. John
Number Two:
I cannot get audio out of Line Out to my speakers. And I cannot get audio into Line In to make recordings. I *do* get audio from the audio output on my HDMI monitor. This might be related to the need for codecs, but when I try various terminal commands to load more codecs, I get problem Number 1 !
Yeah, let's fix your apt-repo, which seems to be in a wierd state. But maybe you can also post what your hardware is, including the output of: lspci
Some of what I read on the Web mentions tex files that could cause Number 1. I do have TeXstudio installed. I tried to uninstall texstudio and texlive, but when I do that, I get the message ant Number One!
Yeah, I doubt that's the problem, but we'll try to help here. Do you have any special stuff in /etc/apt/sources.list or do you have any extra file in ls /etc/apt/sources.list.d/ and what I'd probably do is remove all extra sources in there for now, just to make sure things are ok.
![](https://secure.gravatar.com/avatar/bf3422bf88ec0571eb674700a5a85c8f.jpg?s=120&d=mm&r=g)
John, Thank you for your help with my recent Linux problems. Sorry I did not say anything sooner. George Caplan On 2024-06-26 9:39 pm, John Stoffel via WLUG wrote:
"gmcaplan---" == gmcaplan--- via WLUG <wlug@lists.wlug.org> writes:
I hope one or more of you can help me. I upgraded today from Ubuntu 18.04 LTS to 20.04 LTS on my desktop computer. (I know I am way behind, but I can do this only in the summer etc., etc.) I used the built-in Ubuntu update feature. It worked better than I expected and took less that two hours. The data backups I did ahead of time took much longer.
Anyway, 20.04 is running but I have two problems.
Number One:
Many terminal commands give this message: Errors were encountered while processing: linux-image-4.15.0-212-generic Processing was halted because there were too many errors. W: Can not find PkgVer for 'linux-image-extra-4.4.0-122-generic' E: Sub-process /usr/bin/dpkg returned an error code (1)
In particular, here is what happens when I try to remove 4.4.0-212.
sudo apt-get --purge remove linux-image-extra-4.4.0-212-generic Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package linux-image-extra-4.4.0-212-generic E: Couldn't find any package by glob 'linux-image-extra-4.4.0-212-generic' E: Couldn't find any package by regex 'linux-image-extra-4.4.0-212-generic'
This is funky. I suspect that you have an old package from a previous upgrade, did you come from Ubuntu 16.x or earlier on this same system?
You might try to run the following, all as root or with sudo:
apt clean apt update apt install --fix-missing apt upgrade
and see what each command says. So please share the full and complete outputs. You might also be able to do:
apt purge linux-image-extra-4.4.0-212-generic
But maybe you can share the output of:
dpkg-query -l | grep linux-image-extra
and see if that package is listed and share with us the full details?
From the looks of it, you DID do a previous upgrade from Ubuntu 16.0 at some point, but didn't didn't do:
apt autoremove
once you finished the ugprade to 18.x, but I think we can make this work with a bit of finagling.
Also, please look at these instructions, and once we get this fixed, I'm going to suggest you go right to 22.04 LTS, and then just stick with LTS versions if you can't upgrade very often.
https://help.ubuntu.com/community/EOLUpgrades
But the last thing to try, if none of the above works might be to do:
dpkg --purge --force-remove-reinstreq linux-image-extra-4.4.0-212-generic
and see if _that_ does the trick.
John
Number Two:
I cannot get audio out of Line Out to my speakers. And I cannot get audio into Line In to make recordings. I *do* get audio from the audio output on my HDMI monitor. This might be related to the need for codecs, but when I try various terminal commands to load more codecs, I get problem Number 1 !
Yeah, let's fix your apt-repo, which seems to be in a wierd state. But maybe you can also post what your hardware is, including the output of:
lspci
Some of what I read on the Web mentions tex files that could cause Number 1. I do have TeXstudio installed. I tried to uninstall texstudio and texlive, but when I do that, I get the message ant Number One!
Yeah, I doubt that's the problem, but we'll try to help here.
Do you have any special stuff in /etc/apt/sources.list or do you have any extra file in
ls /etc/apt/sources.list.d/
and what I'd probably do is remove all extra sources in there for now, just to make sure things are ok. _______________________________________________ WLUG mailing list -- wlug@lists.wlug.org To unsubscribe send an email to wlug-leave@lists.wlug.org Create Account: https://wlug.mailman3.com/accounts/signup/ Change Settings: https://wlug.mailman3.com/postorius/lists/wlug.lists.wlug.org/ Web Forum/Archive: https://wlug.mailman3.com/hyperkitty/list/wlug@lists.wlug.org/message/Y23FW7...
![](https://secure.gravatar.com/avatar/c63aa4bbd5a1c3d126a0e7258fb2c9f5.jpg?s=120&d=mm&r=g)
On 7/1/24 9:34 PM, gmcaplan--- via WLUG wrote:
John, Thank you for your help with my recent Linux problems. Sorry I did not say anything sooner.
I'm coming late to this discussion; sorry about that. Re: "old packages from a previous upgrade" ... in Ubuntu, the "do-release-upgrade" script is supposed to clear those out. But if do-release-upgrade crashes out, people can get lost as they don't know how to duke it out with the package manager. My standard "update the software" in Ubuntu/Debian looks for deletable and orphan packages specifically. Nuking orphan stuff and removing old cruft beforehand, is THE WAY to make your upgrades work better. The only other source of complication is old additional software repos in /etc/apt/sources.list.d/[...] which are NOT supported in the OS release you're upgrading INTO. Does your package manager want you to delete stuff? dpkg -l | grep '^r' | awk '{print $2}' | sort | fmt ... this command should return no output if your system is clean. Does your machine harbor software not attached to any software repo? (these are AKA "Obsolete packages") Learn the shocking truth: aptitude show '~o' | grep Package | awk '{print $2}' | sort | fmt ... this command should also produce no output on a happy machine, other than perhaps one-shot .deb files installed from downloads (i.e., if you download the zoom client by hand and install that without using a repo, etc). The more cruft, the worse your major-version-upgrade experience will be. The upgrade is performed entirely by the package manager, so that part of your OS needs to be happy before you can start an upgrade with confidence. --MCV.
![](https://secure.gravatar.com/avatar/db524516a64318b0e937d41357c729eb.jpg?s=120&d=mm&r=g)
"Michael" == Michael Voorhis via WLUG <wlug@lists.wlug.org> writes:
Mike puts out some great info, but I just want to make a single comment here, because my main system at home has gone from Debian 9 (I think!) to 10, 11 and now 12. Lots of cruft has built up over the years, and this was a great set of commands to help clean stuff out.
Does your machine harbor software not attached to any software repo? (these are AKA "Obsolete packages") Learn the shocking truth:
aptitude show '~o' | grep Package | awk '{print $2}' | sort | fmt
This really needs to be: aptitude show '~o' | grep Package: | awk '{print $2}' | sort | fmt because sometimes aptitude shows package info across two or more lines.
participants (3)
-
gmcaplan@gmcaplan.org
-
John Stoffel
-
Michael Voorhis