最终还是抵不住诱惑败了一个Raspberry Pi回来,折腾了一两天这玩意就是性能差点其他方面还真不错。话说树莓派自带的raspbian是针对armv6架构CPU进行优化的debian发行版,支持硬浮点的armhf的性能多少会比armel好一些。
号称能硬解1080P的一个玩具不用上XBMC就太暴殄天物了,不过外面提供的XBMC大都是armel的deb,没法直接用,而用sudo apt-get install xbmc安装会得到如下报错:
01 | pi@raspberrypi ~ $ sudo apt-get install xbmc |
02 | Reading package lists... Done |
03 | Building dependency tree |
04 | Reading state information... Done |
05 | Some packages could not be installed. This may mean that you have |
06 | requested an impossible situation or if you are using the unstable |
07 | distribution that some required packages have not yet been created |
08 | or been moved out of Incoming. |
09 | The following information may help to resolve the situation: |
10 | The following packages have unmet dependencies: |
11 | xbmc : Depends: xbmc-bin (>= 2:11.0~git20120510.82388d5-1) but it is not installable |
12 | Depends: xbmc-bin (< 2:11.0~git20120510.82388d5-1.1~) but it is not installable |
13 | Recommends: python-qt3 but it is not installable |
14 | E: Unable to correct problems, you have held broken packages. |
查了一下资料,据说这是到2012-9-4时依然是一个没有解决的bug,不过除了等官方修复或者直接改用openelec、XBian之类的专用发行版之外还可以用下面的方法(其实就是改源和添加公钥):
1 | 1. 向 /etc/apt/sources.list里添加 deb ftp://ftp.deb-multimedia.org wheezy main non-free |
2 | 2. 执行 sudo apt-get update, 这时候会返回一些因为没有公钥无法验证的错误,如果你不是很有洁癖可以直接跳到最后一步直接安装xbmc |
3 | //针对有洁癖的人安装deb-multimedia-keyring |
4 | 3. sudo apt-get install deb-multimedia-keyring |
7 | 5. 现在可以通过sudo apt-get install xbmc 来安装XBMC啦 |
最后奉劝大家最好放弃在树莓派上通过源码编译出来这玩意…… 我挂了一个通宵十个多小时,结果最后直接报一错误,懒得整了……