搜索
Table_bottom

标签云
Table_bottom

分类
Table_bottom

声明
文章若未特別註明,皆採用 知识共享许可协议 請自覺遵守
Table_bottom

鏈。。。
Table_bottom

存档
Table_bottom

匆匆过客
88552
Table_bottom

功能
Table_bottom

pacman近日问题(更新到4版以及其他)小结

人云E云 posted @ 2012年1月27日 08:05 in Linux with tags linux archlinux , 2596 阅读

本文有关pacman更新到4版以及盲目降级出现pacman: error while loading shared libraries: libarchive.so.2: cannot open shared object file: No such file or directory这样的提示的问题及解决方案

今天是我们学校(我高三)新年假期的倒数第二天,我在失败的NOIP之后最后的一个休整假期了。想起来arch上acpi call在更新内核后挂掉一直没来得及解决,遍准备顺带把系统更新一下。

 

前几天(忘了是哪一天了)有一次连着网就顺手pacman -Syu了一下,当时说要先更新pacman。我在archlinuxcn.org(一民间archlinux中文论坛)上看到过有说pacman4更新后出问题的贴子,故而我选了N,等着看一会再解决。不巧,又提示kmod与module-init-tools有冲突,,于是取消了更新。上网查一下,,看看貌似用途貌似差不多。但是尝试都不卸载失败,于是选择卸掉module-init-tools。更新包(总约700M)快下载完的时候,家人不让用了,我便要求等这次更新结束再关。(可惜的是,这次忘记 --ignore pacman了……)

(安装了yaourt的记得先把yaourt以及package-query卸载掉,不然没法更新,,,之后可以重新装上)

当时忙着关电脑,也没看更新过后有什么提示。结果今天pacman -Syu之后便提示各种签名有问题。。这才发现pacman到了4版...怎奈点开论坛才发现论坛迁移中……于是准备搜索一番这个问题的解决办法。

记得某天逛汉服吧的时候顺便去了一趟arch吧看到里边有贴子,于是我这个白痴点开贴子,,看看说要pacman-key init,,我把这个当命令输到终端发现弹出来用法简介……看了一遍没看出到底应该怎么弄(眼那个瘸啊……),于是继续看贴子。贴子里边还写道 要把pacman.d改成pacman.d.pacnew,,,我没有更新的提示,,于是想也没想直接mv /etc/pacman.d /etc/pacman.d.pacnew……结果是报告各种找不到文件……

然后记得好像在哪看到过说降级一下就没问题了,,然后我颠啊颠地去/var/cache/pacman/pkg/里边找到上个版本的pacman(3.5.4-4)本地安装了。安完看了一眼提示,貌似没什么问题。然后pacman -Syu,,好,问题出来了,提示pacman: error while loading shared libraries: libarchive.so.2: cannot open shared object file: No such file or directory

找不到怎么办呢?/usr/lib里边有libarchive.so以及libarchive.so.12两个链接,,于是便自己造一个符号链接:

sudo ln -s /usr/lib/libarchive.so.12 /usr/lib/libarchive.so.2

之后pacman就可以正常更新数据库了。(当然,这次完了之后自己造的链接我是删除了的,,,目前看来没什么问题)

然后更新pacman,,,之后用那些新文件替换老文件(/etc/makepkg.conf  /etc/pacman.conf  /etc/pacman.d/mirrorlist  这些是老文件,,相应的新文件在相应名称后边加上了.pacnew)。。。我对旧文件留了备份,,,各位自裁(自我裁决)吧~

其他的,就是各种更新,,,各种重装

+1 Blueprint 2024 说:
2023年2月10日 07:47

The education board will be in charge of 11th-grade assessment. Download the Assessment Marking Scheme from the Board. Students may find all of the information they need about the exam New Marking Scheme in the article below. The board has also downloaded realistic assessment dates. The reasonable will be directed beginning in March 2024.<a href="https://www.edpost.in/1st-inter-blueprint-20-11th-blueprint/">+1 Blueprint 2024</a> The Council of Higher Secondary Education has announced the modified Class XI Blueprint for the 2024 Annual Examination.

+1 Blueprint 2024 说:
2023年2月10日 07:48

The education board will be in charge of 11th-grade assessment. Download the Assessment Marking Scheme from the Board. Students may find all of the information they need about the exam New Marking Scheme in the article below. The board has also downloaded realistic assessment dates . The reasonable will be directed beginning in March 2024. +1 Blueprint 2024 The Council of Higher Secondary Education has announced the modified Class XI Blueprint for the 2024 Annual Examination.

10thmodelquestionspa 说:
2023年5月01日 09:13

10th Board Model Paper 2023 Aspirants who had Registered for the Board 10th Class Exam can Download the Previous Paper When Board Announces the Dates to Download the Question Paper. 10thmodelquestionspapers.in Board Question Papers will be Provided Very Soon Through Online Mode and all the Applicants Should Visit the Official Page Regularly for More Information Regarding Previous Paper, Examination Date. Check the Below Provided Details for More Information About the Board Model Paper.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter