首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >为gedit的降级版本安装“gedit-plugin`”

为gedit的降级版本安装“gedit-plugin`”
EN

Ask Ubuntu用户
提问于 2016-04-24 21:43:58
回答 1查看 3.2K关注 0票数 4

使用这些指令,我可以让gedit 3.10.4在ubuntu16.04上运行。

现在,我需要安装与gedit 3.10.4相对应的gedit-plugins版本。资料来源是这里,但我一直未能让他们开始工作。

更确切地说,我做到了:

代码语言:javascript
运行
复制
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

但我明白:

代码语言:javascript
运行
复制
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?特别是,我需要终端插件的工作。

我已经安装了libvte-dev

编辑(冬天的答案)

是的,我试过了。我得到的是:

代码语言:javascript
运行
复制
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.
EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2016-04-29 19:02:59

我不得不发现构建过程并不容易解决。但是,我为您找到了另一种方法,可以让旧版本的geditgedit-r-plugin启动并运行。

首先,删除gedit的跟踪、编译和安装尝试(分别更改路径以适应您的情况)。

代码语言:javascript
运行
复制
cd ~/your build dir of gedit-plugins/
sudo make uninstall
cd ~/your build dir of gedit/
sudo make uninstall

下一个命令卸载最终存在的3.18.3版本的geditgedit-devgedit-pluginsgedit-common

代码语言:javascript
运行
复制
sudo apt-get remove gedit gedit-dev gedit-plugins gedit-common

最好在一个干净的单独目录中执行以下步骤。

现在下载gedit-common 3.10.4的适当依赖程序包并安装它。

代码语言:javascript
运行
复制
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包并安装它

代码语言:javascript
运行
复制
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包并安装它。

代码语言:javascript
运行
复制
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

代码语言:javascript
运行
复制
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gedit-plugins/gedit-plugins_3.10.1-1ubuntu3_amd64.deb

我们需要解压缩这个下载的.deb文件,因为我们需要做两个更改(sudo keps包所有者完好无损)。

代码语言:javascript
运行
复制
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

代码语言:javascript
运行
复制
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

代码语言:javascript
运行
复制
sudo nano tmp/DEBIAN/postinst

现在我们可以打包一个新的.deb文件了。

代码语言:javascript
运行
复制
sudo dpkg-deb -b tmp gedit-plugins_3.10.1-1ubuntu4_amd64.deb

并更改新.deb文件的所有权(用用户名替换用户名)

代码语言:javascript
运行
复制
sudo chown username:username gedit-plugins_3.10.1-1ubuntu4_amd64.deb

现在终于安装好了。

代码语言:javascript
运行
复制
sudo dpkg -i gedit-plugins_3.10.1-1ubuntu4_amd64.deb

现在我们下载适当的gedit-r-plugin 0.8.0.2包并安装它。

代码语言:javascript
运行
复制
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 

现在只剩下一件事,就是保护这一切不被升级。

代码语言:javascript
运行
复制
sudo apt-mark hold gedit-common gedit gedit-dev gedit-plugins gedit-r-plugin
票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/762079

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档