需要glibc2.25而deepin stable用的2.24,unstable又跑不起来,求救!
Tofloor
poster avatar
CrystalRays
deepin
2019-12-07 01:03
Author
本帖最后由 crystalrays 于 2019-12-6 17:10 编辑

因为项目需要,在deepin里安装cutter(https://github.com/radareorg/cutter),但是15.9.2beta之后的deepin迁移到了stable仓库,glibc版本是2.24
运行cutter报错需要glibc 2.25.

于是我修改apt源,lion改为panda,切换到unstable仓库,unstable的glibc是2.27版本,sudo apt update,sudo apt-get dist-upgrade 后虽然cutter能用了,但是一旦锁屏输入密码就没有任何反应,一旦关机再开机就直接卡在了logo界面。

折腾好几天还是搞不定,严重拖慢了进度,感觉自己要和deepin说再见了。。。。

有大佬能帮助一下吗
cutter报错如下:
/home/deepin/Desktop/Cutter-v1.9.0-x64.Linux.AppImage: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /home/deepin/Desktop/Cutter-v1.9.0-x64.Linux.AppImage)
/home/deepin/Desktop/Cutter-v1.9.0-x64.Linux.AppImage: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /tmp/.mount_CutterkxX2tH/usr/bin/../lib/libr_util.so)


Reply Favorite View the author
All Replies
avatar
liixianyua
deepin
2019-12-07 01:10
#1
用docker?
Reply View the author
avatar
CrystalRays
deepin
2019-12-07 01:20
#2

那我是不是需要把整个项目都放在docker里跑?
项目要调用cutter,但同时也用到了docker
docker里可以跑docker吗?
Reply View the author
avatar
ghostry
deepin
2019-12-07 01:21
#3
上容器吧,这种依赖问题。很难搞。

命令行用docker,lxd,图形的用flatpak,APPimage什么的。
Reply View the author
avatar
Feng Yu
deepin
2019-12-07 01:39
#4
glibc是系统底层的依赖,不能动,如果你的软件对glibc的依赖版本非常高,只好用隔离环境了,比如docker这种,或者看看有没有人提供snap或者flatpak,这都是隔离环境
Reply View the author
avatar
ghostry
deepin
2019-12-07 01:42
#5
https://bbs.deepin.org/post/186403
那我是不是需要把整个项目都放在docker里跑?
项目要调用cutter,但同时也用到了docker
docker里可以跑do ...

docker里跑docker那性能。不敢想。

不过docker里边可以连到外面控制外面的docker。
Reply View the author
avatar
摇摆哥
deepin
2019-12-07 09:35
#6
本帖最后由 supermew 于 2019-12-7 04:24 编辑

你可以自己编译一下 glibc , 用于测试就行了。
Reply View the author
avatar
摇摆哥
deepin
2019-12-07 09:37
#7
本帖最后由 supermew 于 2019-12-7 04:46 编辑

或者, 通过在 sources.lists 中再添加进 unstable 版的源, 或者 其他版本的源, 只要源中含有 glibc > 2.25 的。 直接安装就行了。再说了, 要用 clutter, deepin的源里面有, 只不过版本有点旧而已。
Reply View the author
avatar
摇摆哥
deepin
2019-12-07 13:17
#8
本帖最后由 supermew 于 2019-12-7 06:58 编辑

a. 在  /etc/apt/source.lists.d/  文件夹下面创建 ubuntu-disco-main.list 文件。其内容为:
  1. # ubuntu-disco-main.list
  2. # deb http://cz.archive.ubuntu.com/ubuntu]http://cz.archive.ubuntu.com/ubuntu disco main
  3. deb http://mirrors.aliyun.com/ubuntu/]http://mirrors.aliyun.com/ubuntu/ disco main
  4. deb-src http://mirrors.aliyun.com/ubuntu/]http://mirrors.aliyun.com/ubuntu/ disco main
Copy the Code
并将阿里云的ubuntu 的镜像源写进去;
b 再执行

  1. sudo apt-get update
  2. sudo apt-get install libc6
Copy the Code


Reply View the author
avatar
CrystalRays
deepin
2020-04-18 19:00
#9
https://bbs.deepin.org/post/186403
a. 在  /etc/apt/source.lists.d/  文件夹下面创建 ubuntu-disco-main.list 文件。其内容为:
并将阿里云的 ...

读题要仔细,我有试过换源,新版glibc会导致系统异常。。。
现在换v20了,没有问题了
Reply View the author