python 2.7.9 反向移植到 trusty (14.04)

python 2.7.9 反向移植到 trusty (14.04)

我尝试反向移植Python 2.7.9生动可靠但是当 launchpad 构建这个包时出现构建错误。

我创建了我的反向移植:

backportpackage -d trusty -u ppa:splanquart/python http://archive.ubuntu.com/ubuntu/pool/main/p/python2.7/python2.7_2.7.9-1.dsc

我在 buildlog 底部遇到一个错误:

...
running python rtupdate hooks for python3.4...
running python post-rtupdate hooks for python3.4...
Setting up lsb-release (4.1+Debian11ubuntu6) ...
Processing triggers for libc-bin (2.19-0ubuntu6.4) ...
Checking correctness of source dependencies...
After installing, the following source dependencies are still unsatisfied:
dpkg-dev(inst 1.17.5ubuntu5.3 ! >= wanted 1.17.11) gcc(inst 4:4.8.2-1ubuntu6 ! >= wanted >4:4.9.2-1~) gcc-4.9(missing)
Source-dependencies not satisfied; skipping python2.7
******************************************************************************
Finished at 20150108-1652
...

我该如何解决这个问题?

我搜索了降级 gcc 和 dpkg-dev 依赖项版本的方法,但没有成功。为此,我清除了所有内容,然后...我通过以下方式下载软件包:

backportpackage -d trusty --dont-sign -w . http://archive.ubuntu.com/ubuntu/pool/main/p/python2.7/python2.7_2.7.9-1.dsc

我更改了版本构建依赖python2.7_2.7.9-1~ubuntu14.04.1.dsc

Build-Depends: debhelper (>= 5), dpkg-dev (>= 1.17.5), gcc (>= 4:4.8.2), quilt, autoconf, autotools-dev, lsb-release, sharutils, libreadline-dev, libtinfo-dev, libncursesw5-dev (>= 5.3), tk-dev, blt-dev (>= 2.4z), libssl-dev, zlib1g-dev, libbz2-dev, libexpat1-dev, libbluetooth-dev [linux-any], locales [!armel !avr32 !hppa !ia64 !mipsel], libsqlite3-dev, libffi-dev (>= 3.0.5) [!or1k !avr32], libgpm2 [linux-any], mime-support, netbase, net-tools, bzip2, libdb-dev (<< 1:6.0), libgdbm-dev, python:any, help2man, xvfb, xauth

在我通过以下方式上传到启动板后:

backportpackage -u  ppa:splanquart/python python2.7_2.7.9-1~ubuntu14.04.1.dsc

但我也遇到了同样的错误:

...
running python post-rtupdate hooks for python3.4...
Setting up lsb-release (4.1+Debian11ubuntu6) ...
Processing triggers for libc-bin (2.19-0ubuntu6.4) ...
Checking correctness of source dependencies...
After installing, the following source dependencies are still unsatisfied:
dpkg-dev(inst 1.17.5ubuntu5.3 ! >= wanted 1.17.11) gcc(inst 4:4.8.2-1ubuntu6 ! >= wanted 4:4.9.2-1~) gcc-4.9(missing)
Source-dependencies not satisfied; skipping python2.7
******************************************************************************
Finished at 20150109-1640
...

答案1

ppa:fkrull/deadsnakes-python2.7是最新版本的python2.7

sudo add-apt-repository ppa:fkrull/deadsnakes-python2.7
sudo apt-get update
sudo apt-get upgrade

它将升级 Python 到 2.7.10

答案2

看起来您的dpkg-devgcc包对于构建过程来说还不够新。

尝试:

sudo apt-get update
sudo apt-get install gcc4.9
sudo apt-get upgrade dpkg-dev

然后再次执行,backportpackage看看是否有所改善。由于构建过程似乎正在寻找 gcc 4.9,因此第二个命令

相关内容