xfce4不能升级

最大的社区版本,Ubuntu的发源地
回复
yangdawei.hit
帖子: 245
注册时间: 2015-01-02 15:32
系统: Debian

xfce4不能升级

#1

帖子 yangdawei.hit » 2015-10-07 17:16

系统:Debian Jessie
桌面:Xfce4 4.12

在应用菜单中的About Xfce中显示Xfce已经升级为4.12,但升级时总是显示:

代码: 全选

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  xfce4
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
安装xfce4显示:

代码: 全选

The following packages have unmet dependencies:
 xfce4 : Depends: xfwm4 (>= 4.12.0) but 4.10.1-3 is to be installed
E: Unable to correct problems, you have held broken packages.
安装xfwm4显示:

代码: 全选

The following packages have unmet dependencies:
 xfwm4 : Depends: libwnck22 (>= 1:2.22) but 2.30.7-2 is to be installed
E: Unable to correct problems, you have held broken packages.
查看libwnck22版本显示版本已经为2.30.7-2:

代码: 全选

dpkg -l | grep libwnck22
ii  libwnck22                             2.30.7-2                            amd64        Window Navigator Construction Kit - runtime files
请问如何解决这一问题。
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: xfce4不能升级

#2

帖子 vickycq » 2015-10-07 17:22

xfce 4.12 没进入 jessie / jessie-backports
没记错的话你的 xfce 4.12 是自行编译安装的,为何还通过软件源搞 xfce 的东西? :Faint
安装xfce4显示:xfce4 : Depends: xfwm4 (>= 4.12.0) but 4.10.1-3 is to be installed
这一步用的什么命令?

代码: 全选

