ubuntu忽略安裝一些依賴

  • 2019 年 11 月 22 日
  • 筆記

下載了deep-wine的非官方版,安裝了微信,結果每次apt install都會報這個依賴錯誤,建議我刪除這個微信:

The following packages have unmet dependencies:   deepin.com.wechat:i386 : Depends: deepin-wine:i386 (>= 2.18-19)   libinput-tools : Depends: python3-evdev but it is not going to be installed                    Depends: python3-pyudev but it is not going to be installed

誰要你管。我就喜歡用這個版本。 解決方案:

sudo dpkg --ignore-depends=deepin-wine:i386 -i deepin.com.wechat_2.6.8.65deepin0_i386.deb

這時還沒完:

sudo vi /var/lib/dpkg/status  # 搜索wechat  # 把依賴強制從2.18-19改為2.18-12

大功告成,沒有再建議我刪這個wechat了:

sudo apt --fix-broken install  Reading package lists... Done  Building dependency tree  Reading state information... Done  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.