# 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
$sudodnfupdate--refreshCentOSLinux8-BaseOS15kB/s|3.9kB00:00CentOSLinux8-Extras14kB/s|1.5kB00:00ExtraPackagesforEnterpriseLinux8-x86_6450kB/s|22kB00:00jfrog-cli3.9kB/s|1.4kB00:00mono-centos8-stable20kB/s|2.9kB00:00Error:Problem1:cannotinstallbothauthselect-1.2.2-3.el8.x86_64andauthselect-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
-cannotinstallthebestupdatecandidateforpackageauthselect-1.1-2.el8.x86_64-problemwithinstalledpackageauthselect-compat-1.1-2.el8.x86_64Problem2:cannotinstallbothcups-libs-1:2.2.6-40.el8.x86_64andcups-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
-cannotinstallthebestupdatecandidateforpackagecups-libs-1:2.2.6-28.el8.x86_64-problemwithinstalledpackagecups-client-1:2.2.6-28.el8.x86_64Problem3:cannotinstallbothdbus-daemon-1:1.12.8-14.el8.x86_64anddbus-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
-cannotinstallthebestupdatecandidateforpackagedbus-daemon-1:1.12.8-9.el8.x86_64-problemwithinstalledpackagedbus-x11-1:1.12.8-9.el8.x86_64Problem4:cannotinstallbothlibgomp-8.5.0-4.el8_5.x86_64andlibgomp-8.3.1-4.5.el8.x86_64-packagegcc-8.3.1-4.5.el8.x86_64requireslibgomp=8.3.1-4.5.el8,butnoneoftheproviderscanbeinstalled-cannotinstallthebestupdatecandidateforpackagelibgomp-8.3.1-4.5.el8.x86_64-problemwithinstalledpackagegcc-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
-packagerpm-build-4.14.2-26.el8_1.x86_64requiresrpm=4.14.2-26.el8_1,butnoneoftheproviderscanbeinstalled-cannotinstallthebestupdatecandidateforpackagelibsolv-0.7.4-3.el8.x86_64-problemwithinstalledpackagerpm-build-4.14.2-26.el8_1.x86_64Problem6:cannotinstallbothlibstdc++-8.5.0-4.el8_5.x86_64andlibstdc++-8.3.1-4.5.el8.x86_64-packagegcc-c++-8.3.1-4.5.el8.x86_64requireslibstdc++=8.3.1-4.5.el8,butnoneoftheproviderscanbeinstalled-cannotinstallthebestupdatecandidateforpackagelibstdc++-8.3.1-4.5.el8.x86_64-problemwithinstalledpackagegcc-c++-8.3.1-4.5.el8.x86_64Problem7:cannotinstallbothlua-libs-5.3.4-12.el8.x86_64andlua-libs-5.3.4-11.el8.x86_64-packagelua-5.3.4-11.el8.x86_64requireslua-libs=5.3.4-11.el8,butnoneoftheproviderscanbeinstalled-cannotinstallthebestupdatecandidateforpackagelua-libs-5.3.4-11.el8.x86_64-problemwithinstalledpackagelua-5.3.4-11.el8.x86_64Problem8:cannotinstallbothnewt-0.52.20-11.el8.x86_64andnewt-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
-cannotinstallthebestupdatecandidateforpackagenewt-0.52.20-9.el8.x86_64-problemwithinstalledpackagepython3-newt-0.52.20-9.el8.x86_64Problem9:cannotinstallbothperl-libs-4:5.26.3-420.el8.x86_64andperl-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
-cannotinstallthebestupdatecandidateforpackageperl-libs-4:5.26.3-416.el8.x86_64-problemwithinstalledpackageperl-devel-4:5.26.3-416.el8.x86_64Problem10:cannotinstallbothplatform-python-3.6.8-41.el8.x86_64andplatform-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
-cannotinstallthebestupdatecandidateforpackageplatform-python-3.6.8-15.1.el8.x86_64-problemwithinstalledpackageplatform-python-devel-3.6.8-15.1.el8.x86_64Problem11:cannotinstallbothplatform-python-pip-9.0.3-20.el8.noarchandplatform-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
-cannotinstallthebestupdatecandidateforpackageplatform-python-pip-9.0.3-15.el8.noarch-problemwithinstalledpackagepython3-pip-9.0.3-15.el8.noarchProblem12:cannotinstallbothpython3-gobject-base-3.28.3-2.el8.x86_64andpython3-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
-cannotinstallthebestupdatecandidateforpackagepython3-gobject-base-3.28.3-1.el8.x86_64-problemwithinstalledpackagepython3-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
-cannotinstallbothpython3-libs-3.6.8-41.el8.x86_64andpython3-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
-cannotinstallthebestupdatecandidateforpackagepython3-libs-3.6.8-15.1.el8.x86_64-problemwithinstalledpackagepython36-devel-3.6.8-2.module+el8.1.0+3334+5cb623d7.x86_64Problem14:cannotinstallbothdbus-daemon-1:1.12.8-14.el8.x86_64anddbus-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
-packageibus-1.5.19-4.el8.x86_64requiresdbus-x11,butnoneoftheproviderscanbeinstalled-cannotinstallthebestupdatecandidateforpackagedbus-1:1.12.8-9.el8.x86_64-problemwithinstalledpackageibus-1.5.19-4.el8.x86_64Problem15:cannotinstallbothperl-libs-4:5.26.3-420.el8.x86_64andperl-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
-cannotinstallthebestupdatecandidateforpackageperl-Errno-1.28-416.el8.x86_64-problemwithinstalledpackageperl-ExtUtils-CBuilder-1:0.280230-2.el8.noarchProblem16:cannotinstallbothperl-libs-4:5.26.3-420.el8.x86_64andperl-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
-packageperl-ExtUtils-MakeMaker-1:7.34-1.el8.noarchrequiresperl-devel,butnoneoftheproviderscanbeinstalled-cannotinstallthebestupdatecandidateforpackageperl-interpreter-4:5.26.3-416.el8.x86_64-problemwithinstalledpackageperl-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
-packageibus-1.5.19-4.el8.x86_64requiresdbus-x11,butnoneoftheproviderscanbeinstalled-cannotinstallbothdbus-common-1:1.12.8-14.el8.noarchanddbus-common-1:1.12.8-9.el8.noarch-packageibus-libpinyin-1.10.0-1.el8.x86_64requiresibus>=1.5.11,butnoneoftheproviderscanbeinstalled-cannotinstallthebestupdatecandidateforpackagedbus-common-1:1.12.8-9.el8.noarch-problemwithinstalledpackageibus-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
-packageibus-1.5.19-4.el8.x86_64requiresdbus-x11,butnoneoftheproviderscanbeinstalled-cannotinstallbothdbus-libs-1:1.12.8-14.el8.x86_64anddbus-libs-1:1.12.8-9.el8.x86_64-packageibus-setup-1.5.19-4.el8.noarchrequiresibus=1.5.19-4.el8,butnoneoftheproviderscanbeinstalled-cannotinstallthebestupdatecandidateforpackagedbus-libs-1:1.12.8-9.el8.x86_64-problemwithinstalledpackageibus-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