随笔 - 746  文章 - 0  评论 - 39  阅读 - 79万

debian、ubuntu:使用apt包管理器可能存在的问题! 让新手望而却步!

apt包管理器说好真好,说不好真不好。

最近在debian9、ubuntu18.04上安装oracle 10g 玩。

怎么都准备不好安装环境。原因就是i386构架体系的deb包总安装不正确!

baidu、google、bing一把,也没见着类似的解决方法。无奈,自己瞎 JB 试!反正“死马当活马医”!

 

--------------------

又是无意中。根据dpkg的错误提示信息:

复制代码
...
dpkg: error processing package libuuid1:i386 (--install): package libuuid1:i386 2.29.2-1 cannot be configured because libuuid1:amd64 is at a different version (2.29.2-1+deb9u1) dpkg: also configuring 'libuuid1:i386' (required by 'libsm6:i386') dpkg: error processing package libuuid1:i386 (--install): package libuuid1:i386 2.29.2-1 cannot be configured because libuuid1:amd64 is at a different version (2.29.2-1+deb9u1) dpkg: also configuring 'libuuid1:i386' (required by 'libsm6:i386') dpkg: error processing package libuuid1:i386 (--install): package libuuid1:i386 2.29.2-1 cannot be configured because libuuid1:amd64 is at a different version (2.29.2-1+deb9u1) dpkg: also configuring 'libuuid1:i386' (required by 'libsm6:i386') dpkg: error processing package libuuid1:i386 (--install): package libuuid1:i386 2.29.2-1 cannot be configured because libuuid1:amd64 is at a different version (2.29.2-1+deb9u1)
...
复制代码

这不是说“libuuid1” i386和amd64的版本不一致么!!

从debian的官网,下载一个 i386和amd64 版本一致的 libuuid1包,祈祷可以安装!

God,bless me!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
root@debian9:~# apt-get -f install
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  libsm6:i386 libuuid1:i386 libxt6:i386
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 657 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 25454 files and directories currently installed.)
Removing libxt6:i386 (1:1.1.5-1) ...
Removing libsm6:i386 (2:1.2.2-1+b3) ...
Removing libuuid1:i386 (2.29.2-1) ...
Setting up libuuid1:amd64 (2.29.2-1+deb9u1) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
W: APT had planned for dpkg to do more than it reported back (6 vs 10).
   Affected packages: libuuid1:amd64
root@debian9:~# apt-get -f install
Reading package lists... Done
Building dependency tree      
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@debian9:~# apt-get install ./libuuid1_2.29.2-1_amd64.deb
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Note, selecting 'libuuid1' instead of './libuuid1_2.29.2-1_amd64.deb'
Recommended packages:
  uuid-runtime
The following packages will be DOWNGRADED:
  libuuid1
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
Need to get 70.0 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.ustc.edu.cn/debian stretch/main amd64 libuuid1 amd64 2.29.2-1 [70.0 kB]
Fetched 70.0 kB in 0s (291 kB/s)
dpkg: warning: downgrading libuuid1:amd64 from 2.29.2-1+deb9u1 to 2.29.2-1
(Reading database ... 25439 files and directories currently installed.)
Preparing to unpack .../libuuid1_2.29.2-1_amd64.deb ...
Unpacking libuuid1:amd64 (2.29.2-1) over (2.29.2-1+deb9u1) ...
Setting up libuuid1:amd64 (2.29.2-1) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
root@debian9:~# apt-get -f install
Reading package lists... Done
Building dependency tree      
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 
root@debian9:~# dpkg -l |grep uuid
ii  libuuid1:amd64                2.29.2-1                       amd64        Universally Unique ID library
root@debian9:~# apt-get install ./libuuid1_2.29.2-1_i386.deb
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Note, selecting 'libuuid1:i386' instead of './libuuid1_2.29.2-1_i386.deb'
The following additional packages will be installed:
  uuid-runtime
The following NEW packages will be installed:
  libuuid1:i386 uuid-runtime
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 153 kB of archives.
After this operation, 268 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.ustc.edu.cn/debian stretch/main amd64 uuid-runtime amd64 2.29.2-1 [82.5 kB]
Get:2 http://mirrors.ustc.edu.cn/debian stretch/main i386 libuuid1 i386 2.29.2-1 [71.0 kB]
Fetched 153 kB in 0s (307 kB/s)    
Selecting previously unselected package uuid-runtime.
(Reading database ... 25439 files and directories currently installed.)
Preparing to unpack .../uuid-runtime_2.29.2-1_amd64.deb ...
Unpacking uuid-runtime (2.29.2-1) ...
Selecting previously unselected package libuuid1:i386.
Preparing to unpack .../libuuid1_2.29.2-1_i386.deb ...
Unpacking libuuid1:i386 (2.29.2-1) ...
Setting up libuuid1:i386 (2.29.2-1) ...
Setting up uuid-runtime (2.29.2-1) ...
Adding group `uuidd' (GID 111) ...
Done.
Warning: The home dir /run/uuidd you specified can't be accessed: No such file or directory
Adding system user `uuidd' (UID 107) ...
Adding new user `uuidd' (UID 107) with group `uuidd' ...
Not creating home directory `/run/uuidd'.
Created symlink /etc/systemd/system/sockets.target.wants/uuidd.socket → /lib/systemd/system/uuidd.socket.
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for systemd (232-25+deb9u2) ...

  苍天啊!大地啊!可以啦!!!

 

后续,随便玩吧...............................

 

posted on   jinzhenshui  阅读(6794)  评论(0编辑  收藏  举报
编辑推荐:
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 【杭电多校比赛记录】2025“钉耙编程”中国大学生算法设计春季联赛(1)
历史上的今天:
2012-05-17 bat、cmd 批处理中(或 DOS环境)的特殊字符

点击右上角即可分享
微信分享提示