debian、ubuntu:使用apt包管理器可能存在的問題! 讓新手望而卻步!

apt包管理器說好真好,說很差真很差。ubuntu

最近在debian九、ubuntu18.04上安裝oracle 10g 玩。oracle

怎麼都準備很差安裝環境。緣由就是i386構架體系的deb包總安裝不正確!less

baidu、google、bing一把,也沒見着相似的解決方法。無奈,本身瞎 JB 試!反正「死馬當活馬醫」!socket

 

--------------------ui

又是無心中。根據dpkg的錯誤提示信息:this

...
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的版本不一致麼!!google

從debian的官網,下載一個 i386和amd64 版本一致的 libuuid1包,祈禱能夠安裝!spa

God,bless me!code

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) ...

  蒼天啊!大地啊!能夠啦!!!orm

 

後續,隨便玩吧...............................

相關文章
相關標籤/搜索