标签为 "Archlinux" 的存档

Archlinux升级出现“不能满足依赖关系”的解决

# pacman -Syu

结果遇到:

resolving dependencies…
looking for inter-conflicts…
error: failed to prepare transaction (could not satisfy dependencies)
:: gcc: requires gcc-libs=4.7.0-3

解决方法也很简单,先升级pacman自己。

# pacman -S pacman

然后再执行升级,OK

Archlinux升级出现PGP KEY is unknown的解决方法

pacman大版本升级一次事儿多。

# pacman -Syu

出现错误,类似:

:: Import PGP key F53A76ED, “Dan McGee <dpmcgee@gmail.com>”, created 2007-06-27? [Y/n] n
error: alsa-lib: key “771DF6627EDF681F” is unknown
:: Import PGP key 7EDF681F, “Tobias Powalowski <tpowa@archlinux.org>”, created 2011-07-18? [Y/n] y
error: alsa-plugins: key “A5E9288C4FA415FA” is unknown

无论你选择多少次Y都会error

搜了一下,大概是pacman 4.0 需要验证发行密钥合法性

搜到:https://wiki.archlinux.org/index.php/Pacman-key

执行

curl https://www.archlinux.org/{developers,trustedusers}/ |
awk -F\” ‘(/pgp.mit.edu/) {sub(/.*search=0x/,””);print $1}’ |
xargs pacman-key –recv-keys

有点效果,出错变成了:

error: a52dec: signature from “Stéphane Gaudreault <stephane@archlinux.org>” is unknown trust
error: aalib: signature from “Eric Belanger <eric@archlinux.org>” is unknown trust
error: zlib: signature from “Pierre Schmitz <pierre@archlinux.de>” is unknown trust
error: libpng: signature from “Ionut Biru <ibiru@archlinux.org>” is unknown trust
error: wv: signature from “Giovanni Scafora <giovanni@archlinux.org>” is unknown trust
error: gcc-libs: signature from “Allan McRae <me@allanmcrae.com>” is unknown trust
error: pcre: signature from “Allan McRae <me@allanmcrae.com>” is unknown trust
error: glib2: signature from “Allan McRae <me@allanmcrae.com>” is unknown trust
error: libjpeg-turbo: signature from “Allan McRae <me@allanmcrae.com>” is unknown trust
error: libtiff: signature from “Eric Belanger <eric@archlinux.org>” is unknown trust
error: gdk-pixbuf2: signature from “Ionut Biru <ibiru@archlinux.org>” is unknown trust
error: librsvg: signature from “Ionut Biru <ibiru@archlinux.org>” is unknown trust
error: desktop-file-utils: signature from “Jan de Groot <jgc@archlinux.org>” is unknown trust
error: abiword: signature from “Giovanni Scafora <giovanni@archlinux.org>” is unknown trust
error: rsync: signature from “Ionut Biru <ibiru@archlinux.org>” is unknown trust
error: abs: signature from “Stéphane Gaudreault <stephane@archlinux.org>” is unknown trust
error: acpi: key “5C2E46A0F53A76ED” is unknown

……

算了,天太晚,实在懒得搞了。直接关掉这个验证机制

#vim /etc/pacman.conf

在 [option]段后加上

SigLevel = Never

然后升级,搞定。

Archlinux升级问题的解决

Arch很久没更新了,今天更新出现问题。

# pacman -Syu
:: Synchronizing package databases…
archlinuxfr is up to date
core is up to date
extra is up to date
community is up to date
multilib is up to date
:: The following packages should be upgraded first :
pacman
:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n] y

resolving dependencies…
looking for inter-conflicts…
error: failed to prepare transaction (could not satisfy dependencies)
:: package-query: requires pacman<3.6
也就是说,要先升级pacman,但是pacman因为依赖问题不允许升级……

好吧,那就曲线救国:
# pacman -Rs yaourt package-query

再执行:
# pacman -Syu

恩,可以升级了,然后提示:
>>> Run `pacman-key –init` to set up your pacman keyring.

好,照它说的,执行
# pacman-key –init

搞定。

然后再执行
# pacman -Syu
发现……
Total Download Size: 399.53 MiB
Total Installed Size: 1782.69 MiB
是很久没更新了…让它更新去吧~

 

archlinux 升级时出现 filesystem: /etc/mtab exists in filesystem 的解决

执行#pacman -Syu升级archlinux的时候,出现错误:

filesystem: /etc/mtab exists in filesystem
Errors occurred, no packages were upgraded.

发现在archlinux.org主页上有这个问题的解决方法:

http://www.archlinux.org/news/filesystem-upgrade-manual-intervention-required/

# pacman -S filesystem –force

Ok,然后

#pacman -Syu

成功升级。