deepin15编译android6.0碰到无法安装libreadline6-dev:i386
Tofloor
poster avatar
177******80
deepin
2017-12-06 15:30
Author
各位专家好,我在编译android 6.0源码的时候,碰到一个问题:
需要安装一个组件libreadline6-dev:i386

尝试如下,
sudo apt-get install python-software-properties
sudo apt-get install software-properties-common
sudo apt-get update
sudo apt-get install libreadline6-dev:i386
输出安装不了的信息
====================================================
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libreadline6-dev:i386 : Depends: libreadline6:i386 (= 6.3-8+b4) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
=====================================================

没有这个组件,会最后导致项目编译出来的模拟器镜像无法运行,请问各位专家如何解决这个问题呢?

Reply Favorite View the author
All Replies
1 / 2
To page
avatar
shamine
deepin
2017-12-06 16:32
#1
应该就你一个人吧这里 在deepin编译安卓源码
Reply View the author
avatar
DebuggerX
deepin
2017-12-06 18:46
#2
本帖最后由 debuggerx 于 2017-12-6 10:48 编辑

没看懂你到底想干什么……前两行增加ppa支持有什么意义么?
而且libreadline6-dev:i386 算是老问题了,国内也有一堆教程,虽然有不少是误打误撞的瞎搞。。上游debian那边的讨论:
Debian Bug report logs - #693248 libreadline6-dev: failed to install libreadline6-dev:i386 on amd64

另外可以参考论坛之前的帖子:
https://bbs.deepin.org/post/36786
Reply View the author
avatar
iminto
deepin
2017-12-06 19:03
#3
换  Ubuntu吧,deepin不适合用于开发.看报错是32位的依赖安装不上去

主要是一个是deepin魔改了一些东西,再则debian sid的依赖关系也有问题
Reply View the author
avatar
HualetWang
deepin
2017-12-06 19:53
#4
我试了下单独安装 libreadline6:i386 没有什么问题,可能是你系统里面有其他包导致依赖问题,或者有没有加什么PPA之类的?

试试 sudo apt install  libreadline6:i386 看看会报什么错?
Reply View the author
avatar
slowstart
deepin
2017-12-06 20:27
#5
试试sudo apt install  lib32readline6-dev看看能不能代替?
Reply View the author
avatar
Island
deepin
2017-12-06 21:29
#6
http://snapshot.debian.org/package/readline6/6.3-8/   6.3-9版本上游已经移除了对dev支持
Reply View the author
avatar
177******80
deepin
2017-12-07 02:17
#7
https://bbs.deepin.org/post/149671
我试了下单独安装 libreadline6:i386 没有什么问题,可能是你系统里面有其他包导致依赖问题,或者有没有加 ...

您好,单独安装这个OK的。
sk@pc:~$ sudo apt install  libreadline6:i386
[sudo] password for sk:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following NEW packages will be installed:
  libreadline6:i386
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 147 kB of archives.
After this operation, 388 kB of additional disk space will be used.
Get:1 http://packages.deepin.com/deepin panda/main i386 libreadline6 i386 6.3-9 [147 kB]
Fetched 147 kB in 0s (427 kB/s)      
Selecting previously unselected package libreadline6:i386.
(Reading database ... 173601 files and directories currently installed.)
Preparing to unpack .../libreadline6_6.3-9_i386.deb ...
Unpacking libreadline6:i386 (6.3-9) ...
Processing triggers for libc-bin (2.24-12) ...
Setting up libreadline6:i386 (6.3-9) ...
Processing triggers for libc-bin (2.24-12) ...
Reply View the author
avatar
177******80
deepin
2017-12-07 02:19
#8
https://bbs.deepin.org/post/149671
试试sudo apt install  lib32readline6-dev看看能不能代替?

您好,不行的。
Reply View the author
avatar
177******80
deepin
2017-12-07 02:20
#9
https://bbs.deepin.org/post/149671
应该就你一个人吧这里 在deepin编译安卓源码

是的,应该就只有我。但因为crossover的原因,我还是想用deepin的。
Reply View the author
avatar
177******80
deepin
2017-12-07 02:26
#10
https://bbs.deepin.org/post/149671
换  Ubuntu吧,deepin不适合用于开发.看报错是32位的依赖安装不上去

主要是一个是deepin魔改了一些东西,再 ...

您好,还是想再试试。ubuntu?刚从哪边过来,没有deepin的crossover优化,用不了各种win软件,删除了。
Reply View the author
avatar
177******80
deepin
2017-12-07 02:28
#11
https://bbs.deepin.org/post/149671
没看懂你到底想干什么……前两行增加ppa支持有什么意义么?
而且libreadline6-dev:i386 算是老问题了,国内 ...

