首页 > 系统相关 >Ubuntu22.04 解决 E: 无法定位软件包 yum

Ubuntu22.04 解决 E: 无法定位软件包 yum

时间:2025-01-12 23:43:38浏览次数:1  
标签:... jammy amd64 Get Ubuntu22.04 软件包 yum ubuntu cn

1、修改 sudo vim /etc/apt/sources.list的内容,将下文内容增加至该文件中:

deb http://archive.ubuntu.com/ubuntu/ trusty main universe restricted multiverse

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse

# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
# # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
# deb-src http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse

# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
# # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse

image


2:按步骤操作执行




root@alan-VMware-Virtual-Platform:~# clear
root@alan-VMware-Virtual-Platform:~# yum
Command 'yum' not found, did you mean:
  command 'gum' from snap gum (0.13.0)
  command 'num' from deb quickcal (2.4-1)
  command 'sum' from deb coreutils (9.4-2ubuntu2)
  command 'zum' from deb perforate (1.2-5.3)
  command 'uum' from deb freewnn-jserver (1.1.1~a021+cvs20130302-7build1)
See 'snap info <snapname>' for additional versions.
root@alan-VMware-Virtual-Platform:~# sudo apt-get install yum
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package yum is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'yum' has no installation candidate
root@alan-VMware-Virtual-Platform:~# clear
root@alan-VMware-Virtual-Platform:~# sudo apt-get update
Get:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy InRelease [270 kB]
Get:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates InRelease [128 kB]
Get:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports InRelease [127 kB]
Hit:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble InRelease
Get:6 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
Get:7 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 Packages [1,395 kB]
Hit:5 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates InRelease
Ign:8 http://archive.ubuntu.com/ubuntu trusty InRelease
Get:10 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main i386 Packages [1,040 kB]
Get:11 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main Translation-en [510 kB]
Hit:9 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-backports InRelease
Get:12 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 Components [423 kB]
Get:13 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main Icons (48x48) [100.0 kB]
Get:14 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main Icons (64x64) [148 kB]
Get:15 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main Icons (64x64@2) [15.8 kB]
Get:16 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/main amd64 c-n-f Metadata [30.3 kB]
Get:17 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/restricted i386 Packages [30.4 kB]
Get:18 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/restricted amd64 Packages [129 kB]
Get:19 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/restricted Translation-en [18.6 kB]
Get:20 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/restricted amd64 c-n-f Metadata [488 B]
Get:21 http://archive.ubuntu.com/ubuntu trusty Release [58.5 kB]
Get:22 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe i386 Packages [7,474 kB]
Get:23 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe amd64 Packages [14.1 MB]
Get:24 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe Translation-en [5,652 kB]
Get:25 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe amd64 Components [3,559 kB]
Get:26 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe Icons (48x48) [3,447 kB]
Get:27 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe Icons (64x64) [7,609 kB]
Get:28 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe Icons (64x64@2) [69.3 kB]
Get:29 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe amd64 c-n-f Metadata [286 kB]
Get:30 http://archive.ubuntu.com/ubuntu trusty Release.gpg [933 B]
Get:31 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/multiverse i386 Packages [112 kB]
Get:32 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/multiverse amd64 Packages [217 kB]
Get:33 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/multiverse Translation-en [112 kB]
Get:34 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/multiverse amd64 Components [42.1 kB]
Get:35 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/multiverse Icons (48x48) [42.7 kB]
Get:36 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/multiverse Icons (64x64) [193 kB]
Get:37 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/multiverse Icons (64x64@2) [214 B]
Get:38 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/multiverse amd64 c-n-f Metadata [8,372 B]
Get:39 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main amd64 Packages [2,275 kB]
Get:40 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main i386 Packages [744 kB]
Get:41 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main Translation-en [382 kB]
Get:42 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main amd64 Components [103 kB]
Get:43 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main Icons (48x48) [37.5 kB]
Get:44 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main Icons (64x64) [56.8 kB]
Get:45 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main Icons (64x64@2) [29 B]
Get:46 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/main amd64 c-n-f Metadata [17.9 kB]
Get:47 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/restricted amd64 Packages [2,877 kB]
Get:48 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/restricted i386 Packages [40.3 kB]
Get:49 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/restricted Translation-en [501 kB]
Get:50 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/restricted amd64 Components [212 B]
Get:51 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/restricted Icons (48x48) [29 B]
Get:52 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/restricted Icons (64x64) [29 B]
Get:53 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/restricted Icons (64x64@2) [29 B]
Get:54 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/restricted amd64 c-n-f Metadata [612 B]
Get:55 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/universe amd64 Packages [1,181 kB]
Get:56 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/universe i386 Packages [754 kB]
Hit:57 http://security.ubuntu.com/ubuntu noble-security InRelease
Get:58 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/universe Translation-en [289 kB]
Get:59 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/universe amd64 Components [356 kB]
Get:60 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/universe Icons (48x48) [247 kB]
Ign:30 http://archive.ubuntu.com/ubuntu trusty Release.gpg
Get:61 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/universe Icons (64x64) [398 kB]
Get:62 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/universe Icons (64x64@2) [29 B]
Get:63 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/universe amd64 c-n-f Metadata [26.4 kB]
Get:64 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/multiverse amd64 Packages [44.5 kB]
Get:65 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/multiverse i386 Packages [4,752 B]
Get:66 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/multiverse Translation-en [11.5 kB]
Get:67 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/multiverse amd64 Components [940 B]
Get:68 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/multiverse Icons (48x48) [1,867 B]
Get:69 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/multiverse Icons (64x64) [2,497 B]
Get:70 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/multiverse Icons (64x64@2) [29 B]
Get:71 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/multiverse amd64 c-n-f Metadata [440 B]
Get:72 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports/main amd64 Packages [67.7 kB]
Get:73 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports/main i386 Packages [59.9 kB]
Get:74 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports/main Translation-en [11.1 kB]
Get:75 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports/main amd64 Components [7,024 B]
Get:76 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports/main Icons (48x48) [9,524 B]
Get:77 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports/main Icons (64x64) [11.2 kB]
Get:78 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports/main Icons (64x64@2) [29 B]
Get:79 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports/main amd64 c-n-f Metadata [388 B]
Get:80 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports/restricted amd64 Components [212 B]
Get:81 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports/restricted Icons (48x48) [29 B]
Get:82 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports/restricted Icons (64x64) [29 B]
Get:83 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports/restricted Icons (64x64@2) [29 B]
Get:84 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports/restricted amd64 c-n-f Metadata [116 B]
Get:85 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports/universe i386 Packages [17.3 kB]
Get:86 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports/universe amd64 Packages [28.9 kB]
Get:87 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports/universe Translation-en [16.5 kB]
Get:88 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports/universe amd64 Components [17.7 kB]
Get:89 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports/universe Icons (48x48) [19.7 kB]
Get:90 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports/universe Icons (64x64) [28.2 kB]
Get:91 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports/universe Icons (64x64@2) [29 B]
Get:92 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports/universe amd64 c-n-f Metadata [672 B]
Get:93 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports/multiverse amd64 Components [212 B]
Get:94 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports/multiverse Icons (48x48) [29 B]
Get:95 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports/multiverse Icons (64x64) [29 B]
Get:96 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports/multiverse Icons (64x64@2) [29 B]
Get:97 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports/multiverse amd64 c-n-f Metadata [116 B]
Get:98 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages [581 kB]
Get:99 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [2,040 kB]
Get:100 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [321 kB]
Get:101 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Components [43.1 kB]
Get:102 http://security.ubuntu.com/ubuntu jammy-security/main Icons (48x48) [16.9 kB]
Get:103 http://security.ubuntu.com/ubuntu jammy-security/main Icons (64x64) [26.5 kB]
Get:104 http://security.ubuntu.com/ubuntu jammy-security/main Icons (64x64@2) [29 B]
Get:105 http://security.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [13.3 kB]
Get:106 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [2,772 kB]
Get:107 http://security.ubuntu.com/ubuntu jammy-security/restricted i386 Packages [38.5 kB]
Get:108 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-en [484 kB]
Get:109 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Components [208 B]
Get:110 http://security.ubuntu.com/ubuntu jammy-security/restricted Icons (48x48) [29 B]
Get:111 http://security.ubuntu.com/ubuntu jammy-security/restricted Icons (64x64) [29 B]
Get:112 http://security.ubuntu.com/ubuntu jammy-security/restricted Icons (64x64@2) [29 B]
Get:113 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 c-n-f Metadata [580 B]
Get:114 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [959 kB]
Get:115 http://security.ubuntu.com/ubuntu jammy-security/universe i386 Packages [648 kB]
Get:116 http://security.ubuntu.com/ubuntu jammy-security/universe Translation-en [204 kB]
Get:117 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Components [125 kB]
Get:118 http://security.ubuntu.com/ubuntu jammy-security/universe Icons (48x48) [82.0 kB]
Get:119 http://security.ubuntu.com/ubuntu jammy-security/universe Icons (64x64) [122 kB]
Get:120 http://security.ubuntu.com/ubuntu jammy-security/universe Icons (64x64@2) [29 B]
Get:121 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [19.5 kB]
Get:122 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [37.6 kB]
Get:123 http://security.ubuntu.com/ubuntu jammy-security/multiverse i386 Packages [1,356 B]
Get:124 http://security.ubuntu.com/ubuntu jammy-security/multiverse Translation-en [8,260 B]
Get:125 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Components [208 B]
Get:126 http://security.ubuntu.com/ubuntu jammy-security/multiverse Icons (48x48) [29 B]
Get:127 http://security.ubuntu.com/ubuntu jammy-security/multiverse Icons (64x64) [29 B]
Get:128 http://security.ubuntu.com/ubuntu jammy-security/multiverse Icons (64x64@2) [29 B]
Get:129 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 c-n-f Metadata [224 B]
Reading package lists... Done
W: GPG error: http://archive.ubuntu.com/ubuntu trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
E: The repository 'http://archive.ubuntu.com/ubuntu trusty Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
root@alan-VMware-Virtual-Platform:~# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.4K5dyaxhd8/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
gpg: key 40976EAF437D05B5: public key "Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1
root@alan-VMware-Virtual-Platform:~# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.DtNFCBkDXN/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
gpg: key 3B4FE6ACC0B21F32: public key "Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1
root@alan-VMware-Virtual-Platform:~# sudo apt-get update
Hit:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy InRelease
Hit:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates InRelease
Hit:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:6 http://archive.ubuntu.com/ubuntu trusty InRelease
Hit:7 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:5 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble InRelease
Get:9 http://archive.ubuntu.com/ubuntu trusty Release [58.5 kB]
Hit:8 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates InRelease
Hit:10 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-backports InRelease
Get:11 http://archive.ubuntu.com/ubuntu trusty Release.gpg [933 B]
Get:12 http://archive.ubuntu.com/ubuntu trusty/main amd64 Packages [1,350 kB]
Get:13 http://archive.ubuntu.com/ubuntu trusty/main i386 Packages [1,348 kB]
Get:14 http://archive.ubuntu.com/ubuntu trusty/universe amd64 Packages [5,859 kB]
Get:15 http://archive.ubuntu.com/ubuntu trusty/universe i386 Packages [5,866 kB]
Get:16 http://archive.ubuntu.com/ubuntu trusty/restricted amd64 Packages [13.0 kB]
Get:17 http://archive.ubuntu.com/ubuntu trusty/restricted i386 Packages [13.4 kB]
Get:18 http://archive.ubuntu.com/ubuntu trusty/multiverse i386 Packages [134 kB]
Get:19 http://archive.ubuntu.com/ubuntu trusty/multiverse amd64 Packages [132 kB]
Fetched 14.8 MB in 37s (394 kB/s)
Reading package lists... Done
W: http://archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
root@alan-VMware-Virtual-Platform:~# sudo apt-get upgrade 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  python3-netifaces
Use 'sudo apt autoremove' to remove it.
The following upgrades have been deferred due to phasing:
  python3-distupgrade ubuntu-release-upgrader-core ubuntu-release-upgrader-gtk
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
root@alan-VMware-Virtual-Platform:~# apt install yum
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  python3-netifaces
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
  debugedit libfsverity0 liblua5.2-0 liblua5.3-0 libnsl2 libpython-stdlib libpython2.7 libpython2.7-minimal libpython2.7-stdlib librpm3 librpm9t64 librpmbuild3 librpmbuild9t64 librpmio3 librpmio9t64 librpmsign1 librpmsign9t64 libsqlite0 python python-libxml2 python-minimal
  python-pycurl python-rpm python-sqlite python-sqlitecachec python-urlgrabber python2.7 python2.7-minimal rpm rpm-common rpm2cpio
