我在通过 pkg 更新我的 FreeBSD 10.0-RELEASE-p7 系统时遇到一些问题,当我运行 pkg Upgrade 时,我得到了令人担忧的冲突列表;我通常会担心它会删除多少内容,并简单地从这个过程中退出。
我已经遇到这个问题有一段时间了,我似乎找不到任何关于这个问题的文献,或者我如何调试它。当我在 #freebsd 中询问时,我得到的答复是它可能会在几天内消失。该问题现已持续数周。
[Tue 14/09/30 09:49 BST][pts/11][amd64/freebsd10.0/10.0-RELEASE-p7][5.0.5]
<dst502@aew6pc07:~>
zsh/3 1001 % sudo pkg update; sudo pkg upgrade;
Password:
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
Checking for upgrades (595 candidates): 100%
Checking integrity... done (2 conflicting)
pkg: Cannot solve problem using SAT solver:
cannot install package libreoffice~editors/libreoffice, remove it from request? [Y/n]: Y
cannot install package jpeg~graphics/jpeg, remove it from request? [Y/n]: Y
Checking integrity... done (1 conflicting)
pkg: Cannot solve problem using SAT solver:
cannot install package graphviz~graphics/graphviz, remove it from request? [Y/n]: Y
pkg: Cannot solve problem using SAT solver:
cannot install package open-motif~x11-toolkits/open-motif, remove it request? [Y/n]: Y
pkg: Cannot solve problem using SAT solver:
## Get scared and bail out at this point.
cannot install package gegl~graphics/gegl, remove it from request? [Y/n]: n
pkg: cannot solve job using SAT solver
Checking integrity... done (0 conflicting)
Your packages are up to date.
这是我用作桌面的系统,因此我安装了 LXDE 等。随着 ShellShock 的出现,这个问题变得越来越紧迫。
编辑/etc/pkg/FreeBSD.conf,根据@uzsolt的要求
# $FreeBSD: release/10.0.0/etc/pkg/FreeBSD.conf 258710 2013-11-28 14:24:26Z gjb $
FreeBSD: {
url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}
答案1
在手动升级各个软件包后,我偶然发现了与 jpeg-8_5 和 jpeg-turbo-1.3.0_2 的冲突,运行
sudo pkg install -f jpeg-turbo
吐出一大堆警告。然后我跑了:
sudo pkg upgrade
目前,大约 2 个月的升级正在“顺利”安装。
总之,手动升级各个软件包出现了一个冲突,我设法(无论好坏,您的里程可能会有所不同!)强制安装以获得修复。然后我运行了 pkg 升级。