您好,你说的,

另外可以参考论坛之前的帖子:
deepin15.1编译android 6.0源码出错”
这个人没有上网仔细查,有解决方案,我已经照着解决了这个问题,项目已经完全编译成功了。只是最后模拟器跑不起来。
Reply View the author
avatar
177******80
deepin
2017-12-07 02:36
#12
https://bbs.deepin.org/post/149671
http://snapshot.debian.org/package/readline6/6.3-8/   6.3-9版本上游已经移除了对dev支持

您好,好像这伙人解决这个bug的方法就是直接移除,很无语。。我不是专门做linux PC系统的,能否在本机上加回来呢?
Reply View the author
avatar
DebuggerX
deepin
2017-12-07 02:49
#13
https://bbs.deepin.org/post/149671
您好,你说的,

另外可以参考论坛之前的帖子:

编译通过那就和依赖包没关系了啊,模拟器跑不起来那应该贴模拟器的启动报错不是么……
Reply View the author
avatar
177******80
deepin
2017-12-07 06:52
#14
https://bbs.deepin.org/post/149671
编译通过那就和依赖包没关系了啊,模拟器跑不起来那应该贴模拟器的启动报错不是么…… ...

您好,模拟器报错和正常运行信息差别,是多了最后这一行信息,就是哪句 “Segmentation fault”,其他的和正常启动运行都一样:
emulator: WARNING: system partition size adjusted to match image file (1536 MB > 200 MB)
emulator: WARNING: data partition size adjusted to match image file (550 MB > 200 MB)

Creating filesystem with parameters:
    Size: 69206016
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 4224
    Inode size: 256
    Journal blocks: 1024
    Label:
    Blocks: 16896
    Block groups: 1
    Reserved block group size: 7
Created filesystem with 11/4224 inodes and 1302/16896 blocks
Segmentation fault  //就多出这一句。
Reply View the author
avatar
177******80
deepin
2017-12-07 07:00
#15
https://bbs.deepin.org/post/149671
我试了下单独安装 libreadline6:i386 没有什么问题,可能是你系统里面有其他包导致依赖问题,或者有没有加 ...

您好,您可能看错了,我说是libreadline6-dev:i386 不是libreadline6:i386,libreadline6:i386安装是没问题,但完全和libreadline6-dev:i386 不是一样东西,今晚我又编译了3个半小时,这个库没用的。但还是谢谢回复呀  
Reply View the author
avatar
DebuggerX
deepin
2017-12-07 20:18
#16
https://bbs.deepin.org/post/149671
您好,模拟器报错和正常运行信息差别,是多了最后这一行信息,就是哪句 “Segmentation fault”,其他的 ...

这个段错误不出意外是模拟器本身报出来的,所以现在应该解决emulator的问题,否则不管你再编译几遍都是一样的。
要弄清楚,那几个img镜像是编译出来的结果,而模拟器却是git直接拉过来的二进制程序。毕竟6.0源码里带的模拟器很老了,新一点的系统跑不起来很正常。
Reply View the author
avatar
Island
deepin
2017-12-07 21:38
#17
我在7楼已经说了旧版本下载地址,你可以试试http://snapshot.debian.org/package/readline6/6.3-8/  
Reply View the author
avatar
177******80
deepin
2017-12-08 00:19
#18
https://bbs.deepin.org/post/149671
这个段错误不出意外是模拟器本身报出来的,所以现在应该解决emulator的问题,否则不管你再编译几遍都是一 ...

您好,这套代码是在ubuntu 16.04 和manjaro17.0上都试过的,一样的编译启动命令方法。。。
Reply View the author
avatar
177******80
deepin
2017-12-08 00:52
#19
https://bbs.deepin.org/post/149671
我在7楼已经说了旧版本下载地址,你可以试试http://snapshot.debian.org/package/readline6/6.3-8/   ...

真抱歉,这个贴有好几个网友在帮忙,看错了,好的我试一试,谢谢。
Reply View the author
avatar
177******80
deepin
2017-12-08 17:06
#20
https://bbs.deepin.org/post/149671
这个段错误不出意外是模拟器本身报出来的,所以现在应该解决emulator的问题,否则不管你再编译几遍都是一 ...

您说的方向对了,昨天分析了很久,才发现最后卡住的这个问题,还真是和模拟器相关的,和代码已经没有关系了,原因是deepin或者说debian,很早就移除了一个运行时库,导致模拟器在准备加载画面时,没有合适对应的库处理,直接闪退,留下这个段错误,非常感谢您的耐心指导,现在编译和运行已经完全跑通了。
Reply View the author
1 / 2
To page