dpkg --get-selections | grep hold
dpkg --get-selections | grep xfce
cat /etc/apt/sources.list
cat /etc/apt/sources.list.d/*
把结果全部复制贴上来

:Faint
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
yangdawei.hit
帖子: 245
注册时间: 2015-01-02 15:32
系统: Debian

Re: xfce4不能升级

#3

帖子 yangdawei.hit » 2015-10-07 17:50

xfce 4.12 没进入 jessie / jessie-backports
说来话长,我发现编译安装太费事,后来重装系统时加了xubuntu源:

代码: 全选

deb http://ppa.launchpad.net/xubuntu-dev/xfce-4.12/ubuntu trusty main
安装xfce4显示:xfce4 : Depends: xfwm4 (>= 4.12.0) but 4.10.1-3 is to be installed

这一步用的什么命令?

代码: 全选

sudo apt-get install xfce4

代码: 全选

dpkg --get-selections | grep hold
没有结果

代码: 全选

dpkg --get-selections | grep xfce
gtk2-engines-xfce				install
libxfce4ui-1-0					install
libxfce4ui-common				install
libxfce4ui-utils				install
libxfce4util-bin				install
libxfce4util-common				install
libxfce4util6					install
libxfce4util7					install
libxfcegui4-4					install
task-xfce-desktop				install
xfce-keyboard-shortcuts				install
xfce4						install
xfce4-appfinder					install
xfce4-artwork					install
xfce4-battery-plugin				install
xfce4-clipman					install
xfce4-clipman-plugin				install
xfce4-cpufreq-plugin				install
xfce4-cpugraph-plugin				install
xfce4-datetime-plugin				install
xfce4-dict					install
xfce4-diskperf-plugin				install
xfce4-fsguard-plugin				install
xfce4-genmon-plugin				install
xfce4-mailwatch-plugin				install
xfce4-mixer					install
xfce4-mount-plugin				install
xfce4-netload-plugin				install
xfce4-notes					install
xfce4-notes-plugin				install
xfce4-notifyd					install
xfce4-panel					install
xfce4-places-plugin				install
xfce4-power-manager				install
xfce4-power-manager-data			install
xfce4-quicklauncher-plugin			install
xfce4-screenshooter				install
xfce4-sensors-plugin				install
xfce4-session					install
xfce4-settings					install
xfce4-smartbookmark-plugin		install
xfce4-taskmanager				install
xfce4-terminal					install
xfce4-timer-plugin				install
xfce4-verve-plugin				install
xfce4-volumed					install
xfce4-wavelan-plugin				install
xfce4-weather-plugin				install
xfce4-whiskermenu-plugin		install
xfce4-xkb-plugin				        install
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: xfce4不能升级

#4

帖子 vickycq » 2015-10-07 18:04

混源会带来类似问题。
我提一个笨办法,用 /etc/apt/preferences 规定优先级,优先装 ubuntu ppa 的。

我着急出去不能帮你看,你自己看参考链接

格式类似于这样

代码: 全选

Package: *
    Pin: release o=, a=, n=
    Pin-Priority: 900
参考 http://ppa.launchpad.net/xubuntu-dev/xf ... ty/Release 来设置 o=, a=
Origin: LP-PPA-xubuntu-dev-xfce-4.12 (o=LP-PPA-xubuntu-dev-xfce-4.12)
Label: Xfce 4.12 packages
Suite: trusty (a=trusty)
Version: 14.04 (v=14.04)
Codename: trusty (n=trusty)
参考
https://wiki.debian.org/AptPreferences
http://jaqque.sbih.org/kplug/apt-pinning.html
https://wiki.debian.org/zh_CN/AptPreferences
man apt_preferences

另外要在 Jessie 装 Xfce 4.12 之前的帖子提到一个 Mepis(MX) 源可用,估计兼容性比 ubuntu ppa 好
上次由 vickycq 在 2015-10-07 19:14,总共编辑 2 次。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: xfce4不能升级

#5

帖子 poloshiao » 2015-10-07 18:12

https://packages.debian.org/search?suit ... ords=xfce4
如果沒有更好方法 但是又想體驗 4.12
把 jessie (stable) 升級為 stretch (testing)

升級前 先將 jessie (stable) 備存

如果硬盤有閒置空間或分割區
全新安裝 stretch (testing)
也是另一個選擇
yangdawei.hit
帖子: 245
注册时间: 2015-01-02 15:32
系统: Debian

Re: xfce4不能升级

#6

帖子 yangdawei.hit » 2015-10-07 22:12

感谢 vickycq 和poloshiao的指导。阅读了AptPreferences相关的知识,基本理解了它的意图和方法。关键还在于/etc/apt/preferences 的配置。只不过我填加了不稳定源后轻易完成了xfce4的完整安装,原来的更新问题也消失了。然后再dist-upgrade发现有相当多的软件也需要列新。估计这都是不稳定来带来的更新需求。我索性都做了更新。估计基本都升级到了不稳定版本。增加的源如下:

代码: 全选

deb http://http.debian.net/debian jessie-backports main contrib non-free
deb http://ftp.cn.debian.org/debian unstable main contrib non-free
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: xfce4不能升级

#7

帖子 vickycq » 2015-10-07 22:40

yangdawei.hit 写了:感谢 vickycq 和poloshiao的指导。阅读了AptPreferences相关的知识,基本理解了它的意图和方法。关键还在于/etc/apt/preferences 的配置。只不过我填加了不稳定源后轻易完成了xfce4的完整安装,原来的更新问题也消失了。然后再dist-upgrade发现有相当多的软件也需要列新。估计这都是不稳定来带来的更新需求。我索性都做了更新。估计基本都升级到了不稳定版本。增加的源如下:

代码: 全选

deb http://http.debian.net/debian jessie-backports main contrib non-free
deb http://ftp.cn.debian.org/debian unstable main contrib non-free
加 debian unstable 源,/etc/apt/preferences 就不能像楼上那样配置了,需要将 unstable 的优先级调低,使之低于 stable。
例如:http://serverfault.com/questions/22414/ ... om-testing

用 stable(jessie) 的好处是 可以节省一部分管理系统的精力用来干活。若是完全升级到 unstable,需要定期运行 dist-upgrade 跟上滚动发行的步伐,还会偶尔凭空出现故障。如unstable仓库8月初 / testing仓库9月初的 gcc5 大升级,依赖问题较多。

Debian testing/unstable 不是为滚动发行而生的,它们的终极目标是生产下一个stable。这一点和 Archlinux 不同。
[email protected] 写了: Breakage in Debian development branches is by design, on Arch is a booboo, maybe predictable but still a booboo.
来源 http://forums.debian.net/viewtopic.php?f=10&t=124556
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
yangdawei.hit
帖子: 245
注册时间: 2015-01-02 15:32
系统: Debian

Re: xfce4不能升级

#8

帖子 yangdawei.hit » 2015-10-07 22:49

幸好我不是程序员,只是追逐xfce4.12新功能的白丁。如果我现在去掉不稳定源,再次更新,会限制当前的不稳定更新吗?

另,我将ubuntu论坛rss订制于thunderbird中,这样便于收看论坛中的最新消息。这里还有两处不方便的地方:
1. 怎么样才能实现rss消息的过滤呢?
2. 在thunderbird中的网址链接打不开,这是怎么回事呢?
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: xfce4不能升级

#9

帖子 vickycq » 2015-10-07 23:15

yangdawei.hit 写了: ... 我填加了不稳定源 ... 然后再 dist-upgrade 发现有相当多的软件也需要列新 ... 我索性都做了更新 ...
那么你现在的系统应该是 unstable(sid) 了。看一下 /etc/issue 和 /etc/debian_version 的内容,还是 8.x 吗?

代码: 全选

cat /etc/issue
cat /etc/debian_version
如果是 stretch/sid,那么基本可以确定你现在的系统是 unstable(sid)。可以从 sources.list 删除 stable(jessie) 相关内容,只保留

代码: 全选

deb http://mirrors.ustc.edu.cn/debian/ unstable main non-free contrib
deb-src http://mirrors.ustc.edu.cn/debian/ unstable main non-free contrib
从此以后,每周执行 1-2 次 apt-get update && apt-get dist-upgrade,跟上更新。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: xfce4不能升级

#10

帖子 vickycq » 2015-10-07 23:30

如果你在 unstable 中经常遇到软件bug,可将 sources.list 中 unstable 换成 testing,然后等 testing 慢慢追上来 :-)
总体来讲 testing 的包落后 unstable 2周左右。
理论上一个包进入 unstable 后,若在2周内没有报告 release-critical bug,才会进入 testing。这使得 testing 遇到软件bug的机会比 unstable 小。但一旦遇到问题,修复也要等格外长的时间 (>=2周)。
testing 在以下时间段容易出现问题:
  • 即将冻结时。大量包想赶在冻结之前挤进 testing
  • 刚刚解除冻结时。大量包从 unstable 涌入testing
  • 涉及系统底层的大变动。如上个月的 gcc5 升级。
参考
https://wiki.debian.org/DebianUnstable
https://wiki.debian.org/DebianTesting
https://debian-handbook.info/browse/sta ... cycle.html
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: xfce4不能升级

#11

帖子 vickycq » 2015-10-08 1:34

yangdawei.hit 写了: 另,我将ubuntu论坛rss订制于thunderbird中,这样便于收看论坛中的最新消息。这里还有两处不方便的地方:
1. 怎么样才能实现rss消息的过滤呢?
2. 在thunderbird中的网址链接打不开,这是怎么回事呢?
1. 自带过滤器如何?
Screenshot_2015-10-08_01-20-24.png
2. 可能是默认浏览器没设置好?看看这一篇
http://askubuntu.com/a/199574
http://askubuntu.com/questions/130158/h ... n-chromium

打开 Preferences -> Advanced -> General -> Config Editor
找到 network.protocol-handler.app.http 的值,看是否为 x-www-browser
然后 ls -al /usr/bin/x-www-browser 看指向什么?
Screenshot_2015-10-08_01-32-00.png
3. 论坛 RSS 地址在哪?我怎么没找到 :What
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
回复