Suggested packages:
  python-doc python-tk libcurl4-gnutls-dev python-pycurl-dbg python-sqlite-dbg python2.7-doc binfmt-support alien elfutils rpmlint rpm-i18n
Recommended packages:
  rpm-common
The following NEW packages will be installed:
  debugedit libfsverity0 liblua5.2-0 liblua5.3-0 libnsl2 libpython-stdlib libpython2.7 libpython2.7-minimal libpython2.7-stdlib librpm3 librpm9t64 librpmbuild3 librpmbuild9t64 librpmio3 librpmio9t64 librpmsign1 librpmsign9t64 libsqlite0 python python-libxml2 python-minimal
  python-pycurl python-rpm python-sqlite python-sqlitecachec python-urlgrabber python2.7 python2.7-minimal rpm rpm-common rpm2cpio yum
0 upgraded, 32 newly installed, 0 to remove and 3 not upgraded.
Need to get 7,917 kB of archives.
After this operation, 30.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/universe amd64 libpython2.7-minimal amd64 2.7.18-13ubuntu1.5 [347 kB]
Get:2 http://archive.ubuntu.com/ubuntu trusty/main amd64 libpython-stdlib amd64 2.7.5-5ubuntu3 [7,012 B]
Get:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/universe amd64 python2.7-minimal amd64 2.7.18-13ubuntu1.5 [1,400 kB]
Get:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/universe amd64 libpython2.7-stdlib amd64 2.7.18-13ubuntu1.5 [1,977 kB]
Get:6 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/universe amd64 libpython2.7 amd64 2.7.18-13ubuntu1.5 [1,164 kB]
Get:7 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy/universe amd64 libsqlite0 amd64 2.8.17-15fakesync1build1 [160 kB]
Get:8 https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates/universe amd64 python2.7 amd64 2.7.18-13ubuntu1.5 [250 kB]
Get:5 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/main amd64 debugedit amd64 1:5.0-5build2 [46.1 kB]
Get:9 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/universe amd64 libfsverity0 amd64 1.5-1.1build3 [11.3 kB]
Get:10 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/universe amd64 liblua5.2-0 amd64 5.2.4-3build2 [123 kB]
Get:18 http://archive.ubuntu.com/ubuntu trusty/main amd64 librpmio3 amd64 4.11.1-3 [80.9 kB]
Get:11 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/universe amd64 liblua5.3-0 amd64 5.3.6-2build2 [143 kB]
Get:12 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble/main amd64 libnsl2 amd64 1.3.0-3build3 [41.4 kB]
Get:13 http://cn.archive.ubuntu.com/ubuntu noble/universe amd64 librpmio9t64 amd64 4.18.2+dfsg-2.1build2 [95.2 kB]
Get:14 http://cn.archive.ubuntu.com/ubuntu noble/universe amd64 librpm9t64 amd64 4.18.2+dfsg-2.1build2 [217 kB]
Get:15 http://cn.archive.ubuntu.com/ubuntu noble/universe amd64 librpmbuild9t64 amd64 4.18.2+dfsg-2.1build2 [80.1 kB]
Get:16 http://cn.archive.ubuntu.com/ubuntu noble/universe amd64 librpmsign9t64 amd64 4.18.2+dfsg-2.1build2 [12.0 kB]
Get:17 http://cn.archive.ubuntu.com/ubuntu noble/universe amd64 rpm-common amd64 4.18.2+dfsg-2.1build2 [34.0 kB]
Get:19 http://cn.archive.ubuntu.com/ubuntu noble/universe amd64 rpm2cpio amd64 4.18.2+dfsg-2.1build2 [10.3 kB]
Get:20 http://cn.archive.ubuntu.com/ubuntu noble/universe amd64 rpm amd64 4.18.2+dfsg-2.1build2 [161 kB]
Get:21 http://archive.ubuntu.com/ubuntu trusty/main amd64 librpm3 amd64 4.11.1-3 [184 kB]
Get:22 http://archive.ubuntu.com/ubuntu trusty/main amd64 librpmbuild3 amd64 4.11.1-3 [66.2 kB]
Get:23 http://archive.ubuntu.com/ubuntu trusty/main amd64 librpmsign1 amd64 4.11.1-3 [9,082 B]
Get:24 http://archive.ubuntu.com/ubuntu trusty/main amd64 python-minimal amd64 2.7.5-5ubuntu3 [27.5 kB]
Get:25 http://archive.ubuntu.com/ubuntu trusty/main amd64 python amd64 2.7.5-5ubuntu3 [134 kB]
Get:26 http://archive.ubuntu.com/ubuntu trusty/main amd64 python-libxml2 amd64 2.9.1+dfsg1-3ubuntu4 [140 kB]
Get:27 http://archive.ubuntu.com/ubuntu trusty/universe amd64 python-sqlite amd64 1.0.1-11 [20.7 kB]
Get:28 http://archive.ubuntu.com/ubuntu trusty/main amd64 python-pycurl amd64 7.19.3-0ubuntu3 [47.9 kB]
Get:29 http://archive.ubuntu.com/ubuntu trusty/main amd64 python-urlgrabber all 3.9.1-4ubuntu3 [42.3 kB]
Get:30 http://archive.ubuntu.com/ubuntu trusty/universe amd64 python-rpm amd64 4.11.1-3 [43.0 kB]
Get:31 http://archive.ubuntu.com/ubuntu trusty/universe amd64 python-sqlitecachec amd64 1.1.4-1 [21.4 kB]
Get:32 http://archive.ubuntu.com/ubuntu trusty/universe amd64 yum all 3.4.3-2ubuntu1 [821 kB]
Fetched 7,917 kB in 4s (2,094 kB/s)
Extracting templates from packages: 100%
Selecting previously unselected package libpython2.7-minimal:amd64.
(Reading database ... 179876 files and directories currently installed.)
Preparing to unpack .../00-libpython2.7-minimal_2.7.18-13ubuntu1.5_amd64.deb ...
Unpacking libpython2.7-minimal:amd64 (2.7.18-13ubuntu1.5) ...
Selecting previously unselected package python2.7-minimal.
Preparing to unpack .../01-python2.7-minimal_2.7.18-13ubuntu1.5_amd64.deb ...
Unpacking python2.7-minimal (2.7.18-13ubuntu1.5) ...
Selecting previously unselected package debugedit.
Preparing to unpack .../02-debugedit_1%3a5.0-5build2_amd64.deb ...
Unpacking debugedit (1:5.0-5build2) ...
Selecting previously unselected package libfsverity0:amd64.
Preparing to unpack .../03-libfsverity0_1.5-1.1build3_amd64.deb ...
Unpacking libfsverity0:amd64 (1.5-1.1build3) ...
Selecting previously unselected package liblua5.2-0:amd64.
Preparing to unpack .../04-liblua5.2-0_5.2.4-3build2_amd64.deb ...
Unpacking liblua5.2-0:amd64 (5.2.4-3build2) ...
Selecting previously unselected package liblua5.3-0:amd64.
Preparing to unpack .../05-liblua5.3-0_5.3.6-2build2_amd64.deb ...
Unpacking liblua5.3-0:amd64 (5.3.6-2build2) ...
Selecting previously unselected package libnsl2:amd64.
Preparing to unpack .../06-libnsl2_1.3.0-3build3_amd64.deb ...
Unpacking libnsl2:amd64 (1.3.0-3build3) ...
Selecting previously unselected package libpython2.7-stdlib:amd64.
Preparing to unpack .../07-libpython2.7-stdlib_2.7.18-13ubuntu1.5_amd64.deb ...
Unpacking libpython2.7-stdlib:amd64 (2.7.18-13ubuntu1.5) ...
Selecting previously unselected package libpython-stdlib:amd64.
Preparing to unpack .../08-libpython-stdlib_2.7.5-5ubuntu3_amd64.deb ...
Unpacking libpython-stdlib:amd64 (2.7.5-5ubuntu3) ...
Selecting previously unselected package libpython2.7:amd64.
Preparing to unpack .../09-libpython2.7_2.7.18-13ubuntu1.5_amd64.deb ...
Unpacking libpython2.7:amd64 (2.7.18-13ubuntu1.5) ...
Selecting previously unselected package librpmio3.
Preparing to unpack .../10-librpmio3_4.11.1-3_amd64.deb ...
Unpacking librpmio3 (4.11.1-3) ...
Selecting previously unselected package librpm3.
Preparing to unpack .../11-librpm3_4.11.1-3_amd64.deb ...
Unpacking librpm3 (4.11.1-3) ...
Selecting previously unselected package librpmio9t64.
Preparing to unpack .../12-librpmio9t64_4.18.2+dfsg-2.1build2_amd64.deb ...
Unpacking librpmio9t64 (4.18.2+dfsg-2.1build2) ...
Selecting previously unselected package librpm9t64.
Preparing to unpack .../13-librpm9t64_4.18.2+dfsg-2.1build2_amd64.deb ...
Unpacking librpm9t64 (4.18.2+dfsg-2.1build2) ...
Selecting previously unselected package librpmbuild3.
Preparing to unpack .../14-librpmbuild3_4.11.1-3_amd64.deb ...
Unpacking librpmbuild3 (4.11.1-3) ...
Selecting previously unselected package librpmbuild9t64.
Preparing to unpack .../15-librpmbuild9t64_4.18.2+dfsg-2.1build2_amd64.deb ...
Unpacking librpmbuild9t64 (4.18.2+dfsg-2.1build2) ...
Selecting previously unselected package librpmsign1.
Preparing to unpack .../16-librpmsign1_4.11.1-3_amd64.deb ...
Unpacking librpmsign1 (4.11.1-3) ...
Selecting previously unselected package librpmsign9t64.
Preparing to unpack .../17-librpmsign9t64_4.18.2+dfsg-2.1build2_amd64.deb ...
Unpacking librpmsign9t64 (4.18.2+dfsg-2.1build2) ...
Selecting previously unselected package libsqlite0.
Preparing to unpack .../18-libsqlite0_2.8.17-15fakesync1build1_amd64.deb ...
Unpacking libsqlite0 (2.8.17-15fakesync1build1) ...
Selecting previously unselected package python2.7.
Preparing to unpack .../19-python2.7_2.7.18-13ubuntu1.5_amd64.deb ...
Unpacking python2.7 (2.7.18-13ubuntu1.5) ...
Selecting previously unselected package python-minimal.
Preparing to unpack .../20-python-minimal_2.7.5-5ubuntu3_amd64.deb ...
Unpacking python-minimal (2.7.5-5ubuntu3) ...
Selecting previously unselected package python.
Preparing to unpack .../21-python_2.7.5-5ubuntu3_amd64.deb ...
Unpacking python (2.7.5-5ubuntu3) ...
Selecting previously unselected package python-libxml2.
Preparing to unpack .../22-python-libxml2_2.9.1+dfsg1-3ubuntu4_amd64.deb ...
Unpacking python-libxml2 (2.9.1+dfsg1-3ubuntu4) ...
Selecting previously unselected package python-sqlite.
Preparing to unpack .../23-python-sqlite_1.0.1-11_amd64.deb ...
Unpacking python-sqlite (1.0.1-11) ...
Selecting previously unselected package python-pycurl.
Preparing to unpack .../24-python-pycurl_7.19.3-0ubuntu3_amd64.deb ...
Unpacking python-pycurl (7.19.3-0ubuntu3) ...
Selecting previously unselected package python-urlgrabber.
Preparing to unpack .../25-python-urlgrabber_3.9.1-4ubuntu3_all.deb ...
Unpacking python-urlgrabber (3.9.1-4ubuntu3) ...
Selecting previously unselected package rpm-common.
Preparing to unpack .../26-rpm-common_4.18.2+dfsg-2.1build2_amd64.deb ...
Unpacking rpm-common (4.18.2+dfsg-2.1build2) ...
Selecting previously unselected package rpm2cpio.
Preparing to unpack .../27-rpm2cpio_4.18.2+dfsg-2.1build2_amd64.deb ...
Unpacking rpm2cpio (4.18.2+dfsg-2.1build2) ...
Selecting previously unselected package rpm.
Preparing to unpack .../28-rpm_4.18.2+dfsg-2.1build2_amd64.deb ...
Unpacking rpm (4.18.2+dfsg-2.1build2) ...
Selecting previously unselected package python-rpm.
Preparing to unpack .../29-python-rpm_4.11.1-3_amd64.deb ...
Unpacking python-rpm (4.11.1-3) ...
Selecting previously unselected package python-sqlitecachec.
Preparing to unpack .../30-python-sqlitecachec_1.1.4-1_amd64.deb ...
Unpacking python-sqlitecachec (1.1.4-1) ...
Selecting previously unselected package yum.
Preparing to unpack .../31-yum_3.4.3-2ubuntu1_all.deb ...
Unpacking yum (3.4.3-2ubuntu1) ...
Setting up libsqlite0 (2.8.17-15fakesync1build1) ...
Setting up libfsverity0:amd64 (1.5-1.1build3) ...
Setting up libpython2.7-minimal:amd64 (2.7.18-13ubuntu1.5) ...
Setting up python2.7-minimal (2.7.18-13ubuntu1.5) ...
Linking and byte-compiling packages for runtime python2.7...
Setting up liblua5.2-0:amd64 (5.2.4-3build2) ...
Setting up liblua5.3-0:amd64 (5.3.6-2build2) ...
Setting up libnsl2:amd64 (1.3.0-3build3) ...
Setting up debugedit (1:5.0-5build2) ...
Setting up libpython2.7-stdlib:amd64 (2.7.18-13ubuntu1.5) ...
Setting up libpython-stdlib:amd64 (2.7.5-5ubuntu3) ...
Setting up python-minimal (2.7.5-5ubuntu3) ...
Setting up librpmio3 (4.11.1-3) ...
Setting up librpm3 (4.11.1-3) ...
Setting up librpmio9t64 (4.18.2+dfsg-2.1build2) ...
Setting up librpmbuild3 (4.11.1-3) ...
Setting up libpython2.7:amd64 (2.7.18-13ubuntu1.5) ...
Setting up python2.7 (2.7.18-13ubuntu1.5) ...
Setting up librpm9t64 (4.18.2+dfsg-2.1build2) ...
Setting up librpmbuild9t64 (4.18.2+dfsg-2.1build2) ...
Setting up librpmsign1 (4.11.1-3) ...
Setting up rpm-common (4.18.2+dfsg-2.1build2) ...
Setting up librpmsign9t64 (4.18.2+dfsg-2.1build2) ...
Setting up python (2.7.5-5ubuntu3) ...
Setting up python-rpm (4.11.1-3) ...
Setting up python-sqlitecachec (1.1.4-1) ...
Setting up rpm2cpio (4.18.2+dfsg-2.1build2) ...
Setting up rpm (4.18.2+dfsg-2.1build2) ...
Setting up python-sqlite (1.0.1-11) ...
Setting up python-libxml2 (2.9.1+dfsg1-3ubuntu4) ...
Setting up python-pycurl (7.19.3-0ubuntu3) ...
Setting up python-urlgrabber (3.9.1-4ubuntu3) ...
Setting up yum (3.4.3-2ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1.1ubuntu3) ...
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for dbus (1.14.10-4ubuntu4.1) ...
Processing triggers for desktop-file-utils (0.27-2build1) ...
root@alan-VMware-Virtual-Platform:~# apt install libpython-stdlib
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libpython-stdlib is already the newest version (2.7.5-5ubuntu3).
libpython-stdlib set to manually installed.
The following package was automatically installed and is no longer required:
  python3-netifaces
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
root@alan-VMware-Virtual-Platform:~# apt install yum
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
yum is already the newest version (3.4.3-2ubuntu1).
The following package was automatically installed and is no longer required:
  python3-netifaces
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
root@alan-VMware-Virtual-Platform:~# 


