页次: 1
以前安装过kde桌面,只是简单的卸载pacman -R kde,现在打算重新使用,安装时出现些问题,提示很多文件已存在,例如:
kdewebdev-klinkstatus: /usr/share/doc/kde/html/en/klinkstatus/results-settings.png exists in filesystem
kdewebdev-klinkstatus: /usr/share/doc/kde/html/en/klinkstatus/screenshot.png exists in filesystem
kdewebdev-klinkstatus: /usr/share/icons/hicolor/128x128/apps/klinkstatus.png exists in filesystem
kdewebdev-klinkstatus: /usr/share/icons/hicolor/16x16/apps/klinkstatus.png exists in filesystem
kdewebdev-klinkstatus: /usr/share/icons/hicolor/22x22/apps/klinkstatus.png exists in filesystem
kdewebdev-klinkstatus: /usr/share/icons/hicolor/32x32/apps/klinkstatus.png exists in filesystem
kdewebdev-klinkstatus: /usr/share/icons/hicolor/48x48/apps/klinkstatus.png exists in filesystem
kdewebdev-klinkstatus: /usr/share/icons/hicolor/64x64/apps/klinkstatus.png exists in filesystem
kdewebdev-klinkstatus: /usr/share/kde4/services/klinkstatus_automation.desktop exists in filesystemkdewebdev-klinkstatus: /usr/share/kde4/services/klinkstatus_part.desktop exists in filesystem
kdewebdev-klinkstatus: /usr/share/kde4/services/krossmoduleklinkstatus.desktop exists in filesystem
等等。
无法安装,可否完全卸载kde桌面,包括安装配置文件等,再重新安装呢?
离线
pacman -Rsn kde 这样试试?
离线
不行,提示error: target not found: kde.
补充:前面的问题最后提示是:Errors occurred, no packages were upgraded.
--------------xiexie
离线
刚才在官网pacman wiki手册上看到:
“ASIDE: Taken from https://bbs.archlinux.org/viewtopic.php?id=56373 by Misfit138.
error: could not prepare transaction
error: failed to commit transaction (conflicting files)
package: /path/to/file exists in filesystem
Errors occurred, no packages were upgraded.
Why this is happening: pacman has detected a file conflict, and by design, will not overwrite files for you. This is a design feature, not a flaw.
The problem is usually trivial to solve. A safe way is to first check if another package owns the file (pacman -Qo /path/to/file). If the file is owned by another package, file a bug report. If the file is not owned by another package, rename the file which 'exists in filesystem' and re-issue the update command. If all goes well, the file may then be removed.
If you had installed a program manually without using pacman or a frontend, you have to remove it and all its files and reinstall properly using pacman.
Every installed package provides /var/lib/pacman/local/$package-$version/files file that contains metadata about this package. If this file gets corrupted - is empty or missing - it results in "file exists in filesystem" errors when trying to update the package. Such an error usually concerns only one package and instead of manually renaming and later removing all the files that belong to the package in question, you can run pacman -S --force $package to force pacman to overwrite these files.
Do not run pacman -Syu --force.”
即,可以通过pacman -S package_name --force $package,可以解决问题。[已验证]
最近编辑记录 dabin (2014-06-01 15:11:07)
离线
kde 不是单独的软件包,要完全删除的话,用 pacman -Q |grep kde 找到所有 kde 相关软件包进行删除。
离线
页次: 1