我正在尝试让 XFApplet 在我的 Ubuntu 12.04 XFCE4 安装中工作。我尝试从存储库安装它。但是没有xfapplet
,apt-cache
而是得到了这个:
$ apt-cache search xfapplet
xfce4-goodies - enhancements for the Xfce4 Desktop Environment
因此我确保已安装 xfce4 好东西,它是:
$ sudo apt-get install xfce4-goodies
Reading package lists... Done
Building dependency tree
Reading state information... Done
xfce4-goodies is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 64 not upgraded.
好的,所以我进入面板添加一个新项目,但它当然不在那里:
顺便说一下,我已经完全安装了 GNOME!这是一个 Ubuntu 系统,不是 Xubuntu,当我从 11 升级到 12.04 时,我想要 XFCE 而不是 Gnome,但我从来没有卸载过 gnome。我甚至可以毫无问题地运行 Gnome classic,一切正常,所以这应该意味着所有依赖项都已存在。
所以我决定从源代码进行编译:(链接在底部) http://goodies.xfce.org/projects/panel-plugins/xfce4-xfapplet-plugin
好的,在配置时我得到了这个:
checking for libpanelapplet-2.0 >= 2.0.0... not found
*** The required package libpanelapplet-2.0 was not found on your system.
*** Please install libpanelapplet-2.0 (atleast version 2.0.0) or adjust
*** the PKG_CONFIG_PATH environment variable if you
*** installed the package in a nonstandard prefix so that
*** pkg-config is able to find it.
当然,跑步时apt-cache libpanelapplet
我什么也得不到,但是如果我跑步,apt-cache libpanel
我会得到:
$ apt-cache search libpanel
gir1.2-panelapplet-4.0 - GObject introspection for the GNOME Panel Applet library
gnome-panel-dbg - GNOME Panel and library for panel applets - debugging symbols
libpanel-applet-4-0 - library for GNOME Panel applets
libpanel-applet-4-dev - library for GNOME Panel applets - development files
libpanel-applet-4-doc - library for GNOME Panel applets - documentation files
因此我安装 4:
$ sudo apt-get install libpanel-applet-4-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libgconf2-dev libgconf2-doc libpanel-applet-4-doc
The following NEW packages will be installed:
libgconf2-dev libgconf2-doc libpanel-applet-4-dev libpanel-applet-4-doc
0 upgraded, 4 newly installed, 0 to remove and 64 not upgraded.
Need to get 326 kB of archives.
After this operation, 2,906 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://gt.archive.ubuntu.com/ubuntu/ precise/main libgconf2-dev i386 3.2.5-0ubuntu2 [118 kB]
Get:2 http://gt.archive.ubuntu.com/ubuntu/ precise/main libgconf2-doc all 3.2.5-0ubuntu2 [101 kB]
Get:3 http://gt.archive.ubuntu.com/ubuntu/ precise-updates/universe libpanel-applet-4-dev i386 1:3.4.1-0ubuntu1.1 [11.7 kB]
Get:4 http://gt.archive.ubuntu.com/ubuntu/ precise-updates/universe libpanel-applet-4-doc all 1:3.4.1-0ubuntu1.1 [96.3 kB]
Fetched 326 kB in 1s (210 kB/s)
Selecting previously unselected package libgconf2-dev.
(Reading database ... 386366 files and directories currently installed.)
Unpacking libgconf2-dev (from .../libgconf2-dev_3.2.5-0ubuntu2_i386.deb) ...
Selecting previously unselected package libgconf2-doc.
Unpacking libgconf2-doc (from .../libgconf2-doc_3.2.5-0ubuntu2_all.deb) ...
Selecting previously unselected package libpanel-applet-4-dev.
Unpacking libpanel-applet-4-dev (from .../libpanel-applet-4-dev_1%3a3.4.1-0ubuntu1.1_i386.deb) ...
Selecting previously unselected package libpanel-applet-4-doc.
Unpacking libpanel-applet-4-doc (from .../libpanel-applet-4-doc_1%3a3.4.1-0ubuntu1.1_all.deb) ...
Setting up libgconf2-dev (3.2.5-0ubuntu2) ...
Setting up libgconf2-doc (3.2.5-0ubuntu2) ...
Setting up libpanel-applet-4-dev (1:3.4.1-0ubuntu1.1) ...
Setting up libpanel-applet-4-doc (1:3.4.1-0ubuntu1.1) ...
太好了,配置仍然抱怨完全相同的未找到版本 2 的消息。我已经安装并正在运行版本 4:
$ whereis libpanel-applet-4
libpanel-applet-4: /usr/lib/libpanel-applet-4.so
有什么想法吗?我正在运行 XFCE4 4.8 版本。
答案1
问题实际上是 Xfapplet 被设计用于运行 GNOME2 小程序。由于没有适用于 GNOME3 的小程序(只有扩展和指示器),并且该插件本身近 6 年来没有更新过上游版本,因此没有理由为其维护软件包。因此,即使您通过安装 GNOME2 的旧软件包来实现这一点,也需要很长时间。