# dpkg --list | grep jenkinsii jenkins 2.19.4 all Jenkins monitors executions of repeated jobs, such as building a software
# echo "jenkins hold" | dpkg --set-selectionsOR# apt-mark hold jenkins# dpkg --list | grep jenkinshi jenkins 2.19.4 all Jenkins monitors executions of repeated jobs, such as building a software
$sudoaptupgradeReadingpackagelists...DoneBuildingdependencytree...DoneReadingstateinformation...DoneYoumightwanttorun'apt --fix-broken install'tocorrectthese.Thefollowingpackageshaveunmetdependencies:vim:Depends:vim-common (= 2:8.2.3995-1ubuntu2.15) but 2:8.2.3995-1ubuntu2.13 is installedDepends:vim-runtime (= 2:8.2.3995-1ubuntu2.15) but 2:8.2.3995-1ubuntu2.13 is installedvim-tiny:Depends:vim-common (= 2:8.2.3995-1ubuntu2.15) but 2:8.2.3995-1ubuntu2.13 is installedE:Unmetdependencies.Try'apt --fix-broken install'withnopackages (or specifyasolution).
$cat/etc/yum.repos.d/epel.repo[epel]name=ExtraPackagesforEnterpriseLinux8- $basearch# It is much more secure to use the metalink, but if you wish to use a local mirror# place its address here.#baseurl=https://download.example/pub/epel/8/Everything/$basearchmetalink=https://mirrors.fedoraproject.org/metalink?repo=epel-8&arch=$basearch&infra=$infra&content=centosenabled=1gpgcheck=1countme=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8$dnfrepoinfoepelRepo-id:epelRepo-name:ExtraPackagesforEnterpriseLinux8-x86_64Repo-status:enabledRepo-revision:1697078836Repo-updated:Wed11Oct202307:48:01PMPDTRepo-pkgs:9,872Repo-available-pkgs:9,870Repo-size:17GRepo-metalink:https://mirrors.fedoraproject.org/metalink?repo=epel-8&arch=x86_64&infra=$infra&content=centosUpdated:Thu12Oct202305:16:56PMPDTRepo-baseurl:https://mirrors.iu13.net/epel/8/Everything/x86_64/ (153 more)Repo-expire:172,800second(s) (last: Thu12Oct202305:16:56PMPDT)Repo-filename:/etc/yum.repos.d/epel.repoTotalpackages:9,872$dnfrepoinfoepel-nextLastmetadataexpirationcheck:0:10:35agoonWed13Dec202303:48:24PMPST.Repo-id:epel-nextRepo-name:ExtraPackagesforEnterpriseLinux8-Next-x86_64Repo-status:enabledRepo-revision:1693098199Repo-updated:Sat26Aug202306:03:39PMPDTRepo-pkgs:40Repo-available-pkgs:40Repo-size:87MRepo-metalink : https://mirrors.fedoraproject.org/metalink?repo=epel-next-8&arch=x86_64&infra=$infra&content=$contentdir
Updated:Wed13Dec202303:48:22PMPSTRepo-baseurl:http://mirrors.wcupa.edu/epel/next/8/Everything/x86_64/ (126 more)Repo-expire:172,800second(s) (last: Wed13Dec202303:48:22PMPST)Repo-filename:/etc/yum.repos.d/epel-next.repoTotalpackages:40$dnfrepoinfoepel-modularLastmetadataexpirationcheck:0:11:06agoonWed13Dec202303:48:24PMPST.Repo-id:epel-modularRepo-name:ExtraPackagesforEnterpriseLinuxModular8-x86_64-RETIREDRepo-status:enabledRepo-revision:1663033591Repo-updated:Mon12Sep202206:46:46PMPDTRepo-pkgs:290Repo-available-pkgs:0Repo-size:835MRepo-metalink : https://mirrors.fedoraproject.org/metalink?repo=epel-modular-8&arch=x86_64&infra=$infra&content=centos
Updated:Wed13Dec202303:48:21PMPSTRepo-baseurl:http://opencolo.mm.fcix.net/epel/8/Modular/x86_64/ (189 more)Repo-expire:172,800second(s) (last: Wed13Dec202303:48:21PMPST)Repo-filename:/etc/yum.repos.d/epel-modular.repoTotalpackages:290
$ sudo dnf update --refresh
CentOS Linux 8 - BaseOS 15 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Extras 14 kB/s | 1.5 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 50 kB/s | 22 kB 00:00
jfrog-cli 3.9 kB/s | 1.4 kB 00:00
mono-centos8-stable 20 kB/s | 2.9 kB 00:00
Error:
Problem 1: cannot install both authselect-1.2.2-3.el8.x86_64 and authselect-1.1-2.el8.x86_64
- package authselect-compat-1.1-2.el8.x86_64 requires authselect(x86-64) = 1.1-2.el8, but none of the providers can be installed
- cannot install the best update candidate for package authselect-1.1-2.el8.x86_64
- problem with installed package authselect-compat-1.1-2.el8.x86_64
Problem 2: cannot install both cups-libs-1:2.2.6-40.el8.x86_64 and cups-libs-1:2.2.6-28.el8.x86_64
- package cups-client-1:2.2.6-28.el8.x86_64 requires cups-libs(x86-64) = 1:2.2.6-28.el8, but none of the providers can be installed
- cannot install the best update candidate for package cups-libs-1:2.2.6-28.el8.x86_64
- problem with installed package cups-client-1:2.2.6-28.el8.x86_64
Problem 3: cannot install both dbus-daemon-1:1.12.8-14.el8.x86_64 and dbus-daemon-1:1.12.8-9.el8.x86_64
- package dbus-x11-1:1.12.8-9.el8.x86_64 requires dbus-daemon = 1:1.12.8-9.el8, but none of the providers can be installed
- cannot install the best update candidate for package dbus-daemon-1:1.12.8-9.el8.x86_64
- problem with installed package dbus-x11-1:1.12.8-9.el8.x86_64
Problem 4: cannot install both libgomp-8.5.0-4.el8_5.x86_64 and libgomp-8.3.1-4.5.el8.x86_64
- package gcc-8.3.1-4.5.el8.x86_64 requires libgomp = 8.3.1-4.5.el8, but none of the providers can be installed
- cannot install the best update candidate for package libgomp-8.3.1-4.5.el8.x86_64
- problem with installed package gcc-8.3.1-4.5.el8.x86_64
Problem 5: package libsolv-0.7.19-1.el8.x86_64 conflicts with rpm(x86-64) < 4.14.3 provided by rpm-4.14.2-26.el8_1.x86_64
- package rpm-build-4.14.2-26.el8_1.x86_64 requires rpm = 4.14.2-26.el8_1, but none of the providers can be installed
- cannot install the best update candidate for package libsolv-0.7.4-3.el8.x86_64
- problem with installed package rpm-build-4.14.2-26.el8_1.x86_64
Problem 6: cannot install both libstdc++-8.5.0-4.el8_5.x86_64 and libstdc++-8.3.1-4.5.el8.x86_64
- package gcc-c++-8.3.1-4.5.el8.x86_64 requires libstdc++ = 8.3.1-4.5.el8, but none of the providers can be installed
- cannot install the best update candidate for package libstdc++-8.3.1-4.5.el8.x86_64
- problem with installed package gcc-c++-8.3.1-4.5.el8.x86_64
Problem 7: cannot install both lua-libs-5.3.4-12.el8.x86_64 and lua-libs-5.3.4-11.el8.x86_64
- package lua-5.3.4-11.el8.x86_64 requires lua-libs = 5.3.4-11.el8, but none of the providers can be installed
- cannot install the best update candidate for package lua-libs-5.3.4-11.el8.x86_64
- problem with installed package lua-5.3.4-11.el8.x86_64
Problem 8: cannot install both newt-0.52.20-11.el8.x86_64 and newt-0.52.20-9.el8.x86_64
- package python3-newt-0.52.20-9.el8.x86_64 requires newt(x86-64) = 0.52.20-9.el8, but none of the providers can be installed
- cannot install the best update candidate for package newt-0.52.20-9.el8.x86_64
- problem with installed package python3-newt-0.52.20-9.el8.x86_64
Problem 9: cannot install both perl-libs-4:5.26.3-420.el8.x86_64 and perl-libs-4:5.26.3-416.el8.x86_64
- package perl-devel-4:5.26.3-416.el8.x86_64 requires perl-libs(x86-64) = 4:5.26.3-416.el8, but none of the providers can be installed
- cannot install the best update candidate for package perl-libs-4:5.26.3-416.el8.x86_64
- problem with installed package perl-devel-4:5.26.3-416.el8.x86_64
Problem 10: cannot install both platform-python-3.6.8-41.el8.x86_64 and platform-python-3.6.8-15.1.el8.x86_64
- package platform-python-devel-3.6.8-15.1.el8.x86_64 requires platform-python = 3.6.8-15.1.el8, but none of the providers can be installed
- cannot install the best update candidate for package platform-python-3.6.8-15.1.el8.x86_64
- problem with installed package platform-python-devel-3.6.8-15.1.el8.x86_64
Problem 11: cannot install both platform-python-pip-9.0.3-20.el8.noarch and platform-python-pip-9.0.3-15.el8.noarch
- package python3-pip-9.0.3-15.el8.noarch requires platform-python-pip = 9.0.3-15.el8, but none of the providers can be installed
- cannot install the best update candidate for package platform-python-pip-9.0.3-15.el8.noarch
- problem with installed package python3-pip-9.0.3-15.el8.noarch
Problem 12: cannot install both python3-gobject-base-3.28.3-2.el8.x86_64 and python3-gobject-base-3.28.3-1.el8.x86_64
- package python3-gobject-3.28.3-1.el8.x86_64 requires python3-gobject-base(x86-64) = 3.28.3-1.el8, but none of the providers can be installed
- cannot install the best update candidate for package python3-gobject-base-3.28.3-1.el8.x86_64
- problem with installed package python3-gobject-3.28.3-1.el8.x86_64
Problem 13: package platform-python-devel-3.6.8-15.1.el8.x86_64 requires python3-libs(x86-64) = 3.6.8-15.1.el8, but none of the providers can be installed
- cannot install both python3-libs-3.6.8-41.el8.x86_64 and python3-libs-3.6.8-15.1.el8.x86_64
- package python36-devel-3.6.8-2.module+el8.1.0+3334+5cb623d7.x86_64 requires platform-python-devel, but none of the providers can be installed
- cannot install the best update candidate for package python3-libs-3.6.8-15.1.el8.x86_64
- problem with installed package python36-devel-3.6.8-2.module+el8.1.0+3334+5cb623d7.x86_64
Problem 14: cannot install both dbus-daemon-1:1.12.8-14.el8.x86_64 and dbus-daemon-1:1.12.8-9.el8.x86_64
- package dbus-x11-1:1.12.8-9.el8.x86_64 requires dbus-daemon = 1:1.12.8-9.el8, but none of the providers can be installed
- package dbus-1:1.12.8-14.el8.x86_64 requires dbus-daemon = 1:1.12.8-14.el8, but none of the providers can be installed
- package ibus-1.5.19-4.el8.x86_64 requires dbus-x11, but none of the providers can be installed
- cannot install the best update candidate for package dbus-1:1.12.8-9.el8.x86_64
- problem with installed package ibus-1.5.19-4.el8.x86_64
Problem 15: cannot install both perl-libs-4:5.26.3-420.el8.x86_64 and perl-libs-4:5.26.3-416.el8.x86_64
- package perl-devel-4:5.26.3-416.el8.x86_64 requires perl-libs(x86-64) = 4:5.26.3-416.el8, but none of the providers can be installed
- package perl-Errno-1.28-420.el8.x86_64 requires perl-libs(x86-64) = 4:5.26.3-420.el8, but none of the providers can be installed
- package perl-ExtUtils-CBuilder-1:0.280230-2.el8.noarch requires perl-devel, but none of the providers can be installed
- cannot install the best update candidate for package perl-Errno-1.28-416.el8.x86_64
- problem with installed package perl-ExtUtils-CBuilder-1:0.280230-2.el8.noarch
Problem 16: cannot install both perl-libs-4:5.26.3-420.el8.x86_64 and perl-libs-4:5.26.3-416.el8.x86_64
- package perl-devel-4:5.26.3-416.el8.x86_64 requires perl-libs(x86-64) = 4:5.26.3-416.el8, but none of the providers can be installed
- package perl-interpreter-4:5.26.3-420.el8.x86_64 requires perl-libs(x86-64) = 4:5.26.3-420.el8, but none of the providers can be installed
- package perl-ExtUtils-MakeMaker-1:7.34-1.el8.noarch requires perl-devel, but none of the providers can be installed
- cannot install the best update candidate for package perl-interpreter-4:5.26.3-416.el8.x86_64
- problem with installed package perl-ExtUtils-MakeMaker-1:7.34-1.el8.noarch
Problem 17: package dbus-x11-1:1.12.8-9.el8.x86_64 requires dbus-daemon = 1:1.12.8-9.el8, but none of the providers can be installed
- package dbus-daemon-1:1.12.8-9.el8.x86_64 requires dbus-common = 1:1.12.8-9.el8, but none of the providers can be installed
- package ibus-1.5.19-4.el8.x86_64 requires dbus-x11, but none of the providers can be installed
- cannot install both dbus-common-1:1.12.8-14.el8.noarch and dbus-common-1:1.12.8-9.el8.noarch
- package ibus-libpinyin-1.10.0-1.el8.x86_64 requires ibus >= 1.5.11, but none of the providers can be installed
- cannot install the best update candidate for package dbus-common-1:1.12.8-9.el8.noarch
- problem with installed package ibus-libpinyin-1.10.0-1.el8.x86_64
Problem 18: package dbus-x11-1:1.12.8-9.el8.x86_64 requires dbus-daemon = 1:1.12.8-9.el8, but none of the providers can be installed
- package dbus-daemon-1:1.12.8-9.el8.x86_64 requires dbus-libs(x86-64) = 1:1.12.8-9.el8, but none of the providers can be installed
- package ibus-1.5.19-4.el8.x86_64 requires dbus-x11, but none of the providers can be installed
- cannot install both dbus-libs-1:1.12.8-14.el8.x86_64 and dbus-libs-1:1.12.8-9.el8.x86_64
- package ibus-setup-1.5.19-4.el8.noarch requires ibus = 1.5.19-4.el8, but none of the providers can be installed
- cannot install the best update candidate for package dbus-libs-1:1.12.8-9.el8.x86_64
- problem with installed package ibus-setup-1.5.19-4.el8.noarch
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
solution
$ sudo dnf repolist
repo id repo name
baseos CentOS Linux 8 - BaseOS
epel Extra Packages for Enterprise Linux 8 - x86_64
extras CentOS Linux 8 - Extras
jfrog-cli jfrog-cli
mono-centos8-stable mono-centos8-stable
$ sudo dnf update --refresh --allowerasing
$ sudo dnf distro-sync -y
# or
$ sudo dnf remove $(dnf repoquery --duplicated --latest-limit -1 -q)
# show duplicate packages
$ dnf repoquery --duplicated
File "/usr/libexec/urlgrabber-ext-down", line 28
error
File "/usr/libexec/urlgrabber-ext-down", line 28
except OSError, e:
^
$ sudo update-alternatives --config python
There are 3 programs which provide 'python'.
Selection Command
-----------------------------------------------
*+ 1 /usr/bin/python3
2 /usr/bin/python2.7
3 /usr/bin/python2
Enter to keep the current selection[+], or type selection number: 3
$ sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
$ sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
At that time, or in the event of a serious security bug in this time window (Defined as anything with a VCSS v3 score of 9 or greater), this content will be removed from our mirrors, and moved to vault.centos.org where it will be archived permanently, since we will not be able to provide updates to the content after the EOL date.
# -- This downloads the Stream repo files.
$ sudo dnf install centos-release-stream -y --disablerepo=* --enablerepo='extras'
# -- Enabling Stream-* allows you to download the latest gpg key
$ sudo dnf swap centos-{linux,stream}-repos -y --disablerepo=* --enablerepo=extras,Stream-*
# -- Only necessary if you're using epel repos
$ sudo dnf config-manager --set-enabled powertools
$ sudo dnf distro-sync -y
$ sudo reboot
# -- Not all packages are upgradeable during the distro-sync. I had 28 packages on one server, including gcc-c++, gcc-fortran, and mysql-server
$ sudo dnf upgrade -y
# -- Optional. There's no need to keep these files, but if you don't mind your directory being messy, you can leave them.
$ sudo rm -f /etc/yum.repos.d/*rpmsave
# -- Optional. The *.repo.rpmnew files have $releasever in the Name directive, so this is just to keep the display names consistent across repos and servers (if you build new Stream systems, they'll have $releasever in the display name); the actual repo names are the same in both files.
$ ls *rpmnew | awk -F '.' '{ print $1 }' | while read -r REPO ; do /usr/bin/cp $REPO.repo.rpmnew $REPO.repo ; done