I'm currently trying to upgrade from 22.04 to 22.10 (just because I'd like to), and for some reason, I have 20 packages that no matter what I try, they will not update, which is holding me back from upgrading. I've tried everything it says to update them, delete them, etc. and nothing. Any advice?
When I run sudo apt update
, I get this result:
Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:2 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Hit:3 https://download.docker.com/linux/ubuntu jammy InRelease
Get:4 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
Hit:5 https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/ InRelease
Get:6 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB]
Hit:7 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease
Get:8 http://security.ubuntu.com/ubuntu jammy-security/main amd64 DEP-11 Metadata [41.4 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 DEP-11 Metadata [102 kB]
Get:10 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 DEP-11 Metadata [13.3 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 DEP-11 Metadata [265 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 DEP-11 Metadata [940 B]
Get:13 http://us.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 DEP-11 Metadata [12.5 kB]
Fetched 759 kB in 1s (540 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
20 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: https://cloud.r-project.org/bin/linux/ubuntu/focal-cran40/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
When I run sudo apt-get upgrade
, I get this:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
libinput-bin libinput10 python3-software-properties r-base r-base-core
r-base-dev r-cran-class r-cran-cluster r-cran-foreign r-cran-lattice
r-cran-mass r-cran-matrix r-cran-mgcv r-cran-nlme r-cran-nnet r-cran-rpart
r-recommended software-properties-common software-properties-gtk
ubuntu-advantage-tools
0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
When I run sudo do-release-upgrade
, I get this:
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
Any advice would be wonderful.
Thanks!
EDIT:
After running sudo apt install packagename
I get this:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
r-base-core : Depends: libicu66 (>= 66.1-1~) but it is not installable
E: Unable to correct problems, you have held broken packages.
apt upgrade
, have you runapt full-upgrade
as there are cases where upgrade cannot install all upgrades as is documented (readman apt
or if you preferman apt-get
where the older command isapt-get dist-upgrade
). Next is to check you didn't put the holds on those packages (apt-mark showhold
etc) – guiverc Jan 26 '23 at 21:48