首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >在CentOS 8上从本地存储库安装yum时出错

在CentOS 8上从本地存储库安装yum时出错
EN

Stack Overflow用户
提问于 2021-12-09 09:07:55
回答 1查看 2.4K关注 0票数 0

看起来它有问题要找到文件,但我检查了,并在那里!我试图安装任何东西,每个文件都有相同的错误,我只需要从本地存储库安装,因为它是离线环境中的一个服务器。

好的,我得到了以下错误:

代码语言:javascript
运行
复制
[root@Nagios-01 yum.repos.d]# yum install php
Last metadata expiration check: 0:19:00 ago on Thu 09 Dec 2021 10:29:52 AM IST.
Dependencies resolved.
=============================================================================================================================================================================================================================================
 Package                                                  Architecture                                 Version                                                                         Repository                                       Size
=============================================================================================================================================================================================================================================
Installing:
 php                                                      x86_64                                       7.4.19-1.module_el8.5.0+815+1c4fd2e5                                            appstream                                       1.5 M
Installing dependencies:
 centos-logos-httpd                                       noarch                                       85.8-2.el8                                                                      baseos                                           75 k
 httpd                                                    x86_64                                       2.4.37-41.module_el8.5.0+977+5653bbea                                           appstream                                       1.4 M
 mod_http2                                                x86_64                                       1.15.7-3.module_el8.4.0+778+c970deab                                            appstream                                       154 k
 nginx-filesystem                                         noarch                                       1:1.20.0-2.module_el8.5.0+899+43b718f6                                          appstream                                        25 k
 php-common                                               x86_64                                       7.4.19-1.module_el8.5.0+815+1c4fd2e5                                            appstream                                       702 k
Installing weak dependencies:
 php-cli                                                  x86_64                                       7.4.19-1.module_el8.5.0+815+1c4fd2e5                                            appstream                                       3.1 M
 php-fpm                                                  x86_64                                       7.4.19-1.module_el8.5.0+815+1c4fd2e5                                            appstream                                       1.6 M
 php-json                                                 x86_64                                       7.4.19-1.module_el8.5.0+815+1c4fd2e5                                            appstream                                        74 k
 php-mbstring                                             x86_64                                       7.4.19-1.module_el8.5.0+815+1c4fd2e5                                            appstream                                       484 k
 php-opcache                                              x86_64                                       7.4.19-1.module_el8.5.0+815+1c4fd2e5                                            appstream                                       267 k
 php-pdo                                                  x86_64                                       7.4.19-1.module_el8.5.0+815+1c4fd2e5                                            appstream                                       123 k
 php-xml                                                  x86_64                                       7.4.19-1.module_el8.5.0+815+1c4fd2e5                                            appstream                                       174 k

Transaction Summary
=============================================================================================================================================================================================================================================
Install  13 Packages

Total download size: 9.6 M
Installed size: 37 M
Is this ok [y/N]: y
Downloading Packages:
Error opening localhost/root/Repository/appstream/Packages/httpd-2.4.37-41.module_el8.5.0+977+5653bbea.x86_64.rpm: No such file or directory
Package "httpd-2.4.37-41.module_el8.5.0+977+5653bbea.x86_64" from local repository "appstream" has incorrect checksum
Error opening localhost/root/Repository/appstream/Packages/mod_http2-1.15.7-3.module_el8.4.0+778+c970deab.x86_64.rpm: No such file or directory
Package "mod_http2-1.15.7-3.module_el8.4.0+778+c970deab.x86_64" from local repository "appstream" has incorrect checksum
Error opening localhost/root/Repository/appstream/Packages/nginx-filesystem-1.20.0-2.module_el8.5.0+899+43b718f6.noarch.rpm: No such file or directory
Package "nginx-filesystem-1:1.20.0-2.module_el8.5.0+899+43b718f6.noarch" from local repository "appstream" has incorrect checksum
Error opening localhost/root/Repository/appstream/Packages/php-7.4.19-1.module_el8.5.0+815+1c4fd2e5.x86_64.rpm: No such file or directory
Package "php-7.4.19-1.module_el8.5.0+815+1c4fd2e5.x86_64" from local repository "appstream" has incorrect checksum
Error opening localhost/root/Repository/appstream/Packages/php-cli-7.4.19-1.module_el8.5.0+815+1c4fd2e5.x86_64.rpm: No such file or directory
Package "php-cli-7.4.19-1.module_el8.5.0+815+1c4fd2e5.x86_64" from local repository "appstream" has incorrect checksum
Error opening localhost/root/Repository/appstream/Packages/php-common-7.4.19-1.module_el8.5.0+815+1c4fd2e5.x86_64.rpm: No such file or directory
Package "php-common-7.4.19-1.module_el8.5.0+815+1c4fd2e5.x86_64" from local repository "appstream" has incorrect checksum
Error opening localhost/root/Repository/appstream/Packages/php-fpm-7.4.19-1.module_el8.5.0+815+1c4fd2e5.x86_64.rpm: No such file or directory
Package "php-fpm-7.4.19-1.module_el8.5.0+815+1c4fd2e5.x86_64" from local repository "appstream" has incorrect checksum
Error opening localhost/root/Repository/appstream/Packages/php-json-7.4.19-1.module_el8.5.0+815+1c4fd2e5.x86_64.rpm: No such file or directory
Package "php-json-7.4.19-1.module_el8.5.0+815+1c4fd2e5.x86_64" from local repository "appstream" has incorrect checksum
Error opening localhost/root/Repository/appstream/Packages/php-mbstring-7.4.19-1.module_el8.5.0+815+1c4fd2e5.x86_64.rpm: No such file or directory
Package "php-mbstring-7.4.19-1.module_el8.5.0+815+1c4fd2e5.x86_64" from local repository "appstream" has incorrect checksum
Error opening localhost/root/Repository/appstream/Packages/php-opcache-7.4.19-1.module_el8.5.0+815+1c4fd2e5.x86_64.rpm: No such file or directory
Package "php-opcache-7.4.19-1.module_el8.5.0+815+1c4fd2e5.x86_64" from local repository "appstream" has incorrect checksum
Error opening localhost/root/Repository/appstream/Packages/php-pdo-7.4.19-1.module_el8.5.0+815+1c4fd2e5.x86_64.rpm: No such file or directory
Package "php-pdo-7.4.19-1.module_el8.5.0+815+1c4fd2e5.x86_64" from local repository "appstream" has incorrect checksum
Error opening localhost/root/Repository/appstream/Packages/php-xml-7.4.19-1.module_el8.5.0+815+1c4fd2e5.x86_64.rpm: No such file or directory
Package "php-xml-7.4.19-1.module_el8.5.0+815+1c4fd2e5.x86_64" from local repository "appstream" has incorrect checksum
Error opening localhost/root/Repository/baseos/Packages/centos-logos-httpd-85.8-2.el8.noarch.rpm: No such file or directory
Package "centos-logos-httpd-85.8-2.el8.noarch" from local repository "baseos" has incorrect checksum
Error: Some packages from local repository have incorrect checksum
[root@Nagios-01 yum.repos.d]#

我的.repo文件如下所示:

代码语言:javascript
运行
复制
[extras]

name=CentOS Linux $releasever - Extras
baseurl="file://localhost/root/Repository/extras"
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
EN

回答 1

Stack Overflow用户

发布于 2021-12-10 03:33:14

错误:没有这样的文件或目录

你可能用错了基尔,你可以试试

代码语言:javascript
运行
复制
[extras]

name=CentOS Linux $releasever - Extras
baseurl="file:///root/Repository/extras"
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70287203

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档