Fedora24->25
#dnf update
で下記エラーが発生
ImportError: /lib/librpm.so.3: undefined symbol: rpm_execcon
ImportError: /usr/lib/libnssutil3.so: undefined symbol: PL_ClearArenaPool
に対して
rpm -qa --qf "%{name}-%{version}-%{release}.%{arch}\n" nss\* python\* | sort
を実行して、該当ライブラリを問い合わせている。
今回の場合
rpm -qa --qf "%{name}-%{version}-%{release}.%{arch}\n" rpm\* python\* | sort
That symbol is defined in /usr/lib/librpm.so.3
$ find /usr/lib/ -maxdepth 1 -type f -name "*.so" | xargs nm -AD | grep rpm_execcon
$ rpm -qf /usr/lib/librpm.so.3
# yum clean
を実行してみると、
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
/lib/librpm.so.3: undefined symbol: rpm_execcon
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.7.5 (default, Apr 10 2015, 08:09:14)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-7)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
/usr/bin/python のシンボリックリンクを張り替えてみるか。
lrwxrwxrwx. 1 root root 7 6月 16 2015 python -> python2
lrwxrwxrwx. 1 root root 14 6月 3 2017 python-config -> python2-config
lrwxrwxrwx. 1 root root 3 6月 3 2017 python-pip -> pip
lrwxrwxrwx. 1 root root 9 6月 16 2015 python2 -> python2.7
lrwxrwxrwx. 1 root root 16 6月 3 2017 python2-config -> python2.7-config
- rwxr-xr-x. 1 root root 8036 4月 10 2015 python2.7
- rwxr-xr-x. 1 root root 1835 4月 10 2015 python2.7-config
lrwxrwxrwx. 1 root root 9 6月 16 2015 python3 -> python3.3
- rwxr-xr-x. 2 root root 9064 12月 4 2014 python3.3
- rwxr-xr-x. 2 root root 9064 12月 4 2014 python3.3m
駄目!
rpm -Uvh librpm3-4.12.0.2-1.7.mga5.i586.rpm
警告: librpm3-4.12.0.2-1.7.mga5.i586.rpm: ヘッダー V3 RSA/SHA1 Signature、鍵 ID 80420f66: NOKEY
エラー: 依存性の欠如:
liblua.so.5.2 は librpm3-1:4.12.0.2-1.7.mga5.i586 に必要とされています liblua5.2 >= 5.2.3-3.mga5 は librpm3-1:4.12.0.2-1.7.mga5.i586 に必要とされています
順に入れるしかないのか?
$ sudo rpm -Uvh liblua5.2-5.2.3-6.mga5.i586.rpm
[sudo] password for osamu_gt:
警告: liblua5.2-5.2.3-6.mga5.i586.rpm: ヘッダー V3 RSA/SHA1 Signature、鍵 ID 80420f66: NOKEY
準備しています... ################################# [100%]
更新中 / インストール中...
1:liblua5.2-5.2.3-6.mga5 ################################# [100%]
$ sudo rpm -Uvh librpm3-4.12.0.2-1.7.mga5.i586.rpm
警告: librpm3-4.12.0.2-1.7.mga5.i586.rpm: ヘッダー V3 RSA/SHA1 Signature、鍵 ID 80420f66: NOKEY
準備しています... ################################# [100%]
ファイル /usr/lib/librpm.so.3 (パッケージ librpm3-1:4.12.0.2-1.7.mga5.i586 から) は、パッケージ rpm-libs-4.11.3-3.fc20.i686 からのファイルと競合しています。 ファイル /usr/lib/librpmio.so.3 (パッケージ librpm3-1:4.12.0.2-1.7.mga5.i586 から) は、パッケージ rpm-libs-4.11.3-3.fc20.i686 からのファイルと競合しています。
競合しているようだが、どうすればよい?
# /bin/rpm -ivh --replacefiles パッケージファイル名
ファイルが競合する
別のパッケージや同じパッケージの古いバージョンによってインストールされたファイルと新しいファイルが競合する場合、 --replacefiles オプションを使用すると、エラーを無視し、再インストールができます。
$ sudo rpm -ivh --replacefiles librpm3-4.12.0.2-1.7.mga5.i5586.rpm
警告: librpm3-4.12.0.2-1.7.mga5.i586.rpm: ヘッダー V3 RSA/SHA1 Signature、鍵 ID 80420f66: NOKEY
準備しています... ################################# [100%]
更新中 / インストール中...
1:librpm3-1:4.12.0.2-1.7.mga5 ################################# [100%]
気を取り直して
$ sudo dnf system-upgrade download −−releasever=25 −−allowerasing
コマンド「system-upgrade」が見つかりません。「/bin/dnf --help」を実行してください。
dnfが古い
dnf-0.5.4-2.fc20
$ sudo fedup --network 25 --debuglog /root/fedup-24to25.log
を実行すると
Downloading failed: failure: repodata/
Downloading failed: failure: repodata/c5224c5abe36a37ae62db17add12cf0120bb137f3a7fb04536e52f3cb3ef5e9a-filelists.sqlite.xz from rpmfusion-nonfree-updates: [Errno 256] No more mirrors to try.
http://mirror1.hs-esslingen.de/pub/Mirrors/archive.rpmfusion.org/nonfree-archive/fedora/updates/25/i386/repodata/c5224c5abe36a37ae62db17add12cf0120bb137f3a7fb04536e52f3cb3ef5e9a-filelists.sqlite.xz: [Errno 14] HTTP Error 404 - Not Found
https://rpmfusion-archive.ip-connect.vn.ua/nonfree-archive/fedora/updates/25/i386/repodata/c5224c5abe36a37ae62db17add12cf0120bb137f3a7fb04536e52f3cb3ef5e9a-filelists.sqlite.xz: [Errno 14] HTTPS Error 404 - Not Found
rpmfusion-nonfree-updates
これが見つかっていない。
$ ll /etc/yum.repos.d合計 56
- rw-r--r--. 1 root root 179 7月 26 2007 adobe-linux-i386.repo
- rw-r--r--. 1 root root 0 3月 8 2017 fedora-cisco-openh264.repo
- rw-r--r--. 1 root root 1328 3月 8 2017 fedora-updates-testing.repo
- rw-r--r--. 1 root root 1270 3月 8 2017 fedora-updates.repo
- rw-r--r--. 1 root root 1253 3月 8 2017 fedora.repo
- rw-r--r--. 1 root root 114 8月 23 2014 google-chrome.repo
- rw-r--r--. 1 root root 1241 8月 24 2016 rpmfusion-free-rawhide.repo
- rw-r--r--. 1 root root 1230 8月 24 2016 rpmfusion-free-updates-testing.repo
- rw-r--r--. 1 root root 1170 8月 24 2016 rpmfusion-free-updates.repo
- rw-r--r--. 1 root root 1172 8月 24 2016 rpmfusion-free.repo
- rw-r--r--. 1 root root 1295 8月 24 2016 rpmfusion-nonfree-rawhide.repo
- rw-r--r--. 1 root root 1275 8月 24 2016 rpmfusion-nonfree-updates-testing.repo
- rw-r--r--. 1 root root 1215 8月 24 2016 rpmfusion-nonfree-updates.repo
- rw-r--r--. 1 root root 1217 8月 24 2016 rpmfusion-nonfree.repo
- rw-r--r--. 1 root root 534 2月 25 2013 winff.repo
みつかっていないreposを消して、再実行したけど、
やっぱりだめ
rpmfusion-free/25/i386/filelists_db | 262 kB 00:01
Downloading failed: failure: repodata/0b84d86ffe92929bc5819bc225b5b40601287bbc7f25424f094856105525968d-filelists.sqlite.bz2 from updates: [Errno 256] No more mirrors to try.
https://mirrors.rit.edu/fedora/archive/fedora/linux/updates/25/i386/repodata/0b84d86ffe92929bc5819bc225b5b40601287bbc7f25424f094856105525968d-filelists.sqlite.bz2: [Errno 14] HTTPS Error 404 - Not Found
http://fedora-archive.mirror.liquidtelecom.com/archive/fedora/linux/updates/25/i386/repodata/0b84d86ffe92929bc5819bc225b5b40601287bbc7f25424f094856105525968d-filelists.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
https://fedora-archive.ip-connect.vn.ua/fedora/linux/updates/25/i386/repodata/0b84d86ffe92929bc5819bc225b5b40601287bbc7f25424f094856105525968d-filelists.sqlite.bz2: [Errno 14] HTTPS Error 404 - Not Found
http://mirror.math.princeton.edu/pub/fedora-archive/fedora/linux/updates/25/i386/repodata/0b84d86ffe92929bc5819bc225b5b40601287bbc7f25424f094856105525968d-filelists.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
https://ftp-stud.hs-esslingen.de/pub/Mirrors/archive.fedoraproject.org/fedora/linux/updates/25/i386/repodata/0b84d86ffe92929bc5819bc225b5b40601287bbc7f25424f094856105525968d-filelists.sqlite.bz2: [Errno 14] HTTPS Error 404 - Not Found
http://mirrors.kernel.org/fedora-buffet/archive/fedora/linux/updates/25/i386/repodata/0b84d86ffe92929bc5819bc225b5b40601287bbc7f25424f094856105525968d-filelists.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
https://pubmirror1.math.uh.edu/fedora-buffet/archive/fedora/linux/updates/25/i386/repodata/0b84d86ffe92929bc5819bc225b5b40601287bbc7f25424f094856105525968d-filelists.sqlite.bz2: [Errno 14] HTTPS Error 404 - Not Found
https://pubmirror2.math.uh.edu/fedora-buffet/archive/fedora/linux/updates/25/i386/repodata/0b84d86ffe92929bc5819bc225b5b40601287bbc7f25424f094856105525968d-filelists.sqlite.bz2: [Errno 14] HTTPS Error 404 - Not Found
https://dl.fedoraproject.org/pub/archive/fedora/linux/updates/25/i386/repodata/0b84d86ffe92929bc5819bc225b5b40601287bbc7f25424f094856105525968d-filelists.sqlite.bz2: [Errno 14] HTTPS Error 404 - Not Found
filelists.sqlite.bz2が見つからないようだ。
たどってみても、その前の文字列が違うようです。
を見ると、
/var/cache/yum/...以下の該当ファイルを削除しているみたい。
# find / -name "*primary.sqlite.bz2"
/var/cache/yum/x86_64/7/base/efa521576f53587de26616ea1e45f902993abcd9d67e707b8993b5f29bd15956-primary.sqlite.bz2
/var/cache/yum/x86_64/7/d66ff97e9fe6b3e6efb794bedc0d336cd1c6e93e7ae7dd6646c9b467f9845bd3-primary.sqlite.bz2
# rm var/cache/yum/x86_64/7/d66ff97e9fe6b3e6efb794bedc0d336cd1c6e93e7ae7dd6646c9b467f9845bd3-primary.sqlite.bz2
# yum clean all
# yum update
読み込んだプラグイン:fastestmirror
Loading mirror speeds from cached hostfile
No packages marked for updat
/var/cache/system-upgrade/updates/0b84d86ffe92929bc5819bc225b5b40601287bbc7f25424f094856105525968d-filelists.sqlite.bz2
/var/cache/system-upgrade/updates
以下にファイル名がある。
実際に探しに行っているリポジトリにあるファイル名に合わせてやって
再度、実行すると、元の名前に上書きされている。
このファイル名は、fedupをやる際にどこかからとってきているということになる。
repomd.xml
の中にある。
これを書き換えよう。
から、ダウンロードしたものと交換
動き出した。
- 最終更新:2019-02-24 12:20:31