第一步检查Linux软件更新
yum check-update
=========================================================================
yum check-update
OS 38 kB/s | 3.8 kB 00:00
everything 40 kB/s | 3.8 kB 00:00
EPOL 682 B/s | 146 B 00:00
Errors during downloading metadata for repository 'EPOL':
- Status code: 404 for http://repo.openeuler.org/openEuler-21.09/main/EPOL/x86_64/repodata/repomd.xml (IP: 159.138.11.195)
Error: Failed to download metadata for repo 'EPOL': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
[root@localhost yum.repos.d]# vim openEuler.repo
[root@localhost yum.repos.d]# dnf update
OS 14 kB/s | 3.8 kB 00:00
everything 38 kB/s | 3.8 kB 00:00
EPOL 1.2 MB/s | 3.1 MB 00:02
debuginfo 3.4 MB/s | 3.7 MB 00:01
source 1.1 MB/s | 1.5 MB 00:01
update 5.8 kB/s | 1.2 kB 00:00
Dependencies resolved.
=========================================================================================================
Package Architecture Version Repository Size
=========================================================================================================
Upgrading:
openEuler-gpg-keys x86_64 1.0-3.2.oe1 update 10 k
openEuler-repos x86_64 1.0-3.2.oe1 update 9.2 k
Transaction Summary
=========================================================================================================
Upgrade 2 Packages
Total download size: 19 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): openEuler-repos-1.0-3.2.oe1.x86_64.rpm 92 kB/s | 9.2 kB 00:00
(2/2): openEuler-gpg-keys-1.0-3.2.oe1.x86_64.rpm 69 kB/s | 10 kB 00:00
---------------------------------------------------------------------------------------------------------
Total 130 kB/s | 19 kB 00:00
update 20 kB/s | 2.1 kB 00:00
Importing GPG key 0xB25E7F66:
Userid : "private OBS (key without passphrase) "
Fingerprint: 12EA 74AC 9DF4 8D46 C69C A0BE D557 065E B25E 7F66
From : http://repo.openeuler.org/openEuler-21.09/OS/x86_64/RPM-GPG-KEY-openEuler
Is this ok [y/N]: y
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Upgrading : openEuler-gpg-keys-1.0-3.2.oe1.x86_64 1/4
Upgrading : openEuler-repos-1.0-3.2.oe1.x86_64 2/4
Cleanup : openEuler-repos-1.0-3.1.oe1.x86_64 3/4
Cleanup : openEuler-gpg-keys-1.0-3.1.oe1.x86_64 4/4
Verifying : openEuler-gpg-keys-1.0-3.2.oe1.x86_64 1/4
Verifying : openEuler-gpg-keys-1.0-3.1.oe1.x86_64 2/4
Verifying : openEuler-repos-1.0-3.2.oe1.x86_64 3/4
Verifying : openEuler-repos-1.0-3.1.oe1.x86_64 4/4
Upgraded:
openEuler-gpg-keys-1.0-3.2.oe1.x86_64 openEuler-repos-1.0-3.2.oe1.x86_64
Complete!
=========================================================================
第二步
yum -y install lvm2 device-mapper
=========================================================================
Last metadata expiration check: 0:01:49 ago on Mon 22 Nov 2021 04:43:33 PM CST.
Package lvm2-8:2.03.11-5.oe1.x86_64 is already installed.
Package device-mapper-8:1.02.172-5.oe1.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
翻译
最后一次元数据过期检查:0:01:49之前,美国标准时间2021年11月22日星期一04:43:33下午。
已安装包lvm2-8:2.03.11-5.oe1.x86_64。
已安装程序包设备-mapper-8:1.02.172-5.oe1.x86_64。
依赖项已解决。
无事可做。
完成
=========================================================================
最后
yum -y groupinstall GNOME
输出太多,截取一部分
vinagre-3.22.0-13.oe1.x86_64
vino-3.22.0-12.oe1.x86_64
vte291-0.62.3-1.oe1.x86_64
vulkan-loader-1.1.92.0-2.oe1.x86_64
webkit2gtk3-2.32.1-2.oe1.x86_64
webkit2gtk3-jsc-2.32.1-2.oe1.x86_64
webrtc-audio-processing-0.3.1-5.oe1.x86_64
woff2-1.0.2-6.oe1.x86_64
wpebackend-fdo-1.6.1-1.oe1.x86_64
xcb-util-0.4.0-13.oe1.x86_64
xdg-dbus-proxy-0.1.2-1.oe1.x86_64
xdg-desktop-portal-1.7.2-1.oe1.x86_64
xdg-desktop-portal-gtk-1.8.0-1.oe1.x86_64
xdg-user-dirs-0.17-3.oe1.x86_64
xdg-user-dirs-gtk-0.10-17.oe1.x86_64
xmlrpc-c-1.51.06-1.oe1.x86_64
xorg-x11-drv-libinput-0.30.0-1.oe1.x86_64
xorg-x11-server-1.20.10-6.oe1.x86_64
xorg-x11-server-utils-7.7-29.oe1.x86_64
xorg-x11-xauth-1:1.1-1.oe1.x86_64
xorg-x11-xinit-1.4.0-7.oe1.x86_64
xorg-x11-xkb-utils-7.7-28.oe1.x86_64
yelp-2:3.38.3-1.oe1.x86_64
yelp-xsl-3.38.3-1.oe1.noarch
zenity-3.32.0-2.oe1.x86_64
zziplib-0.13.71-3.oe1.x86_64
Complete!
=========================================================================
开启图像界面
init 5
返回代码
init 3
=========================================================================
可能出现的问题
一、
yum check-update
OS 38 kB/s | 3.8 kB 00:00
everything 40 kB/s | 3.8 kB 00:00
EPOL 682 B/s | 146 B 00:00
Errors during downloading metadata for repository 'EPOL':
- Status code: 404 for http://repo.openeuler.org/openEuler-21.09/main/EPOL/x86_64/repodata/repomd.xml (IP: 159.138.11.195)
Error: Failed to download metadata for repo 'EPOL': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
这是openEuler源配置的问题
出现这个问题也不要怕
找百度
当然这个是yum的问题
配置一下就行了
首先进入cd yum.repos.d目录
然后vim编辑openEluer.repo
[EPOL]
name=EPOL
baseurl=http://repo.openeuler.org/openEuler-21.09/EPOL/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://repo.openeuler.org/openEuler-21.09/OS/$basearch/RPM-GPG-KEY-openEuler
添加main/
============================================================
[EPOL]
name=EPOL
baseurl=http://repo.openeuler.org/openEuler-21.09/EPOL/main/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://repo.openeuler.org/openEuler-21.09/OS/$basearch/RPM-GPG-KEY-openEuler
============================
二、ens33,IP地址不出现
解决办法
ens33无IP
cd /etc/sysconfig/network-scripts/
这个意思就是进入配置的地方
vi ifcfg-ens33
===========================
vim 是编辑的意思
进入编辑
按 “i”插入
退出,保存
按“Esc”
shift+:
输入wq
============================
将最后一段代码
ONBOOT=no改为yes即可