root@alan-VMware-Virtual-Platform:~# yum
You need to give some command
Usage: yum [options] COMMAND

List of Commands:

check          Check for problems in the rpmdb
check-update   Check for available package updates
clean          Remove cached data
deplist        List a package's dependencies
distribution-synchronization Synchronize installed packages to the latest available versions
downgrade      downgrade a package
erase          Remove a package or packages from your system
groups         Display, or use, the groups information
help           Display a helpful usage message
history        Display, or use, the transaction history
info           Display details about a package or group of packages
install        Install a package or packages on your system
list           List a package or groups of packages
load-transaction load a saved transaction from filename
makecache      Generate the metadata cache
provides       Find what package provides the given value
reinstall      reinstall a package
repolist       Display the configured software repositories
resolvedep     Determine which package provides the given dependency
search         Search package details for the given string
shell          Run an interactive yum shell
update         Update a package or packages on your system
upgrade        Update packages taking obsoletes into account
version        Display a version for the machine and/or available repos.


Options:
  -h, --help            show this help message and exit
  -t, --tolerant        be tolerant of errors
  -C, --cacheonly       run entirely from system cache, don't update cache
  -c [config file], --config=[config file]
                        config file location
  -R [minutes], --randomwait=[minutes]
                        maximum command wait time
  -d [debug level], --debuglevel=[debug level]
                        debugging output level
  --showduplicates      show duplicates, in repos, in list/search commands
  -e [error level], --errorlevel=[error level]
                        error output level
  --rpmverbosity=[debug level name]
                        debugging output level for rpm
  -q, --quiet           quiet operation
  -v, --verbose         verbose operation
  -y, --assumeyes       answer yes for all questions
  --version             show Yum version and exit
  --installroot=[path]  set install root
  --enablerepo=[repo]   enable one or more repositories (wildcards allowed)
  --disablerepo=[repo]  disable one or more repositories (wildcards allowed)
  -x [package], --exclude=[package]
                        exclude package(s) by name or glob
  --disableexcludes=[repo]
                        disable exclude from main, for a repo or for
                        everything
  --obsoletes           enable obsoletes processing during updates
  --noplugins           disable Yum plugins
  --nogpgcheck          disable gpg signature checking
  --disableplugin=[plugin]
                        disable plugins by name
  --enableplugin=[plugin]
                        enable plugins by name
  --skip-broken         skip packages with depsolving problems
  --color=COLOR         control whether color is used
  --releasever=RELEASEVER
                        set value of $releasever in yum config and repo files
  --setopt=SETOPTS      set arbitrary config and repo options

  Plugin Options:
