failed upgrade from ububtu 2004LTS to 2204LTS
SO - yesterday I upgraded from 2004 to 2204 and the update failed - sort of... After rebooting into recovery mode and repairing damader packages, I am able to get in to the gnome UI, however, the screen resolution os 640 x 480 and there are no options to make it better. Every time I try to install or repair I'm told "You may have damaged packages".
SO I burned a copy of the .iso. I verified the imabe before burning it. When I boot on that CD (hoping to have a clean installation) I get an error - something like "Unknown filesystem" and a "GRUB Recovery" prompt at which I have nop idea what to do....
I tried installing the nvidia driver - it failed because of the broken packages...
Any suggestions?
Thank you ni advance!
Tom
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply:
Revision history for this message
![]() |
#1 |
For diagnostic purposes proceed as follows:
Open a terminal window and issue the following commands:
uname -a
lsb_release -crid
sudo dpkg --audit
sudo apt update
sudo apt upgrade
then select all output and copy/paste it into this question document.
Revision history for this message
![]() |
#2 |
Thank you - here are the results...
tadiv@tadiv-
Linux tadiv-desktop 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
tadiv@tadiv-
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
tadiv@tadiv-
[sudo] password for tadiv:
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
libnvidia-
libnvidia-
nvidia-driver-470 NVIDIA driver metapackage
The following packages have been triggered, but the trigger processing
has not yet been done. Trigger processing can be requested using
dselect or dpkg --configure --pending (or dpkg --triggers-only):
libc-bin GNU C Library: Binaries
tadiv@tadiv-
Hit:1 http://
Hit:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Fetched 479 kB in 2s (231 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
tadiv@tadiv-
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libnvidia-ifr1-470 : Depends: libnvidia-gl-470 but it is not installed
libnvidia-
nvidia-driver-470 : Depends: libnvidia-gl-470 (= 470.141.
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
tadiv@tadiv-
Revision history for this message
![]() |
#3 |
What output do you receive for the command
sudo apt install -f
Revision history for this message
![]() |
#4 |
What is the output of:
apt-cache policy libnvidia-ifr1-470 libnvidia-
Thanks
Revision history for this message
![]() |
#5 |
Manfred:
tadiv@tadiv-
[sudo] password for tadiv:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libnvidia-gl-470 libnvidia-
The following NEW packages will be installed:
libnvidia-gl-470 libnvidia-
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
3 not fully installed or removed.
Need to get 0 B/175 MB of archives.
After this operation, 429 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 339714 files and directories curre
ntly installed.)
Preparing to unpack .../libnvidia-
ntu0.22.
diversion of /usr/lib/
lib/i386-
dpkg-divert: error: mismatch on package
when removing 'diversion of /usr/lib/
bGL.so.1 by libnvidia-gl-470'
found 'diversion of /usr/lib/
to /usr/lib/
-340'
dpkg: error processing archive /var/cache/
ibnvidia-
unpack):
new libnvidia-
pt subprocess returned error exit status 2
Preparing to unpack .../libnvidia-
ntu0.22.
diversion of /usr/lib/
r/lib/x86_
dpkg-divert: error: mismatch on package
when removing 'diversion of /usr/lib/
libGL.so.1 by libnvidia-gl-470'
found 'diversion of /usr/lib/
.1 to /usr/lib/
idia-340'
dpkg: error processing archive /var/cache/
ibnvidia-
-unpack):
new libnvidia-
ipt subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/
untu0.22.
/var/cache/
untu0.22.
libdvd-pkg: Checking orig.tar integrity...
/usr/src/
libdvd-pkg: `apt-get check` failed, you may have broken packages. Aborting...
E: Sub-process /usr/bin/dpkg returned an error code (1)
tadiv@tadiv-
actionparsnip:
tadiv@tadiv-
[sudo] password for tadiv:
libnvidia-ifr1-470:
Installed: 470.141.
Candidate: 470.141.
Version table:
*** 470.141.
500 http://
500 http://
100 /var/lib/
470.
500 http://
libnvidia-
Installed: 470.141.
Candidate: 470.141.
Version table:
*** 470.141.
500 http://
500 http://
100 /var/lib/
470.
500 http://
libnvidia-gl-470:
Installed: (none)
Candidate: 470.141.
Version table:
470.
500 http://
500 http://
470.
500 http://
libnvidia-
Installed: (none)
Candidate: 470.141.
Version table:
470.
500 http://
500 http://
470.
500 http://
tadiv@tadiv-
Revision history for this message
![]() |
#6 |
For diagnostic purposes, what is the output of the commands
dpkg-divert --list | grep 340
The following commands may help:
sudo dpkg-divert --remove "/usr/lib/
sudo dpkg-divert --remove "/usr/lib/
sudo apt install -f
Revision history for this message
![]() |
#7 |
Output as requested and the additional commands did not take - see their output below
tadiv@tadiv-
diversion of /usr/lib/
diversion of /usr/lib/
diversion of /usr/lib/
diversion of /usr/lib/
diversion of /usr/lib/
diversion of /usr/lib/
diversion of /usr/lib/
diversion of /usr/lib/
diversion of /usr/lib/
diversion of /usr/lib/
diversion of /usr/lib/
diversion of /usr/lib/
diversion of /usr/lib/
diversion of /usr/lib/
diversion of /usr/lib/
diversion of /usr/lib/
tadiv@tadiv-
tadiv@tadiv-
[sudo] password for tadiv:
dpkg-divert: warning: please specify --no-rename explicitly, the default will change to --rename in 1.20.x
Removing 'diversion of /usr/lib/
tadiv@tadiv-
tadiv@tadiv-
dpkg-divert: warning: please specify --no-rename explicitly, the default will change to --rename in 1.20.x
Removing 'diversion of /usr/lib/
tadiv@tadiv-
Revision history for this message
![]() |
#8 |
What do you now get for
sudo apt install -f
Revision history for this message
![]() |
#9 |
Here are the results:
tadiv@tadiv-
[sudo] password for tadiv:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libnvidia-gl-470 libnvidia-
The following NEW packages will be installed:
libnvidia-gl-470 libnvidia-
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
3 not fully installed or removed.
Need to get 0 B/175 MB of archives.
After this operation, 429 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 339712 files and directories curre
ntly installed.)
Preparing to unpack .../libnvidia-
ntu0.22.
diversion of /usr/lib/
b/i386-
dpkg-divert: error: mismatch on package
when removing 'diversion of /usr/lib/
bGL.so by libnvidia-gl-470'
found 'diversion of /usr/lib/
o /usr/lib/
'
dpkg: error processing archive /var/cache/
ibnvidia-
unpack):
new libnvidia-
pt subprocess returned error exit status 2
Preparing to unpack .../libnvidia-
ntu0.22.
diversion of /usr/lib/
lib/x86_
dpkg-divert: error: mismatch on package
when removing 'diversion of /usr/lib/
libGL.so by libnvidia-gl-470'
found 'diversion of /usr/lib/
to /usr/lib/
-340'
dpkg: error processing archive /var/cache/
ibnvidia-
-unpack):
new libnvidia-
ipt subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/
untu0.22.
/var/cache/
untu0.22.
libdvd-pkg: Checking orig.tar integrity...
/usr/src/
libdvd-pkg: `apt-get check` failed, you may have broken packages. Aborting...
E: Sub-process /usr/bin/dpkg returned an error code (1)
tadiv@tadiv-
Revision history for this message
![]() |
#10 |
ok, there seem to be more broken diversions.
I suggest that you uninstall all nvidia-340 packages.
What is the output of
dpkg -l | grep 340
Revision history for this message
![]() |
#11 |
I don't know how to uninstall them - I tried once and it complained about broken packages... Here is the output...
tadiv@tadiv-
ii nvidia-340 340.108-0ubuntu8 amd64 Transitional package for xserver-
ii nvidia-340-updates 340.108-
rc nvidia-
tadiv@tadiv-
Revision history for this message
![]() |
#12 |
When I start the package manager it tells me that I have 3 broken packages and to use the filters to find them. I select broken in the filters but it does not seem to filter anything...
Revision history for this message
![]() |
#13 |
I used the package manager to remove the nvidia drivers...
Revision history for this message
![]() |
#14 |
The package manager is no longer complaining about broken packages.
Revision history for this message
![]() |
#15 |
What command do I need to run to try to get trhe X server to reconfigure?
Revision history for this message
![]() |
#16 |
What do you now receive for the commands
sudo apt update
sudo apt install nvidia-470
Revision history for this message
![]() |
#17 |
Here are the results:
tadiv@tadiv-
[sudo] password for tadiv:
Hit:1 http://
Hit:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Fetched 1,483 kB in 4s (332 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
4 packages can be upgraded. Run 'apt list --upgradable' to see them.
tadiv@tadiv-
tadiv@tadiv-
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package nvidia-470
tadiv@tadiv-
Revision history for this message
![]() |
#18 |
Sorry, my fault. The last command has to be
sudo apt install nvidia-driver-470
Revision history for this message
![]() |
#19 |
Here are the results with an error at the end - note I'm not sure if 470 is the correct driver for my GForce 8400 GS:
tadiv@tadiv-
[sudo] password for tadiv:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
dctrl-tools dkms libatomic1:i386 libbsd0:i386
libdrm-
libdrm-
libelf1:i386 libexpat1:i386 libffi8:i386 libgl1:i386
libgl1-
libglvnd0:i386 libglx-mesa0:i386 libglx0:i386
libicu70:i386 libllvm13:i386 libmd0:i386
libnvidia-
libnvidia-
libnvidia-
libnvidia-
libnvidia-
libnvidia-
libnvidia-gl-470 libnvidia-
libnvidia-
libsensors5:i386 libstdc++6:i386 libvulkan1:i386
libwayland-
libx11-xcb1:i386 libxau6:i386 libxcb-dri2-0:i386
libxcb-
libxcb-
libxcb-shm0:i386 libxcb-sync1:i386
libxcb-
libxext6:i386 libxfixes3:i386 libxml2:i386
libxnvctrl0 libxshmfence1:i386 libxxf86vm1:i386
mesa-
nvidia-dkms-470 nvidia-
nvidia-
nvidia-settings nvidia-utils-470
screen-
xserver-
Suggested packages:
debtags menu lm-sensors:i386
Recommended packages:
libgl1-
The following NEW packages will be installed:
dctrl-tools dkms libatomic1:i386 libbsd0:i386
libdrm-
libdrm-
libelf1:i386 libexpat1:i386 libffi8:i386 libgl1:i386
libgl1-
libglvnd0:i386 libglx-mesa0:i386 libglx0:i386
libicu70:i386 libllvm13:i386 libmd0:i386
libnvidia-
libnvidia-
libnvidia-
libnvidia-
libnvidia-
libnvidia-
libnvidia-gl-470 libnvidia-
libnvidia-
libsensors5:i386 libstdc++6:i386 libvulkan1:i386
libwayland-
libx11-xcb1:i386 libxau6:i386 libxcb-dri2-0:i386
libxcb-
libxcb-
libxcb-shm0:i386 libxcb-sync1:i386
libxcb-
libxext6:i386 libxfixes3:i386 libxml2:i386
libxnvctrl0 libxshmfence1:i386 libxxf86vm1:i386
mesa-
nvidia-dkms-470 nvidia-driver-470
nvidia-
nvidia-prime nvidia-settings nvidia-utils-470
screen-
xserver-
0 upgraded, 71 newly installed, 0 to remove and 4 not upgraded.
Need to get 0 B/338 MB of archives.
After this operation, 982 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Extracting templates from packages: 100%
Selecting previously unselected package dctrl-tools.
(Reading database ... 338853 files and directories curre
ntly installed.)
Preparing to unpack .../00-
4.deb ...
Unpacking dctrl-tools (2.24-3build2) ...
Selecting previously unselected package dkms.
Preparing to unpack .../01-
..
Unpacking dkms (2.8.7-2ubuntu2) ...
Selecting previously unselected package libmd0:i386.
Preparing to unpack .../02-
...
Unpacking libmd0:i386 (1.0.4-1build1) ...
Selecting previously unselected package libbsd0:i386.
Preparing to unpack .../03-
Unpacking libbsd0:i386 (0.11.5-1) ...
Selecting previously unselected package libelf1:i386.
Preparing to unpack .../04-
b ...
Unpacking libelf1:i386 (0.186-1build1) ...
Selecting previously unselected package libexpat1:i386.
Preparing to unpack .../05-
.
Unpacking libexpat1:i386 (2.4.7-1) ...
Selecting previously unselected package libffi8:i386.
Preparing to unpack .../06-
Unpacking libffi8:i386 (3.4.2-4) ...
Selecting previously unselected package libstdc++6:i386.
Preparing to unpack .../07-
u1_i386.deb ...
Unpacking libstdc++6:i386 (12-20220319-
Selecting previously unselected package libicu70:i386.
Preparing to unpack .../08-
Unpacking libicu70:i386 (70.1-2) ...
Selecting previously unselected package libxml2:i386.
Preparing to unpack .../09-
1_i386.deb ...
Unpacking libxml2:i386 (2.9.13+
Selecting previously unselected package libdrm2:i386.
Preparing to unpack .../10-
.deb ...
Unpacking libdrm2:i386 (2.4.110-1ubuntu1) ...
Selecting previously unselected package libedit2:i386.
Preparing to unpack .../11-
_i386.deb ...
Unpacking libedit2:i386 (3.1-20210910-
Selecting previously unselected package libxau6:i386.
Preparing to unpack .../12-
6.deb ...
Unpacking libxau6:i386 (1:1.0.9-1build5) ...
Selecting previously unselected package libxdmcp6:i386.
Preparing to unpack .../13-
i386.deb ...
Unpacking libxdmcp6:i386 (1:1.1.3-0ubuntu5) ...
Selecting previously unselected package libxcb1:i386.
Preparing to unpack .../14-
b ...
Unpacking libxcb1:i386 (1.14-3ubuntu3) ...
Selecting previously unselected package libx11-6:i386.
Preparing to unpack .../15-
...
Unpacking libx11-6:i386 (2:1.7.5-1) ...
Selecting previously unselected package libxext6:i386.
Preparing to unpack .../16-
86.deb ...
Unpacking libxext6:i386 (2:1.3.4-1build1) ...
Selecting previously unselected package libatomic1:i386.
Preparing to unpack .../17-
u1_i386.deb ...
Unpacking libatomic1:i386 (12-20220319-
Selecting previously unselected package libdrm-amdgpu1:i
386.
Preparing to unpack .../18-
u1_i386.deb ...
Unpacking libdrm-amdgpu1:i386 (2.4.110-1ubuntu1) ...
Selecting previously unselected package libdrm-nouveau2:
i386.
Preparing to unpack .../19-
tu1_i386.deb ...
Unpacking libdrm-
Selecting previously unselected package libdrm-radeon1:i
386.
Preparing to unpack .../20-
u1_i386.deb ...
Unpacking libdrm-radeon1:i386 (2.4.110-1ubuntu1) ...
Selecting previously unselected package libglapi-mesa:i3
86.
Preparing to unpack .../21-
.1_i386.deb ...
Unpacking libglapi-mesa:i386 (22.0.5-0ubuntu0.1) ...
Selecting previously unselected package libllvm13:i386.
Preparing to unpack .../22-
_i386.deb ...
Unpacking libllvm13:i386 (1:13.0.1-2ubuntu2) ...
Selecting previously unselected package libsensors5:i386
.
Preparing to unpack .../23-
1_i386.deb ...
Unpacking libsensors5:i386 (1:3.6.0-7ubuntu1) ...
Selecting previously unselected package libvulkan1:i386.
Preparing to unpack .../24-
eb ...
Unpacking libvulkan1:i386 (1.3.204.1-2) ...
Selecting previously unselected package libgl1-mesa-dri:
i386.
Preparing to unpack .../25-
u0.1_i386.deb ...
Unpacking libgl1-
Selecting previously unselected package libx11-xcb1:i386
.
Preparing to unpack .../26-
deb ...
Unpacking libx11-xcb1:i386 (2:1.7.5-1) ...
Selecting previously unselected package libxcb-dri2-0:i3
86.
Preparing to unpack .../27-
386.deb ...
Unpacking libxcb-dri2-0:i386 (1.14-3ubuntu3) ...
Selecting previously unselected package libxcb-dri3-0:i3
86.
Preparing to unpack .../28-
386.deb ...
Unpacking libxcb-dri3-0:i386 (1.14-3ubuntu3) ...
Selecting previously unselected package libxcb-glx0:i386
.
Preparing to unpack .../29-
6.deb ...
Unpacking libxcb-glx0:i386 (1.14-3ubuntu3) ...
Selecting previously unselected package libxcb-present0:
i386.
Preparing to unpack .../30-
_i386.deb ...
Unpacking libxcb-
Selecting previously unselected package libxcb-shm0:i386
.
Preparing to unpack .../31-
6.deb ...
Unpacking libxcb-shm0:i386 (1.14-3ubuntu3) ...
Selecting previously unselected package libxcb-sync1:i38
6.
Preparing to unpack .../32-
86.deb ...
Unpacking libxcb-sync1:i386 (1.14-3ubuntu3) ...
Selecting previously unselected package libxcb-xfixes0:i
386.
Preparing to unpack .../33-
i386.deb ...
Unpacking libxcb-xfixes0:i386 (1.14-3ubuntu3) ...
Selecting previously unselected package libxfixes3:i386.
Preparing to unpack .../34-
eb ...
Unpacking libxfixes3:i386 (1:6.0.0-1) ...
Selecting previously unselected package libxshmfence1:i3
86.
Preparing to unpack .../35-
6.deb ...
Unpacking libxshmfence1:i386 (1.3-1build4) ...
Selecting previously unselected package libxxf86vm1:i386
.
Preparing to unpack .../36-
_i386.deb ...
Unpacking libxxf86vm1:i386 (1:1.1.4-1build3) ...
Selecting previously unselected package libglx-mesa0:i38
6.
Preparing to unpack .../37-
1_i386.deb ...
Unpacking libglx-mesa0:i386 (22.0.5-0ubuntu0.1) ...
Selecting previously unselected package libnvidia-cfg1-4
70:amd64.
Preparing to unpack .../38-
-0ubuntu0.
Unpacking libnvidia-
22.04.1) ...
Selecting previously unselected package libnvidia-common
-470.
Preparing to unpack .../39-
03-0ubuntu0.
Unpacking libnvidia-
4.1) ...
Selecting previously unselected package libnvidia-comput
e-470:i386.
Preparing to unpack .../40-
.03-0ubuntu0.
Unpacking libnvidia-
0.22.04.1) ...
Selecting previously unselected package libnvidia-comput
e-470:amd64.
Preparing to unpack .../41-
.03-0ubuntu0.
Unpacking libnvidia-
u0.22.04.1) ...
Selecting previously unselected package libnvidia-decode
-470:amd64.
Preparing to unpack .../42-
03-0ubuntu0.
Unpacking libnvidia-
0.22.04.1) ...
Selecting previously unselected package libnvidia-decode
-470:i386.
Preparing to unpack .../43-
03-0ubuntu0.
Unpacking libnvidia-
.22.04.1) ...
Selecting previously unselected package libnvidia-egl-wa
yland1:amd64.
Preparing to unpack .../44-
1.9-1.1_amd64.deb ...
Unpacking libnvidia-
Selecting previously unselected package libnvidia-encode
-470:amd64.
Preparing to unpack .../45-
03-0ubuntu0.
Unpacking libnvidia-
0.22.04.1) ...
Selecting previously unselected package libnvidia-encode
-470:i386.
Preparing to unpack .../46-
03-0ubuntu0.
Unpacking libnvidia-
.22.04.1) ...
Selecting previously unselected package libnvidia-extra-
470:amd64.
Preparing to unpack .../47-
3-0ubuntu0.
Unpacking libnvidia-
.22.04.1) ...
Selecting previously unselected package libnvidia-fbc1-4
70:amd64.
Preparing to unpack .../48-
-0ubuntu0.
Unpacking libnvidia-
22.04.1) ...
Selecting previously unselected package libglvnd0:i386.
Preparing to unpack .../49-
.
Unpacking libglvnd0:i386 (1.4.0-1) ...
Selecting previously unselected package libglx0:i386.
Preparing to unpack .../50-
Unpacking libglx0:i386 (1.4.0-1) ...
Selecting previously unselected package libgl1:i386.
Preparing to unpack .../51-
Unpacking libgl1:i386 (1.4.0-1) ...
Selecting previously unselected package libnvidia-fbc1-4
70:i386.
Preparing to unpack .../52-
-0ubuntu0.
Unpacking libnvidia-
2.04.1) ...
Preparing to unpack .../53-
ubuntu0.
diversion of /usr/lib/
lib/x86_
dpkg-divert: error: mismatch on package
when removing 'diversion of /usr/lib/
libGL.so by libnvidia-gl-470'
found 'diversion of /usr/lib/
to /usr/lib/
-340'
dpkg: error processing archive /tmp/apt-
vZG/53-
4.deb (--unpack):
new libnvidia-
ipt subprocess returned error exit status 2
Preparing to unpack .../54-
ubuntu0.
diversion of /usr/lib/
b/i386-
dpkg-divert: error: mismatch on package
when removing 'diversion of /usr/lib/
bGL.so by libnvidia-gl-470'
found 'diversion of /usr/lib/
o /usr/lib/
'
dpkg: error processing archive /tmp/apt-
vZG/54-
.deb (--unpack):
new libnvidia-
pt subprocess returned error exit status 2
Selecting previously unselected package libnvidia-ifr1-4
70:i386.
Preparing to unpack .../55-
-0ubuntu0.
Unpacking libnvidia-
2.04.1) ...
Selecting previously unselected package libnvidia-ifr1-4
70:amd64.
Preparing to unpack .../56-
-0ubuntu0.
Unpacking libnvidia-
22.04.1) ...
Selecting previously unselected package libwayland-clien
t0:i386.
Preparing to unpack .../57-
386.deb ...
Unpacking libwayland-
Selecting previously unselected package libxcb-randr0:i3
86.
Preparing to unpack .../58-
386.deb ...
Unpacking libxcb-randr0:i386 (1.14-3ubuntu3) ...
Selecting previously unselected package libxnvctrl0:amd6
4.
Preparing to unpack .../59-
1_amd64.deb ...
Unpacking libxnvctrl0:amd64 (510.47.
Selecting previously unselected package mesa-vulkan-driv
ers:i386.
Preparing to unpack .../60-
buntu0.1_i386.deb ...
Unpacking mesa-vulkan-
..
Selecting previously unselected package nvidia-compute-u
tils-470.
Preparing to unpack .../61-
141.03-
Unpacking nvidia-
22.04.1) ...
Selecting previously unselected package nvidia-kernel-so
urce-470.
Preparing to unpack .../62-
141.03-
Unpacking nvidia-
22.04.1) ...
Selecting previously unselected package nvidia-kernel-co
mmon-470.
Preparing to unpack .../63-
141.03-
Unpacking nvidia-
22.04.1) ...
Selecting previously unselected package nvidia-dkms-470.
Preparing to unpack .../64-
buntu0.
Unpacking nvidia-dkms-470 (470.141.
...
Selecting previously unselected package nvidia-utils-470
.
Preparing to unpack .../65-
ubuntu0.
Unpacking nvidia-utils-470 (470.141.
...
Selecting previously unselected package xserver-xorg-vid
eo-nvidia-470.
Preparing to unpack .../66-
_470.141.
Unpacking xserver-
ntu0.22.04.1) ...
Selecting previously unselected package nvidia-driver-47
0.
Preparing to unpack .../67-
0ubuntu0.
Unpacking nvidia-driver-470 (470.141.
) ...
Selecting previously unselected package nvidia-prime.
Preparing to unpack .../68-
...
Unpacking nvidia-prime (0.8.17.1) ...
Selecting previously unselected package screen-resolutio
n-extra.
Preparing to unpack .../69-
2_all.deb ...
Unpacking screen-
Selecting previously unselected package nvidia-settings.
Preparing to unpack .../70-
untu1_amd64.deb ...
Unpacking nvidia-settings (510.47.
Errors were encountered while processing:
/tmp/apt-
1.03-0ubuntu0.
/tmp/apt-
1.03-0ubuntu0.
E: Sub-process /usr/bin/dpkg returned an error code (1)
tadiv@tadiv-
Revision history for this message
![]() |
#20 |
Why is your output wrapped after 56 characters? That makes reading it very cumbersome.
We are back to the leftover diversions from nvidia 340.
It seems that they all have to be manually removed.
sudo dpkg-divert --remove --no-rename /usr/lib/
sudo dpkg-divert --remove --no-rename /usr/lib/
sudo dpkg-divert --remove --no-rename /usr/lib/
sudo dpkg-divert --remove --no-rename /usr/lib/
sudo dpkg-divert --remove --no-rename /usr/lib/
sudo dpkg-divert --remove --no-rename /usr/lib/
sudo dpkg-divert --remove --no-rename /usr/lib/
sudo dpkg-divert --remove --no-rename /usr/lib/
sudo dpkg-divert --remove --no-rename /usr/lib/
sudo dpkg-divert --remove --no-rename /usr/lib/
sudo dpkg-divert --remove --no-rename /usr/lib/
sudo dpkg-divert --remove --no-rename /usr/lib/
sudo dpkg-divert --remove --no-rename /usr/lib/
sudo dpkg-divert --remove --no-rename /usr/lib/
sudo dpkg-divert --remove --no-rename /usr/lib/
sudo dpkg-divert --remove --no-rename /usr/lib/
sudo dpkg --configure -a
Revision history for this message
![]() |
#21 |
I apologize for the short lines - I'l copy/pasting from a terminal window that is in that 640x480 screen - and this comment window is on the same 640x480 screen... I'll run through your commands now and report back.
Tom
Revision history for this message
![]() |
#22 |
Here is all of the text window - errors encountered (at the very bottom)...
tadiv@tadiv-
[sudo] password for tadiv:
Removing 'diversion of /usr/lib/
tadiv@tadiv-
Removing 'diversion of /usr/lib/
tadiv@tadiv-
sudo dpkg-divert --remove --no-rename /usr/lib/
Removing 'diversion of /usr/lib/
No diversion 'any diversion of /usr/lib/
tadiv@tadiv-
No diversion 'any diversion of /usr/lib/
tadiv@tadiv-
No diversion 'any diversion of /usr/lib/
tadiv@tadiv-
Removing 'diversion of /usr/lib/
tadiv@tadiv-
Removing 'diversion of /usr/lib/
tadiv@tadiv-
Removing 'diversion of /usr/lib/
tadiv@tadiv-
Removing 'diversion of /usr/lib/
tadiv@tadiv-
Removing 'diversion of /usr/lib/
tadiv@tadiv-
Removing 'diversion of /usr/lib/
tadiv@tadiv-
Removing 'diversion of /usr/lib/
tadiv@tadiv-
No diversion 'any diversion of /usr/lib/
tadiv@tadiv-
Removing 'diversion of /usr/lib/
tadiv@tadiv-
Removing 'diversion of /usr/lib/
tadiv@tadiv-
Removing 'diversion of /usr/lib/
tadiv@tadiv-
Removing 'diversion of /usr/lib/
tadiv@tadiv-
Setting up libexpat1:i386 (2.4.7-1) ...
Setting up libxau6:i386 (1:1.0.9-1build5) ...
Setting up nvidia-
Setting up nvidia-prime (0.8.17.1) ...
Setting up libglvnd0:i386 (1.4.0-1) ...
Setting up libnvidia-
Setting up libnvidia-
Setting up libnvidia-
Setting up nvidia-utils-470 (470.141.
dpkg: dependency problems prevent configuration of libnvidia-
libnvidia-
Package libnvidia-
dpkg: error processing package libnvidia-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnvidia-
libnvidia-
Package libnvidia-
dpkg: error processing package libnvidia-
dependency problems - leaving unconfigured
Setting up libnvidia-
Setting up nvidia-
Warning: The home dir /nonexistent you specified can't be accessed: No such file or directory
Adding system user `nvidia-
Adding new group `nvidia-
Adding new user `nvidia-
Not creating home directory `/nonexistent'.
Setting up libxnvctrl0:amd64 (510.47.
Setting up libnvidia-
Setting up libnvidia-
dpkg: dependency problems prevent configuration of nvidia-driver-470:
nvidia-driver-470 depends on libnvidia-gl-470 (= 470.141.
Package libnvidia-
nvidia-driver-470 depends on libnvidia-ifr1-470 (= 470.141.
Package libnvidia-
dpkg: error processing package nvidia-driver-470 (--configure):
dependency problems - leaving unconfigured
Setting up libatomic1:i386 (12-20220319-
Setting up libnvidia-
Setting up libsensors5:i386 (1:3.6.0-7ubuntu1) ...
Setting up libglapi-mesa:i386 (22.0.5-0ubuntu0.1) ...
Setting up libvulkan1:i386 (1.3.204.1-2) ...
Setting up screen-
Setting up nvidia-
update-initramfs: deferring update (trigger activated)
Setting up libffi8:i386 (3.4.2-4) ...
Setting up libdrm2:i386 (2.4.110-1ubuntu1) ...
Setting up libmd0:i386 (1.0.4-1build1) ...
Setting up libxshmfence1:i386 (1.3-1build4) ...
Setting up nvidia-settings (510.47.
Setting up libbsd0:i386 (0.11.5-1) ...
Setting up libelf1:i386 (0.186-1build1) ...
Setting up libstdc++6:i386 (12-20220319-
Setting up dctrl-tools (2.24-3build2) ...
Setting up libicu70:i386 (70.1-2) ...
Setting up libdrm-amdgpu1:i386 (2.4.110-1ubuntu1) ...
Setting up libwayland-
Setting up libnvidia-
Setting up libxdmcp6:i386 (1:1.1.3-0ubuntu5) ...
Setting up libdrm-
Setting up libxcb1:i386 (1.14-3ubuntu3) ...
Setting up libxcb-xfixes0:i386 (1.14-3ubuntu3) ...
Setting up xserver-
Setting up libdrm-radeon1:i386 (2.4.110-1ubuntu1) ...
Setting up libxcb-glx0:i386 (1.14-3ubuntu3) ...
Setting up libedit2:i386 (3.1-20210910-
Setting up libxcb-shm0:i386 (1.14-3ubuntu3) ...
Setting up dkms (2.8.7-2ubuntu2) ...
Setting up libxcb-
Setting up nvidia-dkms-470 (470.141.
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia
DEBUG:Parsing /usr/share/
DEBUG:Parsing /usr/share/
DEBUG:Parsing /usr/share/
Loading new nvidia-470.141.03 DKMS files...
Building for 5.15.0-46-generic
Building for architecture x86_64
Building initial module for 5.15.0-46-generic
Done.
nvidia.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/
nvidia-modeset.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/
nvidia-drm.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/
nvidia-uvm.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/
nvidia-peermem.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/
depmod.
Setting up libxcb-sync1:i386 (1.14-3ubuntu3) ...
Setting up libnvidia-
Setting up libxcb-dri2-0:i386 (1.14-3ubuntu3) ...
Setting up libxcb-randr0:i386 (1.14-3ubuntu3) ...
Setting up libx11-6:i386 (2:1.7.5-1) ...
Setting up libxml2:i386 (2.9.13+
Setting up libxcb-dri3-0:i386 (1.14-3ubuntu3) ...
Setting up libx11-xcb1:i386 (2:1.7.5-1) ...
Setting up libxext6:i386 (2:1.3.4-1build1) ...
Setting up libxxf86vm1:i386 (1:1.1.4-1build3) ...
Setting up libxfixes3:i386 (1:6.0.0-1) ...
Setting up libllvm13:i386 (1:13.0.1-2ubuntu2) ...
Setting up libnvidia-
Setting up mesa-vulkan-
Setting up libgl1-
Setting up libnvidia-
Setting up libglx-mesa0:i386 (22.0.5-0ubuntu0.1) ...
Setting up libglx0:i386 (1.4.0-1) ...
Setting up libgl1:i386 (1.4.0-1) ...
Setting up libnvidia-
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.6+
Rebuilding /usr/share/
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for initramfs-tools (0.140ubuntu13) ...
update-initramfs: Generating /boot/initrd.
Errors were encountered while processing:
libnvidia-
libnvidia-
nvidia-driver-470
tadiv@tadiv-
Revision history for this message
![]() |
#23 |
AND here is the result of: sudo apt install nvidia-driver-470
tadiv@tadiv-
[sudo] password for tadiv:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
nvidia-driver-470 is already the newest version (470.141.
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libnvidia-ifr1-470 : Depends: libnvidia-gl-470 but it is not going to be installed
libnvidia-
nvidia-driver-470 : Depends: libnvidia-gl-470 (= 470.141.
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
tadiv@tadiv-
SO I ran 'sudo apt --fix-broken install' and got:
tadiv@tadiv-
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libnvidia-gl-470 libnvidia-
The following NEW packages will be installed:
libnvidia-gl-470 libnvidia-
0 upgraded, 2 newly installed, 0 to remove and 4 not upgraded.
3 not fully installed or removed.
Need to get 0 B/175 MB of archives.
After this operation, 429 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 339671 files and directories curre
ntly installed.)
Preparing to unpack .../libnvidia-
ntu0.22.
Unpacking libnvidia-
04.1) ...
Preparing to unpack .../libnvidia-
ntu0.22.
Unpacking libnvidia-
.04.1) ...
Setting up libnvidia-
2.04.1) ...
Setting up libnvidia-
.04.1) ...
Setting up libnvidia-
.22.04.1) ...
Setting up libnvidia-
22.04.1) ...
Setting up nvidia-driver-470 (470.141.
1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
tadiv@tadiv-
Which looks encouraging... I'm going to reboot and see what happens...
Revision history for this message
![]() |
#24 |
OKAY - so, it looks like a good install of the 470 driver. Unfortunately, there are text messages during the boot sequence that say that my card (NVIDIA GForce 8400GS) is supported by 340.xx legacy drivers and to go to www.nvidia.
Uggh... (BTW, this comment is on a Win10 machine)... Unfortunately, that page does not seem to exist...
Suggestions? How do Iproperly remove the 470 package?
Tom
Revision history for this message
![]() |
#25 |
There were 2 packages listed in the package manager when I searched for "340" - I have installed them and are rebooting now...
Revision history for this message
![]() |
#26 |
Foo - In the reboot it is clear that the 470 driver is still there - I used "sudo apt remove nvidia-driver-470" - what else do I need to do?
Revision history for this message
![]() |
#27 |
I'm using the package manager to remove everything 470...
Revision history for this message
![]() |
#28 |
OKAY - so all the 470 stuff is removed - the machine boots up - I get an Ubuntu-branded splash screen. It goes away and there is a bunch of scrolling text ending with something like "Starting Gnome Display Manager" - the screen goes blank after a while with just a cursor flashing in the upper left corner and that's it. I need to ALT-CTRL-F3 to get a terminal to do anything...
Tom
Revision history for this message
![]() |
#29 |
NVidia.com also tells, that your hardware needs the 340 version of the driver, not the 470.
Try sudo apt install --reinstall gdm3 libgdm1
Is there enough free space left?
df -h | grep -v loop
Revision history for this message
![]() |
#30 |
Here are the results:
tadiv@tadiv-
[sudo] password for tadiv:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 5 not upgraded.
Need to get 375 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://
Get:2 http://
Fetched 375 kB in 1s (387 kB/s)
Preconfiguring packages ...
(Reading database ... 338846 files and directories curre
ntly installed.)
Preparing to unpack .../libgdm1_
...
Unpacking libgdm1 (42.0-1ubuntu7) over (42.0-1ubuntu7) .
..
Preparing to unpack .../gdm3_
Unpacking gdm3 (42.0-1ubuntu7) over (42.0-1ubuntu7) ...
Setting up libgdm1 (42.0-1ubuntu7) ...
Processing triggers for libglib2.0-0:amd64 (2.72.1-1) ..
.
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for ureadahead (0.100.0-21) ...
Processing triggers for dbus (1.12.20-2ubuntu4) ...
Setting up gdm3 (42.0-1ubuntu7) ...
tadiv@tadiv-
Filesystem Size Used Avail Use% Mounted on
tmpfs 386M 3.4M 383M 1% /run
/dev/sdb2 225G 21G 193G 10% /
tmpfs 1.9G 88M 1.8G 5% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
/dev/sda5 110G 101G 3.5G 97% /home
tmpfs 386M 208K 386M 1% /run/user/1000
/dev/sdc1 747G 623G 125G 84% /media/
tadiv@tadiv-
I'll reboot and report what happens...
Revision history for this message
![]() |
#31 |
So, I get the splash screen, then a bunch of text scrolls by way too fast to make anything of it then a blank screen except for a blinking cursor "_" in the upper left of the screen...
Revision history for this message
![]() |
#32 |
I suspect that it is worth mentioning that when I am in recovery mode (the only way I can get a GUI) when I go to display settings the settings dialog box says "Unknown Display" and when I run ubuntu-drivers devices I get no results - it seems like 22.04 is not detecting my GPU - is there some package or setting that can correct this? I have both xserver-
Thoughts?
Tom
Revision history for this message
![]() |
#33 |
Is there any hint in the system logs?
e.g. use ctrl-alt-f3 for a virtual terminal and run
dmesg | tail
Revision history for this message
![]() |
#34 |
If I find something, how can I get that text here - what file is it in?
Revision history for this message
![]() |
#35 |
If there are hints, then they most probably are contained in the system logs (/var/log/*)
IF you find something in e.g. "dmesg | tail", then you can redirect the output to a file ("dmesg | tail > mylogfile.txt")and then look for a way to transfer that file from the broken system to a working one.
Revision history for this message
![]() |
#36 |
So I did the tail with --lines=300 | more so I saw almost the entire log. The only thing I saw that even hinted of the display was an audit line that referenced "lightdm" - I did not see the Xserver starting - there were many references to various pieces of hardware, but no video card stuff at all...
Revision history for this message
![]() |
#37 |
Is there some way I can reinitialize the 22.04 upgrade?
Revision history for this message
![]() |
#38 |
Is there a way I can fall-back to 20.04?
Revision history for this message
![]() |
#39 |
There is no way for downgrading to Ubuntu 20.04 or re-starting the upgrade.
What you can try is switching to a different display manager:
Login in to a virtual terminal or in recovery mode and issue the commands
sudo apt install lightdm
sudo dpkg-reconfigure gdm
in the dialogue that is shown use the up/down keys to select lightdm and hit enter, then reboot.
see https:/
Revision history for this message
![]() |
#40 |
Here is what I get:
tadiv@tadiv-
[sudo] password for tadiv:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
lightdm is already the newest version (1.30.0-0ubuntu5).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
tadiv@tadiv-
dpkg-query: package 'gdm' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files.
/usr/sbin/
tadiv@tadiv-
Revision history for this message
![]() |
#41 |
Sorry, my fault, gdm was the package in previous releases, now it is gdm3
sudo dpkg-reconfigure gdm3
if it again tells "not installed", then I recommend installing it ("sudo apt install gdm3") and then trying to switch from gdm3 to lightdm and vice versa. Hopefully one of the display managers will work.
Revision history for this message
![]() |
#42 |
Sorry - I worked this just before going to work and I just got home. Both lightdm and gdm3 seem to have the same behavior. I did burn a 20.04 DVD and it works - I used the "Try Ubuntu" option and the graphics worked properly. The command "ubuntu-drivers devices" also worked properly. On my problem machine, that command simply returns to the command prompt.
Perhaps I'm missing a package in the hardware detection sequence? Although "lspci" does find my video card...
Thoughts?
Tom
Revision history for this message
![]() |
#43 |
I doubt that there is a package missing. If the package management does not complain about missing packages, then everything should be there.
You can verify with:
sudo apt install ubuntu-desktop
sudo dpkg --audit
It could be worth checking the log files of the release upgrade, /var/log/
Maybe that reveals something
Apart from that I see two more possibilities:
1. create backup copies of your files that you want to keep and do a new installation. (you have set up a separate home partition, so that should preserve the files in your home directory anyhow).
2. re-install all packages
Revision history for this message
![]() |
#44 |
There are 4 log files in a subdirectory date stamped the date of the update, but the files are date stamped from 2020... There are other subdirectories that are the subsequent days with 2022 dates...
Is there a particular file (main, apt, history, and apt-term)?
Tom
Revision history for this message
![]() |
#45 |
The audit test just returned me to the command prompt with no results displayed at all.
There are some interesting error messages in main.log (captured via grep) as follow:
2022-08-20 23:41:10,433 ERROR IOError/SystemError in cache.update(): ''. Retrying (currentRetry: 0)
2022-08-20 23:41:10,434 ERROR doUpdate() failed completely
as well as later:
2022-08-21 08:11:49,292 WARNING _tryMarkObsolet
2022-08-21 08:18:40,518 ERROR got error from PostInstallScript ./xorg_
These are the grep results that stood out - obviously the text "error" is in other places (including package names)...
Tom
Revision history for this message
![]() |
#46 |
Might it be that this video card is just no longer supported?
Revision history for this message
![]() |
#47 |
'Failed to execute child process “./xorg_
This is unexpected.
Is there a file /etc/X11/xorg.conf on that broken system?
If yes, rename it to something like xorg.conf.broken and reboot.
'Might it be that this video card is just no longer supported?'
What do you take as basis for that? There is a nvidia-340 package in Ubuntu 22.04
Revision history for this message
![]() |
#48 |
I was just drawing straws on the question about the video card not being supported - I have been running Ubuntu since the 2008 time frame and this is the most challenging issue I have had. Anyway, currently on the broken system in /etc/X11 the following files exist that start with xorg.con*:
xorg.conf.04282018
xorg.conf.backup
xorg.conf.d (this one is an empty directory)
xorg.conf.failsafe
xorg.conf.
And thank you for all your help with this frustrating problem!
Tom
Revision history for this message
![]() |
#49 |
I am running out of new ideas what to do more.
As already written in comment #43
You could consider re-installing all packages
That should be possible with the command
dpkg -l | grep ^ii | awk '{print $2}' | xargs sudo apt install --reinstall
(Note: This will probably download more that 1 GB of packages)
Before you do that, you should install all available uppdates and try to verify whether all packages are still available for download:
ubuntu-
ubuntu-
ubuntu-
Revision history for this message
![]() |
#50 |
Here's an interesting tidbit (that is repeatable) - I looked at the contents of xorg.conf.04282018 and it was for the same card, so I copied it to xorg.conf and rebooted - it seemed like the same result (no graphics unless in recovery mode) BUT in recovery mode I got 800x600 as opposed to 640x480...
I have JUST modified the file to have a "modes" option in the Display subsection - I'll reboot and see what happens - I'll probably still be booting into recovery, but maybe I can get better resolution - I'll be back in a few minutes...
Tom
Revision history for this message
![]() |
#51 |
Okay - well, still just 800x600, but it is an improvement... Does this tickle any ideas? IF I remove the xorg.conf file I'm back to 640x480. With it in place I get 800x600. The mode like I added is:
Modes "1680x1050" "1024x768" "800x600"
Tom
Revision history for this message
![]() |
#52 |
Sorry - I failed to mention, the original file did not have a "modes" parameter listed...
Revision history for this message
![]() |
#53 |
SO - here's the result (I think nothing happened)...
tadiv@tadiv-
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Reinstallation of app-install-
Reinstallation of cpp-5 is not possible, it cannot be downloaded.
Reinstallation of crda is not possible, it cannot be downloaded.
Reinstallation of e2fslibs is not possible, it cannot be downloaded.
Reinstallation of gcc-5 is not possible, it cannot be downloaded.
Reinstallation of gcc-5-base is not possible, it cannot be downloaded.
Reinstallation of gcc-7-base is not possible, it cannot be downloaded.
Reinstallation of gcc-8-base is not possible, it cannot be downloaded.
Reinstallation of gstreamer1.
Reinstallation of internxt-drive is not possible, it cannot be downloaded.
Reinstallation of kate-data is not possible, it cannot be downloaded.
Reinstallation of libasan2 is not possible, it cannot be downloaded.
Reinstallation of libcilkrts5 is not possible, it cannot be downloaded.
Reinstallation of libcomerr2 is not possible, it cannot be downloaded.
Reinstallation of libcpan-meta-perl is not possible, it cannot be downloaded.
Reinstallation of libdvdcss-dev is not possible, it cannot be downloaded.
Reinstallation of libdvdcss2 is not possible, it cannot be downloaded.
Reinstallation of libfam0 is not possible, it cannot be downloaded.
Reinstallation of libffi6 is not possible, it cannot be downloaded.
Reinstallation of libgcc-5-dev is not possible, it cannot be downloaded.
Reinstallation of libhogweed4 is not possible, it cannot be downloaded.
Reinstallation of libisl15 is not possible, it cannot be downloaded.
Reinstallation of libmpdec2 is not possible, it cannot be downloaded.
Reinstallation of libmpx0 is not possible, it cannot be downloaded.
Reinstallation of libnettle6 is not possible, it cannot be downloaded.
Reinstallation of libruby2.7 is not possible, it cannot be downloaded.
Reinstallation of libsepol1 is not possible, it cannot be downloaded.
Reinstallation of libssl1.1 is not possible, it cannot be downloaded.
Reinstallation of libubsan0 is not possible, it cannot be downloaded.
Reinstallation of linux-headers-
Reinstallation of linux-headers-
Reinstallation of linux-headers-
Reinstallation of linux-headers-
Reinstallation of linux-image-
Reinstallation of linux-image-
Reinstallation of linux-modules-
Reinstallation of linux-modules-
Reinstallation of linux-modules-
Reinstallation of moneydance is not possible, it cannot be downloaded.
Reinstallation of multiarch-support is not possible, it cannot be downloaded.
Reinstallation of qtdeclarative5-
Reinstallation of rhythmbox-
Reinstallation of surfshark-release is not possible, it cannot be downloaded.
Reinstallation of surfshark-vpn is not possible, it cannot be downloaded.
Reinstallation of system-
Reinstallation of teamviewer is not possible, it cannot be downloaded.
Reinstallation of ttf-ubuntu-
Reinstallation of ubuntu-
Reinstallation of ureadahead is not possible, it cannot be downloaded.
Reinstallation of vdpau-va-driver is not possible, it cannot be downloaded.
Reinstallation of wine1.6 is not possible, it cannot be downloaded.
0 upgraded, 0 newly installed, 2906 reinstalled, 0 to remove and 0 not upgraded.
Need to get 2,157 MB/2,277 MB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Abort.
tadiv@tadiv-
Revision history for this message
![]() |
#54 |
It seems unhappy about trhe packages that cannot be downloaded - I don't know how to work around that problem...
Tom
Revision history for this message
![]() |
#55 |
A quick look at these packages let me conclude that most of them are obsolete.
The one that puzzles me most is vdpau-va-driver, a package from bionic, that has something to do with video display.
My recommendation would be uninstalling vdpau-va-driver (and some additional ones from that list).
What output do you receive for the commands
ubuntu-
apt --simulate autoremove
Revision history for this message
![]() |
#56 |
Results:
tadiv@tadiv-
2957 packages installed, of which:
51 packages are no longer available for download
app-install-
gcc-7-base gcc-8-base gstreamer1.
kate-data libasan2 libcilkrts5 libcomerr2 libcpan-meta-perl
libdvdcss-dev libdvdcss2 libfam0 libffi6 libgcc-5-dev libhogweed4
libisl15 libmpdec2 libmpx0 libnettle6 libruby2.7 libsepol1 libssl1.1
libubsan0 linux-headers-
linux-headers-
linux-image-
linux-modules-
linux-modules-
qtdeclarative5-
surfshark-release surfshark-vpn system-
ttf-ubuntu-
vdpau-va-driver wine1.6
Packages that are not available for download may be left over from a
previous release of Ubuntu, may have been installed directly from a
.deb file, or are from a source which has been disabled.
Run 'apt-cache show app-install-
package.
tadiv@tadiv-
AND:
tadiv@tadiv-
[sudo] password for tadiv:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
tadiv@tadiv-
Revision history for this message
![]() |
#57 |
And what is the output of the command
apt --simulate purge vdpau-va-driver
Revision history for this message
![]() |
#58 |
tadiv@tadiv-
NOTE: This is only a simulation!
apt needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
vdpau-va-driver*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Purg vdpau-va-driver [0.7.4-6ubuntu1]
tadiv@tadiv-
Revision history for this message
![]() |
#59 |
I'll uninstall vdpau-va-driver (I assume I use the same command without the --simulate option) - what others do you want me to remove?
After that - try the reinstall again or just a reboot?
Tom
Revision history for this message
![]() |
#60 |
Yes, remove or even better purge it. ("sudo apt purge ..." or "sudo apt remove --purge ...").
Then reboot, although it is unlikely that this solves the problem.
Revision history for this message
![]() |
#61 |
Back in recovery mode - the regular boot was again without graphics...
Others to pruge - or should I try the
dpkg -l | grep ^ii | awk '{print $2}' | xargs sudo apt install --reinstall
commands again?
Tom
Revision history for this message
![]() |
#62 |
I tried dpkg -l | grep ^ii | awk '{print $2}' | xargs sudo apt install --reinstall again - it failed again...
Tom
Revision history for this message
![]() |
#63 |
lspci still shows my graphics card, "ubuntu-drivers devices" still returns nothing...
Revision history for this message
![]() |
#64 |
Do you also get an "Abort" response, when you enter "y" at the question
Do you want to continue? [Y/n]
?
Revision history for this message
![]() |
#65 |
I never get the chance to enter a Y or N - it Aborts without my input...
Revision history for this message
![]() |
#66 |
Then try
dpkg -l | grep ^ii | awk '{print $2}' | xargs sudo apt -y install --reinstall
Revision history for this message
![]() |
#68 |
The only thing I see that looks slightly suspect is:
Warning: os-prober will not be executed to detect other bootable partit
ions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_
done
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Processing triggers for sgml-base (1.30) ...
tadiv@tadiv-
I'll look through the logs looking for errors - I still don't graphics on a standard boot. I'm in recovery mode at 800x600...
Tom
Revision history for this message
![]() |
#69 |
Xorg.0.log has an error:
[ 141.821] (II) LoadModule: "nvidia"
[ 141.835] (WW) Warning, couldn't open module nvidia
[ 141.835] (EE) Failed to load module "nvidia" (module does not exist
, 0)
I just checked and the driver is installed - is there maybe something going on with the header image not getting updated for the video driver?
Tom
Revision history for this message
![]() |
#70 |
More errors in xorg.0.log:
[ 142.449] (EE) [drm] Failed to open DRM device for pci:0000:01:00.0:
-19
[ 142.449] (EE) open /dev/dri/card0: No such file or directory
[ 142.449] (WW) Falling back to old probe method for modesetting
[ 142.449] (EE) open /dev/dri/card0: No such file or directory
and
[ 142.532] ABI class: X.Org Video Driver, version 25.2
[ 142.532] (EE) open /dev/fb0: No such file or directory
[ 142.533] (EE) Screen 0 deleted because of no matching config sectio
n.
Tom
Revision history for this message
![]() |
#71 |
The syslog has several entries like:
Aug 28 15:24:19 tadiv-desktop cat[2776]: [2895:2895:
Revision history for this message
![]() |
#72 |
The "os-prober" warning is completely normal. It just tells that between Ubuntu 20.04 and 22.04 the grub program has changed, such that there now is a different default for checking other operating systems.
Xorg.0.log has an error:
[ 141.821] (II) LoadModule: "nvidia"
[ 141.835] (WW) Warning, couldn't open module nvidia
[ 141.835] (EE) Failed to load module "nvidia" (module does not exist
It seems that something is wrong with the nvidia installation.
I suggest that you (again) uninstall all nvidia-related packages and switch to the nouveau driver.
What is the output of
dpkg -l | grep -i -e nvidia -e 340.
And for the "ERROR:
Revision history for this message
![]() |
#73 |
Results:
tadiv@tadiv-
ii libcuda1-340 340.108-0ubuntu8 amd64 Transitional package for xserver-
rc libnvidia-
ii nvidia-340 340.108-0ubuntu8 amd64 Transitional package for xserver-
ii nvidia-340-dev 340.108-0ubuntu8 amd64 Transitional package for xserver-
rc nvidia-340-updates 340.108-
ii nvidia-340-uvm 340.108-0ubuntu8 amd64 Transitional package for xserver-
rc nvidia-
rc nvidia-dkms-470 470.141.
rc nvidia-
ii nvidia-
ii nvidia-
rc nvidia-
rc nvidia-prime 0.8.17.1 all Tools to enable NVIDIA's Prime
rc nvidia-settings 510.47.03-0ubuntu1 amd64 Tool for configuring the NVIDIA graphics driver
tadiv@tadiv-
Revision history for this message
![]() |
#74 |
I suggest that you purge all of them:
sudo apt purge libcuda1-340 libnvidia-
and then reinstall the free nouveau driver:
sudo apt install --reinstall xserver-
Revision history for this message
![]() |
#75 |
Re-reading your last output I stumbled over several remarks "Transitional package for xserver-
This might explain the reason that "ubuntu-drivers devices" does not show any output:
It seems that on Ubuntu jammy you can only use the nouveau driver, because NVidia stopped support for the 340 series of the driver (which would be the dedicated one for your hardware).
Changelog
nvidia-
* Drop support for the 340 driver, in favour of the nouveau driver
since it is no longer supported by NVIDIA:
https:/
Ok, forget NVidia, let's focus on nouveau.
Revision history for this message
![]() |
#76 |
Results - some progress made:
tadiv@tadiv-
[sudo] password for tadiv:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
libcuda1-340* libnvidia-
nvidia-
nvidia-dkms-470* nvidia-
nvidia-
nvidia-settings*
0 upgraded, 0 newly installed, 14 to remove and 0 not upgraded.
After this operation, 129 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 341716 files and directories currently installed.)
Removing libcuda1-340 (340.108-0ubuntu8) ...
Removing nvidia-340 (340.108-0ubuntu8) ...
Removing nvidia-340-dev (340.108-0ubuntu8) ...
Removing nvidia-340-uvm (340.108-0ubuntu8) ...
Removing nvidia-
Removing nvidia-
(Reading database ... 341698 files and directories currently installed.
)
Purging configuration files for nvidia-prime (0.8.17.1) ...
Purging configuration files for libnvidia-
-0ubuntu0.22.04.1) ...
Purging configuration files for nvidia-
buntu0.22.04.1) ...
Purging configuration files for nvidia-
ubuntu3) ...
Purging configuration files for nvidia-dkms-470 (470.141.
.04.1) ...
update-initramfs: deferring update (trigger activated)
Purging configuration files for nvidia-340-updates (340.108-
.04.2) ...
Purging configuration files for nvidia-
buntu0.22.04.1) ...
update-initramfs: deferring update (trigger activated)
Purging configuration files for nvidia-settings (510.47.
.
Processing triggers for ureadahead (0.100.0-21) ...
Processing triggers for initramfs-tools (0.140ubuntu13) ...
update-initramfs: Generating /boot/initrd.
tadiv@tadiv-
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 93.6 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://
Fetched 93.6 kB in 0s (225 kB/s)
(Reading database ... 341692 files and directories currently installed.
)
Preparing to unpack .../xserver-
md64.deb ...
Unpacking xserver-
2build1) ...
Setting up xserver-
Processing triggers for man-db (2.10.2-1) ...
tadiv@tadiv-
I now get a GUI on boot but my resolution is limited to 960x540 - do I need to delete / update the xorg.conf file? It's still the one I modified yesterday...
Revision history for this message
![]() |
#77 |
No need for recovery mode any more? Hooray!
What do you get for
xrandr -q
Revision history for this message
![]() |
#78 |
Okay - I went ahead and renamed the old xorg.conf file and now (after reboot) I'm at 1680x1050.
Thank you so very much!
Do you recommend a new video card?
Thank you again so very much for sticking with me through this!
Tom
Revision history for this message
![]() |
#79 |
Results:
tadiv@tadiv-
Screen 0: minimum 320 x 200, current 1680 x 1050, maximum 8192 x 8192
DVI-I-1 connected primary 1680x1050+0+0 (normal left inverted right x axis y axis) 433mm x 271mm
1680x1050 59.95*+ 59.88
1600x1200 65.00 60.00
1600x1024 60.17
1400x1050 74.76 70.00 59.98
1600x900 59.95 59.82
1280x1024 75.02 60.02
1440x900 59.89
1400x900 59.96 59.88
1280x960 60.00
1440x810 59.97
1368x768 59.88 59.85
1360x768 59.80 59.96
1280x800 59.99 59.97 59.81 59.91
1152x864 75.00 75.00 70.00 60.00
1280x720 60.00 59.99 59.86 59.74
1024x768 75.05 60.04 75.03 70.07 60.00
960x720 75.00 60.00
928x696 75.00 60.05
896x672 75.05 60.01
1024x576 59.95 59.96 59.90 59.82
960x600 59.93 60.00
832x624 74.55
960x540 59.96 59.99 59.63 59.82
800x600 75.00 70.00 65.00 60.00 72.19 75.00 60.32 56.25
840x525 74.96 69.88 60.01 59.88
864x486 59.92 59.57
800x512 60.17
700x525 74.76 70.06 59.98
800x450 59.95 59.82
640x512 75.02 60.02
720x450 59.89
700x450 59.96 59.88
640x480 60.00 75.00 72.81 75.00 66.67 59.94
720x405 59.51 58.99
720x400 70.08
684x384 59.88 59.85
680x384 59.80 59.96
640x400 59.88 59.98
576x432 75.00 75.00 70.00 60.06
640x360 59.86 59.83 59.84 59.32
512x384 75.03 70.07 60.00
512x288 60.00 59.92
416x312 74.66
480x270 59.63 59.82
400x300 72.19 75.12 60.32 56.34
432x243 59.92 59.57
320x240 72.81 75.00 60.05
360x202 59.51 59.13
320x180 59.84 59.32
HDMI-1 disconnected (normal left inverted right x axis y axis)
VGA-1 disconnected (normal left inverted right x axis y axis)
tadiv@tadiv-
Revision history for this message
![]() |
#80 |
Thanks Manfred Hampl, that solved my question.
Revision history for this message
![]() |
#81 |
Anything else you recommend? And thank you again!
Revision history for this message
![]() |
#82 |
This was an interesting experience, also for me.
Thank you for your cooperation.
If you can use the old video card with the nouveau driver in a satisfactory manner, then i do not see a need for exchanging it by a different one.
Last remark: I guess you can and should also close your other questions
https:/
https:/