安装`gedit-plugin`以降级版本的gedit
使用这些说明,我可以在ubuntu 16.04上运行gedit 3.10.4。
现在,我需要安装与gedit 3.10.4对应的gedit-plugins
版本。 消息来源在这里,但我无法让他们工作。
更确切地说,我做了:
dpkg: error processing package gedit-plugins (--install): dependency problems - leaving unconfigured Processing triggers for libglib2.0-0:amd64 (2.48.0-1ubuntu4) ... Errors were encountered while processing: gedit-plugins cd Downloads/ cd gedit-plugins-3.10.1/ ./autogen.sh
但我得到:
Configuration: Source code location: . Compiler: gcc Prefix: /usr/local Python Plugins Support: yes Plugins: bookmarks bracketcompletion charmap codecomment colorpicker colorschemer commander dashboard drawspaces joinlines multiedit smartspaces textsize wordcompletion Disabled plugins: synctex (dbus-python not found), terminal (vte not found), git (libgit2-glib not found) Note: you have to install these plugins into the same prefix as your gedit installation (probably /usr if you're using your distro packages, /usr/local if you have compiled it on your own).
所以这是我的问题:如何启动和运行gedit-plugins
? 特别是,我需要终端插件才能工作 。
PS我已经安装了libvte-dev
编辑(冬季静音的答案如下)
是的,我试过了。 这是我得到的:
Preparing to unpack gedit-plugins_3.10.1-1ubuntu2_amd64.deb ... Unpacking gedit-plugins (3.10.1-1ubuntu2) over (3.10.1-1ubuntu3) ... dpkg: dependency problems prevent configuration of gedit-plugins: gedit-plugins depends on python3.4; however: Package python3.4 is not installed. gedit-plugins depends on python3 (<< 3.5); however: Version of python3 on system is 3.5.1-3. gedit-plugins depends on gir1.2-gucharmap-2.90; however: Package gir1.2-gucharmap-2.90 is not installed. gedit-plugins depends on gir1.2-vte-2.90; however: Package gir1.2-vte-2.90 is not installed. gedit-plugins depends on gir1.2-zeitgeist-2.0; however: Package gir1.2-zeitgeist-2.0 is not installed.
我不得不发现构建过程并不那么容易解决。 但是我找到了另一种方法,让你可以启动并运行旧版本的gedit
和gedit-r-plugin
。
首先删除gedit编译和安装尝试的痕迹(分别更改路径以适合您的情况)。
cd ~/your build dir of gedit-plugins/ sudo make uninstall cd ~/your build dir of gedit/ sudo make uninstall
下一个命令将卸载最终现有的3.18.3版本的gedit
, gedit-dev
, gedit-plugins
和gedit-common
。
sudo apt-get remove gedit gedit-dev gedit-plugins gedit-common
最好在干净的单独目录中执行以下步骤。
现在为gedit-common 3.10.4
下载正确的依赖包并安装它。
wget http://mirrors.kernel.org/ubuntu/pool/main/g/gedit/gedit-common_3.10.4-0ubuntu13_all.deb sudo dpkg -i gedit-common_3.10.4-0ubuntu13_all.deb
然后下载正确的gedit 3.10.4
包并安装它
wget http://mirrors.kernel.org/ubuntu/pool/main/g/gedit/gedit_3.10.4-0ubuntu13_amd64.deb sudo dpkg -i gedit_3.10.4-0ubuntu13_amd64.deb
并下载适当的gedit-dev 3.10.4
包并安装它。
wget http://mirrors.kernel.org/ubuntu/pool/main/g/gedit/gedit-dev_3.10.4-0ubuntu13_amd64.deb sudo dpkg -i gedit-dev_3.10.4-0ubuntu13_amd64.deb
最后下载适当的gedit-plugins 3.10.1
包
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gedit-plugins/gedit-plugins_3.10.1-1ubuntu3_amd64.deb
我们需要解压缩这个下载的.deb文件,因为我们需要做两个更改(sudo keps包所有者完整)。
sudo dpkg-deb -R gedit-plugins_3.10.1-1ubuntu3_amd64.deb tmp
首先我们编辑tmp/DEBIAN/control
并将python3 (<< 3.5), python3 (>= 3.4~), python3.4
改为python3 (>= 3.5~), python3.5
。
sudo nano tmp/DEBIAN/control
然后我们编辑tmp/DEBIAN/postinst
并将py3compile -p gedit-plugins /usr/lib/x86_64-linux-gnu/gedit/plugins -V 3.4
更改为py3compile -p gedit-plugins /usr/lib/x86_64-linux-gnu/gedit/plugins -V 3.5
。
sudo nano tmp/DEBIAN/postinst
现在我们可以打包一个新的.deb文件。
sudo dpkg-deb -b tmp gedit-plugins_3.10.1-1ubuntu4_amd64.deb
并更改新.deb文件的所有权(用您的用户名替换用户名)
sudo chown username:username gedit-plugins_3.10.1-1ubuntu4_amd64.deb
现在终于安装了它。
sudo dpkg -i gedit-plugins_3.10.1-1ubuntu4_amd64.deb
现在我们下载适当的gedit-r-plugin 0.8.0.2
软件包并安装它。
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gedit-r-plugin/gedit-r-plugin_0.8.0.2-Gtk3-Python3-1ubuntu1_all.deb sudo dpkg -i gedit-r-plugin_0.8.0.2-Gtk3-Python3-1ubuntu1_all.deb
现在唯一剩下的就是保护这一切不被升级。
sudo apt-mark hold gedit-common gedit gedit-dev gedit-plugins gedit-r-plugin
您是否尝试下载为旧版本编译的正确版本的软件包并手动安装?
http://www.ubuntuupdates.org/package/core/trusty/universe/base/gedit-plugins for 3.10.1-1ubuntu2 from 14.04
http://www.ubuntuupdates.org/package/core/vivid/universe/base/gedit-plugins for 3.10.1-1ubuntu3 from 14.10
您可以使用图形安装程序或从终端安装它们
$ dpkg -i ~/Downloads/package.deb