LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 03-15-2021, 09:38 PM   #1
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,818
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Ulyana: apt-get dist-upgrade eliminated amd64-microcode, and networking


Is this a known problem?

Following a simple apt-get dist-upgrade on Mint 20, as I've done many times in the past, graphics are stuck at 1024x768, and 'ip a' lists only lo. Nothing in /etc/network/interfaces was changed since last September. There are no clues from "Failed" lines in journal.

Following is from same PC, where apt-get dist-upgrade on Focal works as expected:
Code:
# inxi -SMGIay
System:
  Host: asa88 Kernel: 5.4.0-67-generic x86_64 bits: 64 compiler: gcc v: 10.2.1
  parameters:...radeon.cik_support=0 amdgpu.cik_support=1
  Desktop: Trinity R14.1.0 tk: Qt 3.5.0 info: kicker wm: Twin 3.0 dm: TDM
  Distro: Ubuntu 20.04.2 LTS (Focal Fossa)
Machine:
  Type: Desktop Mobo: ASUSTeK model: A88X-PRO v: Rev X.0x
  serial: 140323952800121 UEFI: American Megatrends v: 2603 date: 03/10/2016
Graphics:
  Device-1: AMD Kaveri [Radeon R7 Graphics] vendor: ASUSTeK driver: amdgpu
  v: kernel alternate: radeon bus ID: 00:01.0 chip ID: 1002:130f
  class ID: 0300
  Display: x11 server: X.Org 1.20.9 driver: loaded: ati,modesetting
  unloaded: fbdev,vesa alternate: amdgpu display ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1200 s-dpi: 108 s-size: 451x282mm (17.8x11.1")
  s-diag: 532mm (20.9")
  Monitor-1: DP-1 res: 1920x1200 hz: 60 dpi: 94 size: 519x324mm (20.4x12.8")
  diag: 612mm (24.1")
  OpenGL: renderer: AMD KAVERI (DRM 3.35.0 5.4.0-67-generic LLVM 11.0.0)
  v: 4.6 Mesa 20.2.6 direct render: Yes
Info:...Shell: Bash v: 5.0.17 running in: konsole  inxi: 3.3.0
Is there a solution to be found, other than restore from backup, or reinstall? Where to start looking?
 
Old 03-16-2021, 03:12 AM   #2
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
If both Ubuntu and Mint are generic setups with recommended sources only.
Ubuntu only uses packages from Ubuntu repositories.
Mint uses packages from Mint and Ubuntu repositories.
Given the aggressive behavior of 'dist-upgrade', this may be an unfortunate miscalculation in Mint's design.
Quote:
graphics are stuck at 1024x768, and 'ip a' lists only lo
Lots of folks having issues with Mint and proprietary graphics drivers, I tried it and installed proprietary Nvidia from Mint repos, lasted only a week, damn unstable. I reinstalled and just doing nouveau and/or intel and it appears to be fairly stable now. I'm assuming both the nic and wireless adapters are missing?
Did you try loading the kernel modules?
Maybe firmware package was removed because of 'dist-upgrade'.
 
Old 03-16-2021, 03:54 AM   #3
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Quote:
Originally Posted by mrmazda View Post
Where to start looking?
grep ' remove ' /var/log/dpkg.log, perhaps? To see what packages were removed during dist-upgrade.
 
1 members found this post helpful.
Old 03-16-2021, 06:31 AM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,818

Original Poster
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Quote:
Originally Posted by shruggy View Post
grep ' remove ' /var/log/dpkg.log, perhaps? To see what packages were removed during dist-upgrade.
This was a good start. It turns out the problem started on a previous upgrade (November), when linux-image-5.8.0-25-generic was installed, but not corresponding linux-modules-extra. At the time I must have been distracted, or ran out of gas and went to bed, then didn't get back to it until yesterday. On this upgrade, linux-modules-extra-5.0.0-32-generic got removed, which showed up in the grep. So, needed linux-modules-extra was missing from both installed kernels. This I easily fixed via a chroot from Focal, which solved both problems.

The new question is why linux-modules-extra had previously been installed, but not included with the two newer kernel additions.

Brains, never wireless here except on one old laptop that was given to me with a useless no longer available battery, and except for Roku and Firestick. Never proprietary graphics drivers here either. With Debians, *buntus and Mints here, currently only standard repos are enabled, with one big exception: TDE on all Debians and most *buntus. Once upon a time I did use backports for something, but that was too long ago to remember.

Thanks for both responses!
 
Old 03-16-2021, 07:08 AM   #5
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Cannot say for Mint, but on Ubuntu the dependency chain looks like this:

linux-oemlinux-genericlinux-image-genericlinux-modules-extra-<latest_version>-generic

Both linux-image-generic and linux-modules-extra-<latest_version>-generic depend on linux-image-<latest_version>-generic which in turn depends on linux-modules-<latest_version>-generic
Code:
$ apt-cache depends --recurse --no-{break,conflict,replace,recommend,suggest}s linux-oem|sed /^linux-f/Q
linux-oem
  Depends: linux-generic
linux-generic
  Depends: linux-image-generic
  Depends: linux-headers-generic
linux-image-generic
  Depends: linux-image-5.4.0-67-generic
  Depends: linux-modules-extra-5.4.0-67-generic
  Depends: linux-firmware
  Depends: intel-microcode
  Depends: amd64-microcode
linux-headers-generic
  Depends: linux-headers-5.4.0-67-generic
linux-image-5.4.0-67-generic
  Depends: kmod
    kmod:i386
  Depends: linux-base
  Depends: linux-modules-5.4.0-67-generic
linux-modules-extra-5.4.0-67-generic
 |Depends: linux-image-5.4.0-67-generic
  Depends: linux-image-unsigned-5.4.0-67-generic
 |Depends: crda
  Depends: wireless-crda
 
Old 03-16-2021, 03:16 PM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,818

Original Poster
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
All nice to know, but I don't see how that helps with "why", after it had been installed previously. I can't recall ever having explicitly asked for linux-modules-extra previously.
Code:
# uname -a
Linux asa88 5.8.0-44-generic #50~20.04.1-Ubuntu SMP Wed Feb 10 21:07:30 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
# apt-cache depends --recurse --no-{break,conflict,replace,recommend,suggest}s linux-oem | sed /^linux-f/Q
linux-oem
  Depends: linux-generic
linux-generic
  Depends: linux-image-generic
  Depends: linux-headers-generic
linux-image-generic
  Depends: linux-image-5.4.0-67-generic
  Depends: linux-modules-extra-5.4.0-67-generic
  Depends: linux-firmware
  Depends: intel-microcode
  Depends: amd64-microcode
linux-headers-generic
  Depends: linux-headers-5.4.0-67-generic
linux-image-5.4.0-67-generic
  Depends: kmod
    kmod:i386
  Depends: linux-base
  Depends: linux-modules-5.4.0-67-generic
linux-modules-extra-5.4.0-67-generic
 |Depends: linux-image-5.4.0-67-generic
  Depends: linux-image-unsigned-5.4.0-67-generic
 |Depends: crda
  Depends: wireless-crda
 
Old 03-16-2021, 03:35 PM   #7
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
If you removed linux-image-generic and installed linux-image-5.8.0-25-generic directly then linux-modules-extra-5.8.0-25-generic wouldn't be installed because it is only a dependency of linux-image-generic, but not of any versioned linux-image-* package.

The Ubuntu way is for linux-image-generic to always be installed and automatically pull the newest linux-module-extra-* version as its dependency.

Last edited by shruggy; 03-16-2021 at 03:36 PM.
 
Old 03-16-2021, 04:08 PM   #8
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,818

Original Poster
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Linux-image-generic is not installed. Attempting installation with apt wants to add intel-microcode, and an older 5.4.0-67 kernel and modules-extra, among others. Apt-mark hold linux-*-5.4.0-67* prevents installing linux-image-generic with apt or apt-get.
Code:
# inxi -Cy
CPU:
  Info: Quad Core model: AMD A10-7850K Radeon R7 12 Compute Cores 4C+8G
  bits: 64 type: MCP cache: L2: 2 MiB
  Speed: 1700 MHz min/max: 1700/3700 MHz Core speeds (MHz): 1: 1700 2: 1696
  3: 1698 4: 1695
Installing with aptitude offered me an option (remove linux-modules-5.0.0-32-generic, which got left behind with linux-image-5.0.0-32-generic removal) that worked, without adding any other package. Bizarro.

The only reason I have Mint installed is for triage, and helping forum and mailing list users solve problems. Mint's flagship Cinnamon, MATE & XFCE are DEs I have no interest in actually using. I dislike Mint's LightDM implementation as well.
 
Old 03-16-2021, 05:08 PM   #9
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Quote:
Originally Posted by mrmazda View Post
Linux-image-generic is not installed. Attempting installation with apt wants to add intel-microcode, and an older 5.4.0-67 kernel and modules-extra, among others.
Well, when using the kernel packages how they supposed to be used on Ubuntu/Mint then installing intel-microcode is unavoidable even if your processor is AMD (just as amd64-microcode gets installed even when your processor is Intel). You're supposed to waste disk space on it.

If you want this setup to work with linux-image-5.8.0-* kernels then you should install linux-generic-hwe-20.04 instead of linux-generic because 5.8.0 is a hardware enablement kernel.
 
1 members found this post helpful.
Old 03-16-2021, 06:52 PM   #10
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,818

Original Poster
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Post #9 triggered some memory. When I dist-upgraded from Tricia to Ulyana, no new kernel was installed. So, I searched, and found the highest available version was 5.8, not 5.4, so 5.8 is what I installed manually. From grepping linux in .bash_history:
Code:
...
aptitude search linux-image | grep generic | egrep -v 'nsign|virtu'
apt install linux-image-5.8.0-25-generic
aptitude search linux firmware
aptitude search linux-firmware
aptitude install linux-firmware
aptitude search linux-image
aptitude search linux-image | grep gener
apt install linux-image-generic
apt install linux-image-5.8.0-44-generic
Dq linux-im		# alias | grep Dq -> alias Dq='echo dpkg-query -l  ; dpkg-query -l | sort | grep '
apt purge linux-image-5.0.0-32-generic
...
All after are from after starting this thread. My searching before this thread failed to include modules, and was apparently begun at the time I did the upgrade, without progress before quitting back then. Then and since I was looking only for uninstalled firmware, because both graphics and NIC were affected.

My DDG fu hasn't been good enough as yet to be able to read the "dates" while perusing .bash_history.

BTW, no hwe included anywhere in dpkg -l output, except for xserver-xorg-video-amdgpu-hwe, for which reason unknown.

Last edited by mrmazda; 03-16-2021 at 06:58 PM.
 
Old 03-17-2021, 08:32 AM   #11
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Quote:
Originally Posted by mrmazda View Post
I searched, and found the highest available version was 5.8, not 5.4, so 5.8 is what I installed manually.
This is how you do it in Debian. In Ubuntu/Mint, you install either linux-generic for the standard kernel or linux-generic-hwe for the more recent kernel (usually if your hardware is not yet supported by the standard kernel).

Debian generally is more flexible, and Debian packages are more atomic (or less interdependent). E.g. about two dozens of Debian firmware-* packages are all combined together into linux-firmware in Ubuntu.

The general idea here is that Debian is for power users who know what firmware packages to install for their hardware and don't like the bloat. While Ubuntu setup is more friendly to newbies who can just install a meta-package like linux-generic or linux-generic-hwe, and that will automatically pull all the needed packages including linux-firmware, linux-modules-* and whatnot.

For this to work as intended, dependent packages (linux-image-*, linux-modules-*, etc.) should be marked as automatically installed. This way, when linux-generic / linux-generic-hwe start to point to another kernel, the old kernel packages will be autoremovable.

Code:
Dq linux-im		# alias | grep Dq -> alias Dq='echo dpkg-query -l  ; dpkg-query -l | sort | grep '
Great minds think alike
Code:
$ alias|grep dpkg-query
alias dlc='dpkg-query -Wf'\''${Status} ${Package}\n'\''|awk '\''$3~/config-files/{print$4}'\'''
alias dlp='dpkg-query -Wf'\''${Status} ${Package}\n'\''|awk '\''/^purge/{print$4}'\'''
alias dq='dpkg-query -W'
alias dqc='dpkg-query --control-list'
alias dql='dpkg-query -L'
alias dqs='dpkg-query -S'
Code:
$ cat ~/bin/dl
#!/bin/sh
# Better dpkg -l
# `tput cols` works only if TERM is set, `stty size` works always. I'm not aware
# of a terminal emulator not setting TERM, thus using `tput cols`.
: ${COLUMNS:=$(tput cols)}
br=' '
# test is not an arithmetic evaluation, 010 is decimal
if [ 0"$COLUMNS" -gt 60 ]; then
	nw=$(( -(COLUMNS-51)/4-10 ))
	vw=$(( -(COLUMNS-61)/4-7 ))
elif [ 0"$COLUMNS" -gt 54 ]; then
	nw=-12
	vw=-7
elif [ 0"$COLUMNS" -gt 24 ]; then
	vw=$(( -(COLUMNS-25)/3-7 ))
	nw=$((5-COLUMNS+vw))
	br='\n+-> '
	dw=$((4-COLUMNS))
else
	nw=-12
	vw=-7
	br='\n+-> '
	dw=-20
	COLUMNS=24
fi
: ${dw:=$((6-COLUMNS-nw-vw))}
snv="\${db:Status-Abbrev} \${binary:Package;$nw} \${Version;$vw}"
dsc="\${binary:Summary;$dw}"
exec dpkg-query --show --showformat="$snv$br$dsc\n" "$@"
Code:
$ cat ~/bin/dlb
#!/bin/sh
# list binaries installed by a package
dpkg-query -L $@ | xargs -r stat -c'%A%n' 2>/dev/null |
	sed -nr '/^-.{2,8}[xs]/s/^.{10}//p' | sort | column
$ cat ~/bin/dlm
#!/bin/sh
dpkg-query -L $@ |
	sed -nr '\:^.*/man[^/]/:{s///;s/\.gz$//;s/^(.*)\.(.*)$/\2\t\1/p}' |
	sort -u | column
Quote:
My DDG fu hasn't been good enough as yet to be able to read the "dates" while perusing .bash_history.
.bash_history has no timestamps. Package actions (install/upgrade/remove/purge) can be tracked via /var/lib/dpkg.log
Code:
zgrep -E ' (install|upgrade|remove|purge) ' /var/log/dpkg.log*
If you have etckeeper installed, changes under /etc can be tracked via etckeeper vcs log.


Quote:
BTW, no hwe included anywhere in dpkg -l output, except for xserver-xorg-video-amdgpu-hwe, for which reason unknown.
xserver-xorg-video-amdgpu-hwe-18.04 is a transitional Ubuntu package for smooth upgrades from 16.04 to 18.04. It can be safely removed.

Last edited by shruggy; 03-17-2021 at 08:54 AM.
 
Old 03-17-2021, 11:38 AM   #12
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,818

Original Poster
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Quote:
Originally Posted by shruggy View Post
.bash_history has no timestamps.
In formulating a response to this, I answered my own question about how to read timestamps. Instead of simply viewing with MC, use the history command.
Code:
# inxi -S
System:    Host: asa88 Kernel: 5.8.0-44-generic x86_64 bits: 64 Console: tty 3 Distro: Linux Mint 20 Ulyana
# tail -n13 .bash_history
aptitude search linux | grep -i hwe
#1615939039
Dq hwe
#1615936675
Dq linux
#1615936688
mountsrv
#1615936693
mc
#1615940584
Off
#1615998227
# history
# history | tail -n13
 1009  2021-03-17 12:19:43 tail -n13 >>out
 1010  2021-03-17 12:19:52 echo inxi -S > out
 1011  2021-03-17 12:19:55 inxi -S >> out
 1012  2021-03-17 12:20:08 echo tail -n13 .bash_history >>out
 1013  2021-03-17 12:20:10 tail -n13 .bash_history >>out
 1014  2021-03-17 12:20:12 mc
 1015  2021-03-17 12:24:43 echo 'history | tail -n13' > out
 1016  2021-03-17 12:24:58 echo inxi -S > out
 1017  2021-03-17 12:25:04 inxi -S >> out
 1018  2021-03-17 12:25:10 echo tail -n13 .bash_history >>out
 1019  2021-03-17 12:25:19 tail -n13 .bash_history >>out
 1020  2021-03-17 12:25:27 echo 'history | tail -n13' >> out
 1021  2021-03-17 12:25:31 history | tail -n13 >> out
 
1 members found this post helpful.
Old 03-17-2021, 01:32 PM   #13
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Good to know. I never set up HISTTIMEFORMAT, so my ~/.bash_hist doesn't have timestamps.

Last edited by shruggy; 03-17-2021 at 01:40 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apply new Intel microcode- no microcode.dat file Naks110 Linux - Kernel 2 06-12-2018 05:20 PM
LXer: How Google reinvented security and eliminated the need for firewalls LXer Syndicated Linux News 0 02-17-2017 01:54 AM
apt-get question: dist-upgrade vs upgrade Arodef Fedora 9 06-15-2012 01:33 PM
apt-get dist-upgrade and Synaptic "smart upgrade" show different results vharishankar Debian 1 04-09-2006 07:53 AM
What's the difference between apt-get upgrade and apt-get dist-upgrade? davidas Linux - Newbie 4 04-04-2004 08:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 05:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration