[Internal testing communication] 如何搭建 treeland 代码测试环境? Resolved
Tofloor
poster avatar
guyuming
deepin
2025-02-18 13:21
Author

我装了25preview, 设置了treeland.

我想看一下 treeland的源码,就安装了 build-essential, git, 然后

git clone https://github.com/linuxdeepin/treeland.git --recursive

cd treeland

然后我安装依赖项的时候就报错了:

guyuming@guyuming-PC:~/treeland$ sudo apt-get build-dep .
Note: Immutable system takes over this operation ...
Preparing immutable build environment...
Note, using directory '/build-dep-tmp/treeland' to get the build dependencies
Reading package lists...
Building dependency tree...
Reading state information...
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:
libtiff-dev : Depends: libtiff6 (= 4.5.1+git230720-1deepin0) but 4.5.1+git230720-5 is to be installed
E: Unable to correct problems, you have held broken packages.
Error: failed to call exec command: failed to build with cumulative mode: failed to execute function: failed to prepare Debian packages: failed to execute command: unmet dependencies
guyuming@guyuming-PC:~/treeland$

这个如何解决?有没有配置deepin代码测试环境的指南?

apt search treeland 返回的结果看是 0.5.17 版, 我git checkout 0.5.17 后,sudo apt-get build-dep . 还是同样的报错

Reply Favorite View the author
All Replies
guyuming
deepin
2025-02-18 18:27
#1

按DeepSeek-r1的建议运行下面命令 强制降级 就可以了:

sudo apt-get install libtiff6=4.5.1+git230720-1deepin0

不过DeepSeek给的方案一是卸载 libtiff6. 我试过发觉自动卸载了一堆和deepin桌面相关的包,包括终端模拟器,以至我后来不得不重装了整个 25 preview系统:

  1. 首先,卸载当前安装的 libtiff6
    bash

    复制

    sudo apt-get remove libtiff6
    
  2. 安装指定版本的 libtiff6
    bash

    复制

    sudo apt-get install libtiff6=4.5.1+git230720-1deepin0
    
  3. 然后安装 libtiff-dev
    bash

    复制

    sudo apt-get install libtiff-dev
    
Reply View the author
New Thread

Popular Events

More
国际排名
WHLUG