root@alan-VMware-Virtual-Platform:~# 










标签:...,jammy,amd64,Get,Ubuntu22.04,软件包,yum,ubuntu,cn
From: https://www.cnblogs.com/ios9/p/18667630

相关文章

  • centos7系统安装国产达梦数据库DM8(详细操作步骤,软件包下载教程)
    安装前准备一、前言用户在安装DM数据库之前需要检查或修改操作系统的配置,以保证DM数据库能够正确安装和运行。本文演示环境如下:操作系统CPU数据库CentOS7x86_64架构dm8_20240116_x86_rh7_64信创环境安装部署也可以参考此篇文章,但需注意CPU和操作系统对应的DM数据......
  • 禁止ubuntu22.04开机自动升级提示
     但每次开机都这样提示 禁止的方法打开终端(Ctrl+Alt+T)。editsudovim/etc/apt/apt.conf.d/20auto-upgradesAPT::Periodic::Update-Package-Lists"0";APT::Periodic::Unattended-Upgrade"0"; 运行以下命令以停止和禁用自动升级服务:sudosystemctlstop......
  • 学习-Niginx-执行yum install -y gcc时候报错“14: curl#6 - "Could not resolve host
    报错信息如下:[root@localhostnginx-1.21.6]#yuminstall-ygcc已加载插件:fastestmirrorLoadingmirrorspeedsfromcachedhostfileCouldnotretrievemirrorlisthttp://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stockerrorwas14:curl#6......
  • Linux系统centos7,怎么配置yum,以及Errno 14 curl#37 - “Couldn‘t open file /dvd/App
    情况:我手上是一个删掉Windows系统,依靠centos7重装了Linux系统的电脑,里面是空的,什么都没有。加上在今年6月份,上游已经放弃centos7的维护,之前的一些源和网站都没用,那些教程也就没用了。步骤:1.进入root账号,这样才有足够权限做后面的事 2.检查网络是否可以连接外网。拿阿......
  • yum源搭建-centos7
    1、切换至/etc/yum.repos.dcd/etc/yum.repos.d2、将此目录下的所有镜像文件均加上.bak后缀forfilein*.repo;do  mv"$file""${file}.bak"done注:${file%.repo}%后是删除的内容3、在此路径下创建文件centos7.repo,输入以下内容[base]name=CentOS-$release......
  • Centos7将yum源更换为国内源保姆级教程
    转载自https://blog.csdn.net/yxyc666/article/details/141705431更换CentOS7的YUM源为国内源是一个常见的操作,尤其是为了加速软件包的下载。以下是一个详细的步骤教程:1.步骤1:备份原有的YUM源文件在更换YUM源之前,建议先备份系统自带的YUM源配置文件,以防需要恢复......
  • scala图书管理系统【ui】软件包
    LibrarayPresentationpackageorg.apppackageuiimportorg.app.modeis.{BookModel,UserModel}importorg.app.service.{BookService,UserService}importscala.io.StdInimportscala.io.StdIn.readLineclassLibrarayPresentation{ privatevalBookService=new......
  • Centos7下yum安装报错问题解决方法Cannot find a valid baseurl for repo: base/7/x86
    Cannotfindavalidbaseurlforrepo:base/7/x86_64 目录Cannotfindavalidbaseurlforrepo:base/7/x86_64 原因如下:1.网络问题2.错误的YUM源配置3.代理设置问题 原因如下:1.网络问题首先,检查系统的网络连接是否正常,可以通过以下命令测试:ping......
  • 执行yum命令时报 One of the configured repositories failed
    报错如下:Oneoftheconfiguredrepositoriesfailed(CentOS-7-Base),andyumdoesn'thaveenoughcacheddatatocontinue.Atthispointtheonlysafethingyumcandoisfail.Thereareafewwaystowork"fix"this:1.Contacttheup......
  • linux服务器上CentOS的yum和Ubuntu包管理工具apt区别与使用实战
    在CentOS7上,系统默认使用`yum`作为包管理工具,而不是`apt`。`apt`是为Debian和Ubuntu系统设计的,不能在CentOS或其他基于RHEL的发行版上直接使用。如果你希望继续使用CentOS7,并管理软件包,你应该使用`yum`或者`dnf`(从CentOS8开始才默认使用`dnf`)。不过,在......