Results 1 to 3 of 3

Thread: Post upgrade to 22.04 facing problem with package update

  1. #1
    Join Date
    Jul 2013
    Location
    India
    Beans
    50
    Distro
    Ubuntu 20.04 Focal Fossa

    Exclamation Post upgrade to 22.04 facing problem with package update

    Hi,
    I recently upgraded to 22.04 and since then I am facing to problems while using
    Code:
    sudo apt update
    and
    Code:
    sudo apt upgrade
    .

    Running
    Code:
    sudo apt update
    gives me following message, specially problem with slack package key


    Hit:1 http://in.archive.ubuntu.com/ubuntu jammy InRelease
    Hit:2 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease
    Hit:3 http://in.archive.ubuntu.com/ubuntu jammy-backports InRelease
    Hit:4 https://brave-browser-apt-release.s3.brave.com stable InRelease
    Hit:5 https://deb.nodesource.com/node_16.x focal InRelease
    Hit:6 http://security.ubuntu.com/ubuntu jammy-security InRelease
    Hit:7 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease
    Hit:8 https://downloads.1password.com/linux/debian/amd64 stable InRelease
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    2 packages can be upgraded. Run 'apt list --upgradable' to see them.
    W: https://packagecloud.io/slacktechnol...sie/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
    The other problem is with the 2 packages that are mention above for upgrade but are holded back.
    Here is the output for
    Code:
    > sudo apt list --upgradable
    Listing... Done
    libapache2-mod-php7.4/jammy 8.1.2-1ubuntu2 amd64 [upgradable from: 7.4.29-1+ubuntu20.04.1+deb.sury.org+1]
    libapache2-mod-php8.0/jammy 8.1.2-1ubuntu2 amd64 [upgradable from: 8.0.18-1+ubuntu20.04.1+deb.sury.org+1]
    These both are never upgraded. If i run
    Code:
    sudo apt upgrade
    I get following
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    Calculating upgrade... Done
    The following packages have been kept back:
    libapache2-mod-php7.4 libapache2-mod-php8.0
    0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
    The response is same with
    Code:
    sudo apt-get --with-new-pkgs upgrade
    Please help

  2. #2
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,849
    Distro
    Ubuntu

    Re: Post upgrade to 22.04 facing problem with package update

    Try apt full-upgrade instead of plain apt upgrade

    The problem with both apt upgrade and apt-get --with-new-pkgs upgrade is both of those will install new packages,
    but neither can remove packages if the upgrade requires it.
    apt full-upgrade can remove packages if the upgrade requires it to do so.
    apt-get dist-upgrade can do this as well.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  3. #3
    Join Date
    Jul 2013
    Location
    India
    Beans
    50
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Post upgrade to 22.04 facing problem with package update

    Quote Originally Posted by deadflowr View Post
    Try apt full-upgrade instead of plain apt upgrade

    The problem with both apt upgrade and apt-get --with-new-pkgs upgrade is both of those will install new packages,
    but neither can remove packages if the upgrade requires it.
    apt full-upgrade can remove packages if the upgrade requires it to do so.
    apt-get dist-upgrade can do this as well.
    Same issue, behaves as normal
    Code:
    sudo apt upgrade

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •