Software Updater not connected to internet

Hello. My software updater is not able to get software updates and returning an error of "not able to connect to the internet". Yet, I am using the same machine to write this post.

I have tried a few threads here but have not really worked for me. But I might be missing something since I am not technical by nature.

This is one of the threads I followed for reference:

I tried changing the server from US to Main. I tried updating packages from the terminal but nothing seems to work.

Thanks for the help.

I was about to recommend changing to Main Server, but then I read you already did that. The only other thing I know that you could try is this bellow...

sudo apt install --reinstall gnome-software

This command often fixes the software store when it glitches out. By proxy of nature, it should fix the ability to update as well.


Thanks for the help. I ran the command and the following error (at the end) was return relating to the nvidia drivers(?). Any thoughts on this?

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
libfwupdplugin5 libgcab-1.0-0 libsmbios-c2
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 11 not upgraded.
2 not fully installed or removed.
Need to get 735 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 Index of /zorinos/patches/ubuntu jammy/main amd64 gnome-software amd64 45.3-2ubuntu1+zorin1 [735 kB]
Fetched 735 kB in 2s (411 kB/s)
(Reading database ... 285066 files and directories currently installed.)
Preparing to unpack .../gnome-software_45.3-2ubuntu1+zorin1_amd64.deb ...
Unpacking gnome-software (45.3-2ubuntu1+zorin1) over (45.3-2ubuntu1+zorin1) ...
Setting up nvidia-dkms-390 (390.157-0ubuntu0.22.04.2) ...
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
Removing old nvidia-390.157 DKMS files...
Deleting module nvidia-390.157 completely from the DKMS tree.
Loading new nvidia-390.157 DKMS files...
Building for 6.8.0-87-generic
Building for architecture x86_64
Building initial module for 6.8.0-87-generic
Error! Bad return status for module build on kernel: 6.8.0-87-generic (x86_64)
Consult /var/lib/dkms/nvidia/390.157/build/make.log for more information.
dpkg: error processing package nvidia-dkms-390 (--configure):
installed nvidia-dkms-390 package post-installation script subprocess returned
error exit status 10
dpkg: dependency problems prevent configuration of nvidia-driver-390:
nvidia-driver-390 depends on nvidia-dkms-390 (<= 390.157-1); however:
Package nvidia-dkms-390 is not configured yet.
nvidia-driver-390 depends on nvidia-dkms-390 (>= 390.157); however:
Package nvidia-dkms-390 is not configured yet.

dpkg: error processing package nvidia-driver-390 (--configure):
dependency problems - leaving unconfigured
Setting up gnome-software (45.3-2ubuntu1+zorin1) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for libglib2.0-0:amd64 (2.72.4-0ubuntu2.6) ...
Processing triggers for libglib2.0-0:i386 (2.72.4-0ubuntu2.6) ...
Processing triggers for libc-bin (2.35-0ubuntu3.11) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for initramfs-tools (0.140ubuntu13.5) ...
update-initramfs: Generating /boot/initrd.img-6.8.0-87-generic
Errors were encountered while processing:
nvidia-dkms-390
nvidia-driver-390
E: Sub-process /usr/bin/dpkg returned an error code (1)

The nvidia 390 driver can only be used with kernel 5.15 or in Zorin 17 by adding kelebek333 ppa to support kernel 6.8.

I believe I meet those requirements. Two follow up questions.

How do I add it?
Why is it causing issues out of nowhere?

Thanks!

You can remove old nvidia drivers with

sudo apt remove --purge '^nvidia-.*'

You can add the ppa with

sudo add-apt-repository ppa:kelebek333/nvidia-legacy
sudo apt update

To install the 390 nvidia drivers take a look at Software&Updates >Additional drivers and select the driver there or try

sudo apt install nvidia-graphics-drivers-390

Did you use the ppa before? I'm not quite sure what caused the problem. Maybe a kernel update and you have no dkms package for the driver?

There have been so many problems with installing the nvidia 390 drivers in recent months that I'm afraid I'm not sure which commands work best.
Maybe someone else can help you. If you select the metapackage at Additional drivers, the dkms package is included, but I don't know if that's the case with the driver from the ppa.

If You mean the Updater Tool and niot Gnome Software, You can try sudo apt reinstall update-manager to reinstall it and see if it helps.

Oh man. I did this and screen started going black in less than 10 seconds after the change and Whenever I restarted. I had to go into the recovery mode, into the root shell and revert all drivers from the root terminal. Then I had to change it back in the software & updates back to the nouveau driver. That fixed the black screen hiccup.

But I noticed in the software & update that there is another driver, the Broadcom driver. Is that how it should be?

I also tried the software updater to see if for some reason it worked now - but, no. It is still unable to connect to the internet.

Any other thoughts or threads?

Tried this but did not help.

I'm really sorry. Is secure boot and fast boot disabled in your BIOS (and if you have Dualboot with Windows also fast startup there)?

The broadcom driver is for your internet network.

Here is a help site from Zorin for fixing problems with package manager. Or are the problems with package manager solved now?

You could try

sudo dpkg --configure -a

and

sudo apt install -f

For some reason it resolved itself. I have no idea what happened, but it is working again. Let's see if it doesn't break soon.

2 Likes

If the software store throws the error again, (And it will) run this command in terminal, to fix it.

CTRL ALT T to enter terminal.

sudo apt install --reinstall gnome-software

You can use linux-mirrors and change flatpack source.