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!
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) ...
苍天啊!大地啊!可以啦!!!
后续,随便玩吧...............................