YUM錯誤訊息找不到解..(ARM平台) - Linux

By Margaret
at 2015-08-19T17:34
at 2015-08-19T17:34
Table of Contents
CENTOS 7最近出了ARM的版本,小弟我馬上放到IMX6平台來試試,
雖然可以用,但沒辦法使用yum指令,噴的錯誤訊息如下:
[root@imx6 home]# yum update
Loaded plugins: fastestmirror
One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the
problem.
2. Reconfigure the baseurl/et. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Disable the repository, so yum won't use it by default. Yum will then
just ignore the repository until you permanently enable it again or
use
--enablerepo for temporary usage:
yum-config-manager --disable <repoid>
4. Configure the failing repository to be skipped, if it unavailable.
Note that yum will try to contact the repo. when it runs most
commands,
so will have to try and fail each time (l be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=<repoid>.skip_if_unavaila
使用了yum repolist則是顯示
[root@imx6 ~]# yum repolist all
Loaded plugins: fastestmirror
c7buildroot | 2.9 kB 00:00
c7buildroot/primary_db | 1.6 MB 00:03
c7pass1 | 2.9 kB 00:00
c7pass1/primary_db | 3.3 MB 00:02
comps | 3.6 kB 00:00
comps/group_gz | 154 kB 00:01
comps/primary_db | 5.0 MB 00:04
repo id repo name status
C7.0.1406-base/armhfp CentOS-7.0.1406 - Base disabled
C7.0.1406-centosplus/armhfp CentOS-7.0.1406 - CentOSPlus disabled
C7.0.1406-extras/armhfp CentOS-7.0.1406 - Extras disabled
C7.0.1406-fasttrack/armhfp CentOS-7.0.1406 - CentOSPlus disabled
C7.0.1406-updates/armhfp CentOS-7.0.1406 - Updates disabled
base/7/armhfp CentOS-7 - Base enabled:
0
base-debuginfo/armhfp CentOS-7 - Debuginfo disabled
base-source/7 CentOS-7 - Base Sources disabled
c7buildroot c7buildroot enabled:
3326
c7pass1 c7pass1 enabled:
5940
centosplus/7/armhfp CentOS-7 - Plus disabled
centosplus-source/7 CentOS-7 - Plus Sources disabled
comps comps enabled:
9105
cr/7/armhfp CentOS-7 - cr disabled
extras/7/armhfp CentOS-7 - Extras enabled:
0
extras-source/7 CentOS-7 - Extras Sources disabled
fasttrack/7/armhfp CentOS-7 - fasttrack disabled
updates/7/armhfp CentOS-7 - Updates enabled:
0
updates-source/7 CentOS-7 - Updates Sources disabled
repolist: 18371
因為我是第一次使用yum的套件管理的OS,看起來好像是repo不對或是repo被disable, google都找不到相關的解答,希望這方面的前輩能指引些方向!
感謝!!
--
雖然可以用,但沒辦法使用yum指令,噴的錯誤訊息如下:
[root@imx6 home]# yum update
Loaded plugins: fastestmirror
One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the
problem.
2. Reconfigure the baseurl/et. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Disable the repository, so yum won't use it by default. Yum will then
just ignore the repository until you permanently enable it again or
use
--enablerepo for temporary usage:
yum-config-manager --disable <repoid>
4. Configure the failing repository to be skipped, if it unavailable.
Note that yum will try to contact the repo. when it runs most
commands,
so will have to try and fail each time (l be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=<repoid>.skip_if_unavaila
使用了yum repolist則是顯示
[root@imx6 ~]# yum repolist all
Loaded plugins: fastestmirror
c7buildroot | 2.9 kB 00:00
c7buildroot/primary_db | 1.6 MB 00:03
c7pass1 | 2.9 kB 00:00
c7pass1/primary_db | 3.3 MB 00:02
comps | 3.6 kB 00:00
comps/group_gz | 154 kB 00:01
comps/primary_db | 5.0 MB 00:04
repo id repo name status
C7.0.1406-base/armhfp CentOS-7.0.1406 - Base disabled
C7.0.1406-centosplus/armhfp CentOS-7.0.1406 - CentOSPlus disabled
C7.0.1406-extras/armhfp CentOS-7.0.1406 - Extras disabled
C7.0.1406-fasttrack/armhfp CentOS-7.0.1406 - CentOSPlus disabled
C7.0.1406-updates/armhfp CentOS-7.0.1406 - Updates disabled
base/7/armhfp CentOS-7 - Base enabled:
0
base-debuginfo/armhfp CentOS-7 - Debuginfo disabled
base-source/7 CentOS-7 - Base Sources disabled
c7buildroot c7buildroot enabled:
3326
c7pass1 c7pass1 enabled:
5940
centosplus/7/armhfp CentOS-7 - Plus disabled
centosplus-source/7 CentOS-7 - Plus Sources disabled
comps comps enabled:
9105
cr/7/armhfp CentOS-7 - cr disabled
extras/7/armhfp CentOS-7 - Extras enabled:
0
extras-source/7 CentOS-7 - Extras Sources disabled
fasttrack/7/armhfp CentOS-7 - fasttrack disabled
updates/7/armhfp CentOS-7 - Updates enabled:
0
updates-source/7 CentOS-7 - Updates Sources disabled
repolist: 18371
因為我是第一次使用yum的套件管理的OS,看起來好像是repo不對或是repo被disable, google都找不到相關的解答,希望這方面的前輩能指引些方向!
感謝!!
--
Tags:
Linux
All Comments

By Rebecca
at 2015-08-23T22:23
at 2015-08-23T22:23

By Xanthe
at 2015-08-27T21:19
at 2015-08-27T21:19

By David
at 2015-08-30T06:29
at 2015-08-30T06:29
Related Posts
SFTP權限問題

By Hazel
at 2015-08-18T17:46
at 2015-08-18T17:46
中文檔名變成fsck0000.000

By Bennie
at 2015-08-18T13:13
at 2015-08-18T13:13
ubuntu字型

By Mia
at 2015-08-17T20:10
at 2015-08-17T20:10
新.Fedora套件管理器dnf

By Candice
at 2015-08-16T12:33
at 2015-08-16T12:33
usb隨身碟格式化後不能用

By Blanche
at 2015-08-16T10:59
at 2015-08-16T10:59