文章目录
- bclinux本地源配置方法
- 外网
- 内网
- 使用vmware挂载镜像为yum源方法
- 挂载镜像并配置yum
- - nothing provides /etc/mime.types needed by报错说明
- bclinux使用yum卡主解决方法、bclinux用rpm安装本地源方法、Failed to set locale, defaulting to C.UTF-8解决方法
bclinux本地源配置方法
外网
- 使用外网,我也是把那个包给卸载了的哈,不然使用yum会卡主
[root@localhost http]
29 rpm -qa | grep bcli
30 rpm -evh bclinux-license-manager-4.0-1.el8.bclinux.x86_64
98 history | grep rpm
[root@localhost http]
[root@localhost yum.repos.d]
/etc/yum.repos.d
[root@localhost yum.repos.d]
[root@localhost yum.repos.d]
bak BCLinux-AppStream.repo BCLinux-BaseOS.repo BCLinux-Kernel.repo BCLinux-PowerTools.repo
[root@localhost yum.repos.d]
[root@localhost yum.repos.d]
仓库标识 仓库名称
AppStream BC-Linux-8.2 AppStream
BaseOS BC-Linux-8.2 - Base
kernel-bek BC-Linux-8.2 - kernel-bek
kernel-kpatch BC-Linux-8.2 - kernel-kpatch
[root@localhost yum.repos.d]
内网
使用vmware挂载镜像为yum源方法
- 内网配置yum源你应该也知道,首先得要有一个镜像,云上的虚拟机没办法哈,老老实实的上传镜像,如果你是用vmware创建的虚拟机,那么就不用上传镜像了,直接用vmware挂载的镜像就行
- 首先要保证vmware镜像是连接的。
- 查看命令
lsblk
,sr0的就是vmware的挂载镜像
[root@localhost ~]
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 20G 0 disk
├─sda1 8:1 0 1G 0 part /boot
└─sda2 8:2 0 19G 0 part
├─bel-root 253:0 0 17G 0 lvm /
└─bel-swap 253:1 0 2G 0 lvm [SWAP]
sr0 11:0 1 9.4G 0 rom
[root@localhost ~]
[root@localhost ~]
[root@localhost ~]
[root@localhost ~]
mount: /root/yum: WARNING: device write-protected, mounted read-only.
[root@localhost ~]
挂载镜像并配置yum
- 首先上传和系统一样的iso包到系统内并创建一个目录挂载该iso
[root@localhost yum.repos.d]
BCLinux-R8-U2-Server-x86_64-220413.iso
[root@localhost yum.repos.d]
/dev/loop0 9.4G 9.4G 0 100% /root/yum
[root@localhost yum.repos.d]
- 配置yum,必须配置2个baseurl路径,为啥这么弄,注意看注释说明
[root@localhost yum.repos.d]
/etc/yum.repos.d
[root@localhost yum.repos.d]
[root@localhost yum.repos.d]
[root@localhost yum.repos.d]
[bc82-App]
name=bc82-App
baseurl=file:///root/yum/AppStream
gpgcheck=0
enable=1
[bc82-Base]
name=bc82-Base
baseurl=file:///root/yum/BaseOS
gpgcheck=0
enable=1
[root@localhost yum.repos.d]
[root@localhost yum]
[root@localhost yum]
AppStream BaseOS EFI EULA GPL RPM-GPG-KEY-BCLinux-8 TRANS.TBL images isolinux
[root@localhost yum]
[root@localhost AppStream]
Packages TRANS.TBL comps.xml modules.yaml repodata
[root@localhost AppStream]
[root@localhost AppStream]
[root@localhost Packages]
4847
[root@localhost Packages]
[root@localhost Packages]
1441
[root@localhost Packages]
[root@localhost Packages]
仓库标识 仓库名称
bc82-App bc82-App
bc82-Base bc82-Base
[root@localhost Packages]
[root@localhost Packages]
```bash
[root@localhost Packages]
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 0:01:29 ago on Thu Feb 2 11:45:50 2023.
Dependencies resolved.
....大量输出
Installed:
telnet-1:0.17-73.el8.x86_64
[root@localhost Packages]
- nothing provides /etc/mime.types needed by报错说明
[root@localhost yum.repos.d]
仓库标识 仓库名称
bc82-App bc82-App
[root@localhost yum.repos.d]
bc82-App 40 MB/s | 6.0 MB 00:00
上次元数据过期检查:0:00:01 前,执行于 2023年02月07日 星期二 00时57分15秒。
错误:
问题: conflicting requests
- nothing provides /etc/mime.types needed by httpd-2.4.37-21.0.1.module+el8.2.0+10157+66773459.x86_64
- nothing provides system-logos-httpd needed by httpd-2.4.37-21.0.1.module+el8.2.0+10157+66773459.x86_64
(尝试添加 '--skip-broken' 来跳过无法安装的软件包 或 '--nobest' 来不只使用最佳选择的软件包)
[root@localhost yum.repos.d]
[root@pod5-yum-test-2 yum.repos.d]
Failed to set locale, defaulting to C.UTF-8
bc2 545 kB/s | 4.2 kB 00:00
Error:
Problem: conflicting requests
- nothing provides /etc/mime.types needed by httpd-2.4.37-21.0.1.module+el8.2.0+10157+66773459.x86_64
- nothing provides system-logos-httpd needed by httpd-2.4.37-21.0.1.module+el8.2.0+10157+66773459.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@pod5-yum-test-2 yum.repos.d]
[root@pod5-yum-test-2 yum.repos.d]
[bc2]
name=bc2
baseurl=http://10.241.102.24/bc/AppStream/
gpgcheck=0
enabled=1
[root@pod5-yum-test-2 yum.repos.d]
- 解决方法,因为yum源中只配置了一个base路径,按照上面方法将2个base路径都配置上就可以了
注:仅适用于centos8.0及以上系统
[root@localhost yum.repos.d]
[bc82-App]
name=bc82-App
baseurl=file:///root/yum/AppStream
gpgcheck=0
enable=1
[root@localhost yum.repos.d]
[root@localhost yum.repos.d]
[root@localhost yum.repos.d]
[bc82-App]
name=bc82-App
baseurl=file:///root/yum/AppStream
gpgcheck=0
enable=1
[bc82-Base]
name=bc82-Base
baseurl=file:///root/yum/BaseOS
gpgcheck=0
enable=1
[root@localhost yum.repos.d]
[root@localhost yum.repos.d]
[root@localhost yum.repos.d]
Failed to set locale, defaulting to C.UTF-8
bc1 417 kB/s | 3.8 kB 00:00
bc2 1.4 MB/s | 4.2 kB 00:00
Dependencies resolved.
==============================================================================================================================================================================================================================================================================
Package Architecture Version Repository Size
==============================================================================================================================================================================================================================================================================
Installing:
httpd x86_64 2.4.37-21.0.1.module+el8.2.0+10157+66773459 bc2 1.4 M
Installing dependencies:
bclinux-logos-httpd noarch 80.5-2.el8.bclinux bc1 28 k
mailcap noarch 2.1.48-3.el8 bc1 37 k
mod_http2 x86_64 1.11.3-3.module+el8.2.0+10157+66773459.1 bc2 155 k
Transaction Summary
==============================================================================================================================================================================================================================================================================
Install 4 Packages
Total download size: 1.6 M
Installed size: 4.7 M
Downloading Packages:
(1/4): bclinux-logos-httpd-80.5-2.el8.bclinux.noarch.rpm 2.8 MB/s | 28 kB 00:00
(2/4): mailcap-2.1.48-3.el8.noarch.rpm 3.2 MB/s | 37 kB 00:00
(3/4): mod_http2-1.11.3-3.module+el8.2.0+10157+66773459.1.x86_64.rpm 18 MB/s | 155 kB 00:00
(4/4): httpd-2.4.37-21.0.1.module+el8.2.0+10157+66773459.x86_64.rpm 11 MB/s | 1.4 MB 00:00
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 12 MB/s | 1.6 MB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : mailcap-2.1.48-3.el8.noarch 1/4
Installing : bclinux-logos-httpd-80.5-2.el8.bclinux.noarch 2/4
Installing : mod_http2-1.11.3-3.module+el8.2.0+10157+66773459.1.x86_64 3/4
Installing : httpd-2.4.37-21.0.1.module+el8.2.0+10157+66773459.x86_64 4/4
Running scriptlet: httpd-2.4.37-21.0.1.module+el8.2.0+10157+66773459.x86_64 4/4
Verifying : bclinux-logos-httpd-80.5-2.el8.bclinux.noarch 1/4
Verifying : mailcap-2.1.48-3.el8.noarch 2/4
Verifying : httpd-2.4.37-21.0.1.module+el8.2.0+10157+66773459.x86_64 3/4
Verifying : mod_http2-1.11.3-3.module+el8.2.0+10157+66773459.1.x86_64 4/4
Installed:
bclinux-logos-httpd-80.5-2.el8.bclinux.noarch httpd-2.4.37-21.0.1.module+el8.2.0+10157+66773459.x86_64 mailcap-2.1.48-3.el8.noarch mod_http2-1.11.3-3.module+el8.2.0+10157+66773459.1.x86_64
Complete!
[root@localhost yum.repos.d]
bclinux使用yum卡主解决方法、bclinux用rpm安装本地源方法、Failed to set locale, defaulting to C.UTF-8解决方法
bclinux使用yum卡主解决方法、bclinux用rpm安装本地源方法、Failed to set locale, defaulting to C.UTF-8解决方法
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)