$ sudo sed -i 's/Prompt=.*/Prompt=never/' /etc/update-manager/release-upgrades
$ sudo sed -i 's/"1"/"0"/' /etc/apt/apt.conf.d/10periodic
$ sudo sed -i 's/"1"/"0"/' /etc/apt/apt.conf.d/20auto-upgrades
disable server auto upgrade
# dpkg --list | grep jenkins
ii jenkins 2.19.4 all Jenkins monitors executions of repeated jobs, such as building a software
# echo "jenkins hold" | dpkg --set-selections
OR
# apt-mark hold jenkins
# dpkg --list | grep jenkins
hi jenkins 2.19.4 all Jenkins monitors executions of repeated jobs, such as building a software
# dockerfile
RUN apt install -y gnupg ca-certificates
RUN gpg --keyserver keyserver.ubuntu.com --recv 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
RUN gpg --export 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF | tee /usr/share/keyrings/mono.gpg >/dev/null
RUN gpg --batch --yes --delete-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
RUN echo "deb [signed-by=/usr/share/keyrings/mono.gpg] https://download.mono-project.com/repo/debian stable-buster main" | tee /etc/apt/sources.list.d/mono-official-stable.list
RUN apt update
RUN apt install -y mono-devel
apt-cache
get package name by command
$ apt-cache search mkpasswd
whois - intelligent WHOIS client
libstring-mkpasswd-perl - Perl module implementing a random password generator
search package name for apt-get
$ sudo apt-cache search chrome browser
chromium-browser - Chromium browser
chromium-chromedriver - WebDriver driver for the Chromium Browser
cloudprint - Server for Google Cloud Print
collabtive - Web-based project management software
epiphany-browser - Intuitive GNOME web browser
jsxgraph - Interactive Geometry with JavaScript
kpartsplugin - Netscape-compatible plugin to embed KDE file-viewers into browser
libjs-excanvas - HTML5 Canvas for Internet Explorer
libjs-jquery-jplayer - HTML5 Audio & Video for jQuery with a Flash fallback
libjs-jquery-jush - jQuery Syntax Highlighter
google-chrome-beta - The web browser from Google
google-chrome-stable - The web browser from Google
google-chrome-unstable - The web browser from Google
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
vim : Depends: vim-common (= 2:8.2.3995-1ubuntu2.15) but 2:8.2.3995-1ubuntu2.13 is installed
Depends: vim-runtime (= 2:8.2.3995-1ubuntu2.15) but 2:8.2.3995-1ubuntu2.13 is installed
vim-tiny : Depends: vim-common (= 2:8.2.3995-1ubuntu2.15) but 2:8.2.3995-1ubuntu2.13 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
$ sudo sed -i 's/$releasever/8/g' /etc/yum.repos.d/epel*.repo
# Same problem, RHEL 8.2 on Azure.
$ sed -i.bak 's/\$releasever/8/g' /etc/yum.repos.d/epel*.repo
list only epel supported
$ dnf --disablerepo="*" --enablerepo="epel" list available
$ 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