Closed laughk closed 6 years ago
とりあえず libalpm.so.*
を探してみる
$ sudo find / -name "*libalpm.so*"
find: ‘/run/user/1000/gvfs’: Permission denied
/usr/lib/libalpm.so.11.0.0
/usr/lib/libalpm.so
/usr/lib/libalpm.so.11
という感じでどうも libalpm というやつのバージョンが上がったことが原因っぽい。
雑な応急処置としてシムリンクで逃げることにする。
$ cd /usr/lib/
$ sudo ln -sv libalpm.so.11 libalpm.so.10
'libalpm.so.10' -> 'libalpm.so.11'
$ ls -l libalpm.so.10
lrwxrwxrwx 1 root root 13 May 29 14:33 libalpm.so.10 -> libalpm.so.11*
これで一応動くようになった
$ yay
:: Synchronizing package databases...
core is up to date
extra 1610.8 KiB 4.11M/s 00:00 [######################################################################] 100%
community 4.4 MiB 11.1M/s 00:00 [######################################################################] 100%
archlinuxfr is up to date
:: Searching databases for updates...
:: Searching AUR for updates...
-> Local package is newer than AUR: ttf-cica (2.0.4-1 -> 1.0.2-1)
:: Querying AUR...
-> Missing AUR Packages: js libcloudproviders libhttpseverywhere vte3-ng
:: 5 Packages to upgrade.
5 extra/gnome-builder 3.28.1-1 -> 3.28.2-1
4 community/python-sqlalchemy 1.2.7-1 -> 1.2.8-1
3 aur/python34 3.4.7-1 -> 3.4.8-1
2 aur/typora 0.9.51-1 -> 0.9.52-1
1 aur/yay 6.777-2 -> 6.784-1
どうも libalpm というやつのバージョンが上がったことが原因
これは pacman に含まれるライブラリみたい。 ref. https://www.archlinux.org/packages/core/x86_64/pacman/files/
https://github.com/laughk/archlinux-note/issues/18#issue-327177070 のアップデートの際に中途半端な状態でファイルが展開され、新バージョンと旧バージョンの pacman がごちゃまぜになって発生した可能性が高そう。
実際、シムリンクによる回避を行い再度アップデートを行った所、 libalpm.so.10 のシムリンクは削除しても正常に動いたことを確認。
# laughk @ archlinux in ~ [14:52:24] C:130
$ ls -l /usr/lib/libalpm.so
lrwxrwxrwx 1 root root 17 May 28 10:26 /usr/lib/libalpm.so -> libalpm.so.11.0.0*
# laughk @ archlinux in ~ [14:52:34]
$ ls -l /usr/lib/libalpm.so.10
lrwxrwxrwx 1 root root 13 May 29 14:33 /usr/lib/libalpm.so.10 -> libalpm.so.11*
# laughk @ archlinux in ~ [14:52:39]
$ sudo unlink /usr/lib/libalpm.so.10
[sudo] password for laughk:
# laughk @ archlinux in ~ [14:52:50]
$ ls -l /usr/lib/libalpm.so.10
ls: cannot access '/usr/lib/libalpm.so.10': No such file or directory
# laughk @ archlinux in ~ [14:52:52] C:2
$ yay
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
archlinuxfr is up to date
:: Searching databases for updates...
:: Searching AUR for updates...
-> Local package is newer than AUR: ttf-cica (2.0.4-1 -> 1.0.2-1)
-> Missing AUR Packages: js libcloudproviders libhttpseverywhere vte3-ng
:: Starting full system upgrade...
there is nothing to do
なおったのでおしまい
yaourt の方は報告が上がっていた
https://aur.archlinux.org/packages/yaourt
ちなみに https://github.com/laughk/archlinux-note/issues/18#issuecomment-392660857 では yay で確認して問題なかった感じだけど、 yaourt だと libalpm.so.10 のシムリンクが消えるとまた起動しなくなってしまった...
いつもどおりのカジュアルアップデートで以下のような感じにコケた
問題はこの後で、以下のエラーで pacman, yaourt などヘルパー含めてパッケージ管理が使えなくなった