Announcement

Collapse
No announcement yet.

packages no longer required...that still seem relevant/necessary

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [System] packages no longer required...that still seem relevant/necessary

    Yesterday I installed Kubuntu 21.04 and updated the system as requested + installed various software, etc - PC: HP Zbook G2 (Nvidia Quadro K1100M).

    During an install/update, Terminal said that I could remove some packages (see below). I did, by using sudo apt-autoremove...and it broke Kubuntu, i.e., I could no longer re-boot or start the system. I have now re-installed Kubuntu 21.04, and if I run (for instance) sudo apt-get update && sudo apt-get upgrade, Terminal still tells me that I should remove those very packages (please see below).

    Graphics seem to be working fine. I'm also attaching a screenshot of the "driver manager", just in case. What do you think I should do?

    ~$ sudo apt-get update && sudo apt-get upgrade -y
    [sudo] password for optimum:
    Hit:1 http://de.archive.ubuntu.com/ubuntu hirsute InRelease
    Hit:2 http://ppa.launchpad.net/audio-recorder/ppa/ubuntu hirsute InRelease
    Hit:3 http://de.archive.ubuntu.com/ubuntu hirsute-updates InRelease
    Hit:4 http://de.archive.ubuntu.com/ubuntu hirsute-backports InRelease
    Hit:5 http://security.ubuntu.com/ubuntu hirsute-security InRelease
    Hit:6 https://github.com/retorquere/zotero...wnload/apt-get ./ InRelease
    Reading package lists... Done
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    Calculating upgrade... Done
    The following packages were automatically installed and are no longer required:
    libnvidia-cfg1-390 libnvidia-common-390
    libnvidia-decode-390 libnvidia-encode-390
    libnvidia-fbc1-390 libnvidia-gl-390 libnvidia-ifr1-390
    libxnvctrl0 nvidia-compute-utils-390
    nvidia-kernel-source-390 nvidia-prime nvidia-settings
    nvidia-utils-390 screen-resolution-extra
    xserver-xorg-video-nvidia-390
    Use 'sudo apt autoremove' to remove them.
    0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
    xxx:~$
    Attached Files

    #2
    According to the driver manager, you manually installed the NVIDIA drivers (using the run file ad downloaded directly from Nvidia) as opposed to using native Ubuntu packages, is this correct?
    If so, then yes, those packages are safe to be removed, they are leftovers from the Nvidia 390 driver, and not being used. Even nvidia-settings packages are not needed as this is included with the self-installed driver. Not sure about nvidia-prime.
    If you were running the newer 418 driver, these packages would also not be necessary as they are specific to the driver version 390.


    A note to add:
    Code:
    [I] sudo apt-get upgrade[/I]
    .
    This is not the correct way to update packages on an Ubuntu system. Use sudo apt full-upgrade. Most of the time, using just upgrade is fine, but often enough not every package will be upgraded if something needs to be removed.
    Say LibFoobar1 is replaced by LibFoobar2, and requires LibFoobar1's removal. New versions of Packages that depend on LibFoobar2 won't be installed. This mainly happens with Plasma related upgrades, but can happen elsewhere. May not be causing the issue with the driver packages, but it is better safe to use full-upgrade, as that is what Ubuntu's packaging and dependencies are based on.

    From apt's manpage:
    Code:
    upgrade
    upgrade is used to install available upgrades of all packages currently installed on the system from
    the sources configured via sources.list(5). New packages will be installed if required to satisfy
    dependencies, but existing packages will never be removed. If an upgrade for a package requires the
    removal of an installed package the upgrade for this package isn't performed.
    
    full-upgrade 
    full-upgrade performs the function of upgrade but will remove currently installed packages if this is
    needed to upgrade the system as a whole.
    Last edited by claydoh; May 11, 2021, 05:42 AM.

    Comment


      #3
      thanks claydoh for getting back to me on this and your clarification on the upgrade process.

      According to the driver manager, you manually installed the NVIDIA drivers (using the run file ad downloaded directly from Nvidia) as opposed to using native Ubuntu packages, is this correct?

      No, this is not correct (I wouldn't even know how to do that I simply let the Kubuntu 21.04 installer do what it had to do, and that's it...i'm now terrified at the thought of removing these packages...and ending up with a broken system (like yesterday)...

      what do you think I should do?

      Comment


        #4
        For now, just open a Konsole and run: sudo apt update && sudo apt full-upgrade

        Compare the results (output) from your earlier post.
        Using Kubuntu Linux since March 23, 2007
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          they look similar to me - at least the to-be-removed packages are listed:

          ~$ sudo apt update && sudo apt full-upgrade
          [sudo] password for xxx:
          Hit:1 http://ppa.launchpad.net/audio-recorder/ppa/ubuntu hirsute InRelease
          Get:2 http://security.ubuntu.com/ubuntu hirsute-security InRelease [101 kB]
          Hit:3 http://de.archive.ubuntu.com/ubuntu hirsute InRelease
          Hit:4 http://de.archive.ubuntu.com/ubuntu hirsute-updates InRelease
          Hit:5 http://de.archive.ubuntu.com/ubuntu hirsute-backports InRelease
          Hit:6 https://github.com/retorquere/zotero...wnload/apt-get ./ InRelease
          Fetched 101 kB in 1s (186 kB/s)
          Reading package lists... Done
          Building dependency tree... Done
          Reading state information... Done
          All packages are up-to-date.
          Reading package lists... Done
          Building dependency tree... Done
          Reading state information... Done
          Calculating upgrade... Done
          The following packages were automatically installed and are no longer required:
          libnvidia-cfg1-390 libnvidia-common-390 libnvidia-decode-390
          libnvidia-encode-390 libnvidia-fbc1-390 libnvidia-gl-390
          libnvidia-ifr1-390 libxnvctrl0 nvidia-compute-utils-390
          nvidia-kernel-source-390 nvidia-prime nvidia-settings
          nvidia-utils-390 screen-resolution-extra
          xserver-xorg-video-nvidia-390
          Use 'sudo apt autoremove' to remove them.
          0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

          Comment


            #6
            First off, when using apt or apt-get, using "upgrade" instead of "full-upgrade" is not recommended and was only left in place for compatibility reasons (I read that somewhere). The preferred CLI utility is "pkcon" and has been for some time. I still use "apt full-upgrade" but never "apt upgrade"

            As far as the nvidia drivers, that list of files seems incomplete if you're trying to use the nvidia driver. There's no kernel packages, only the supporting packages. A more complete list would look something like:
            libcuda1-384libnvidia-cfg1-390
            libnvidia-common-390
            libnvidia-compute-390
            libnvidia-decode-390
            libnvidia-encode-390
            libnvidia-fbc1-390
            libnvidia-gl-390
            libnvidia-ifr1-390
            linux-modules-nvidia-390-5.8.0-50-generic
            linux-modules-nvidia-390-5.8.0-50-lowlatency
            linux-modules-nvidia-390-aws
            linux-modules-nvidia-390-azure
            linux-modules-nvidia-390-gcp
            linux-modules-nvidia-390-generic
            linux-modules-nvidia-390-generic-hwe-20.04
            linux-modules-nvidia-390-generic-hwe-20.04-edge
            linux-modules-nvidia-390-lowlatency
            linux-modules-nvidia-390-lowlatency-hwe-20.04
            linux-modules-nvidia-390-lowlatency-hwe-20.04-edge
            linux-modules-nvidia-390-oem
            linux-modules-nvidia-390-oem-20.04b
            linux-modules-nvidia-390-oem-osp1
            linux-modules-nvidia-390-oracle
            linux-objects-nvidia-390-5.8.0-50-generic
            linux-objects-nvidia-390-5.8.0-50-lowlatency
            nvidia-384
            nvidia-384-dev
            nvidia-compute-utils-390
            nvidia-dkms-390
            nvidia-driver-390
            nvidia-headless-390
            nvidia-headless-no-dkms-390
            nvidia-kernel-common-390
            nvidia-kernel-source-390
            nvidia-libopencl1-384
            nvidia-opencl-icd-384
            nvidia-utils-390
            xserver-xorg-video-nvidia-390
            Not that you would need all of these but notice you don't have the driver or dkms package in your "autoremove" list. IME, the nvidia driver packages would never be in the autoremove list unless the installation was incomplete.

            I suspect either you somehow removed (or never installed) some required packages or you are missing a dependency to use the driver, like the dkms package. If this is so, then you are probably using the nouveau driver. To text this theory, type this into konsole:

            lspci -vnn | grep -i VGA -A 12

            This should reveal the active driver. Assuming my guess is right, then type:

            sudo apt install nvidia-390

            and this should install what is needed. My best guess would be you don't have dkms installed.

            Please Read Me

            Comment


              #7
              thank you and please see the output here below. I see "nouveau" in the list, but I also see other terms which I don't understand, I'm afraid. Does the output confirm your suspicion, i.e., would it be enough that run

              sudo apt install nvidia-390

              and would this command also install "dkms"?

              ~$ lspci -vnn | grep -i VGA -A 12
              00:02.0 VGA compatible controller [0300]: Intel Corporation 4th Gen Core
              Processor Integrated Graphics Controller [8086:0416] (rev 06) (prog-if 00
              [VGA controller])
              DeviceName: 32
              Subsystem: Hewlett-Packard Company 4th Gen Core Processor Integra
              ted Graphics Controller [103c:2253]
              Flags: bus master, fast devsel, latency 0, IRQ 33
              Memory at ce400000 (64-bit, non-prefetchable) [size=4M]
              Memory at a0000000 (64-bit, prefetchable) [size=256M]
              I/O ports at 6000 [size=64]
              Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
              Capabilities: <access denied>
              Kernel driver in use: i915
              Kernel modules: i915

              00:16.0 Communication controller [0780]: Intel Corporation 8 Series/C220
              Series Chipset Family MEI Controller #1 [8086:8c3a] (rev 04)
              --
              01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107GLM [Qu
              adro K1100M] [10de:0ff6] (rev a1) (prog-if 00 [VGA controller])
              Subsystem: Hewlett-Packard Company GK107GLM [Quadro K1100M] [103c
              :2253]
              Flags: bus master, fast devsel, latency 0, IRQ 37
              Memory at cd000000 (32-bit, non-prefetchable) [size=16M]
              Memory at 50000000 (64-bit, prefetchable) [size=256M]
              Memory at 60000000 (64-bit, prefetchable) [size=32M]
              I/O ports at 5000 [size=128]
              Expansion ROM at ce080000 [virtual] [disabled] [size=512K]
              Capabilities: <access denied>
              Kernel driver in use: nvidia
              Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia

              01:00.1 Audio device [0403]: NVIDIA Corporation GK107 HDMI Audio Controll
              er [10de:0e1b] (rev a1)



              Comment


                #8
                Ideally, the Kubuntu install should have the packages it needs and not suggest them for removal, and the other posters are helping you with that.

                But, if removing them breaks the system, then they're needed now. Marking them as "manually installed" will stop autoremove removing them; f. ex.
                Code:
                sudo apt install libnvidia-cfg1-390
                Regards, John Little

                Comment

                Working...
                X