首頁>Ubuntu>source

我正在使用Ubuntu 20.04.我从Oracle網站下載了適用於Ubuntu 19.10 / 20.04的VirtualBox,然後使用: dpkg -i virtualbox-6.1_6.1.16-140961~Ubuntu~eoan_amd64.deb 在终端.現在,我需要安裝缺少的依赖項。

我怎麼知道依赖項是安全的? 他们来自哪裏? 它们来自Ubuntu官方儲存庫,VirtualBox還是某些第三方?

sudo apt-get -f的結果 :

Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  libfprint-2-tod1
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  libdouble-conversion3 libpcre2-16-0 libpython2-stdlib libpython2.7-minimal
  libpython2.7-stdlib libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5
  libqt5opengl5 libqt5printsupport5 libqt5svg5 libqt5widgets5 libqt5x11extras5
  libsdl1.2debian libxcb-xinerama0 libxcb-xinput0 python-is-python2 python2
  python2-minimal python2.7 python2.7-minimal qt5-gtk-platformtheme
  qttranslations5-l10n
Suggested packages:
  qt5-image-formats-plugins qtwayland5 python2-doc python-tk python2.7-doc
  binfmt-support
The following NEW packages will be installed
  libdouble-conversion3 libpcre2-16-0 libpython2-stdlib libpython2.7-minimal
  libpython2.7-stdlib libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5
  libqt5opengl5 libqt5printsupport5 libqt5svg5 libqt5widgets5 libqt5x11extras5
  libsdl1.2debian libxcb-xinerama0 libxcb-xinput0 python-is-python2 python2
  python2-minimal python2.7 python2.7-minimal qt5-gtk-platformtheme
  qttranslations5-l10n
0 to upgrade, 24 to newly install, 0 to remove and 0 not to upgrade.
1 not fully installed or removed.
Need to get 14.5 MB of archives.
After this operation, 62.2 MB of additional disk space will be used.
Do you want to continue? [Y/n]
最新回復
  • 5月前
    1 #

    所有由 apt-get -f install安裝的依赖項 只能从您的軟體源安裝,因此,如果您的任何軟體源不安全,則 sudo apt-get -f install 也是不安全的.如果是原始Ubuntu安裝,則仅啟用預設的Ubuntu儲存庫,然後 sudo apt-get -f install 這樣做是安全的,但是由於預設Ubuntu儲存庫中的軟體包不会相互冲突,因此在终端中通常不会在终端中顯示執行此命令的建議。

    apt 自動配置依赖項,打開终端,使用 cd更改目錄 到包含virtualbox-6.1_6.1.16-140961〜Ubuntu〜eoan_amd64.deb的目錄,然後執行以下命令

    sudo apt install ./virtualbox-6.1_6.1.16-140961~Ubuntu~eoan_amd64.deb
    

    代替使用 dpkg -i .這樣您就不必執行 sudo apt -f install 之後.格式為 sudo apt install ./package-name.deb的命令 自動安裝安裝.deb軟體包所需的所有依赖項軟體包.它也預設安裝推荐軟體包,但是apt可以選擇禁用為單个命令安裝推荐軟體包.還應註意,终端中的当前工作目錄應与包含package-name.deb的目錄相同,以便apt可以在当前工作目錄中找到package-name.deb。

  • drivers:聯想Legion 5 15IMH05H亮度控製問题
  • networking:網路print機在"設置>print機"下出現两次