2024年4月2日发(作者:)

pacman更新时相关问题

pacman 更新时相关问题

pacman -Syu

:: Synchronizing error: failed to update

core (no servers configured for repository) error: failed to update

extra (no servers configured for repository) error: failed to

update community (no servers configured for repository) error:

failed to synchronize any databases 解决:

/etc/pacman.d/mirrorlist 默认没有选择镜像源 china前面 #去掉再

运行 pacman -Syu

:: The following packages should be upgraded first :

pacman :: Do you want to cancel the current operation :: and

upgrade these packages now [Y/n] 默认是Y

looking Targets

(xxx) : linux-api-headers-3.3.1 xxxxx xxxx

Proceed with installation[Y/n]

下载之后安装时又报错

error: failed to commit transaction (conflicting files) glibc:

/usr/bin/tzselect exists in filesystem glibc: /usr/sbin/tdump exists

in filesystem glibc: /usr/sbin/zic exists in filesystem Errors

occurred, no packages were upgraded.

解决: 只要在 :: and upgrade these packages now [Y/n] 选n

装后再报两个错 filesystem: /etc/mtab exists in filesystem

initscripts: /etc/profile.d/ exists in filesystem 解决: 1.

pacman -S filesystem –force 再 pacman -Syu 2. 改名下

pacman -S XXXXXX error: could

Failed

not

to

open file

open /var/lib/pacman/sync/:

'/var/lib/pacman/sync/' error: could not open file

/var/lib/pacman/sync/: Failed to open

'/var/lib/pacman/sync/' error: could not open file

/var/lib/pacman/sync/: Failed to open

'/var/lib/pacman/sync/' error: could not

open file /var/lib/pacman/sync/: Failed to open

'/var/lib/pacman/sync/' error: could not open file

/var/lib/pacman/sync/:

/var/lib/pacman/sync/:

/var/lib/pacman/sync/:

file /var/lib/pacman/sync/:

Failed

Failed

Failed

Failed

to

to

to

to

open

open

open

open

'/var/lib/pacman/sync/' error: could not open file

'/var/lib/pacman/sync/' error: could not open file

'/var/lib/pacman/sync/' error: could not open

'/var/lib/pacman/sync/' error: target not found: 解决:

pacman -Syy