使用gdebi去解决安装deb包的时候软件依赖问题

概述

我之前都是这样去安装一个deb包的,首先直接安装这个包shell

sudo dpkg -i bash

以后可能会有依赖问题,因此ide

sudo apt install -f ui

这样虽然能够解决一些问题可是还不够方便code

使用gdebi安装咱们的deb包

首先咱们安装gdebiorm

sudo apt install gdebi-coreblog

以后咱们能够尝试去安装一个包ip

➜  下载 sudo gdebi megacmd-xUbuntu_18.04_amd64.deb 
[sudo] bboysoul 的密码: 
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Reading state information... Done

MEGA Command Line Interactive and Scriptable Application
 MEGAcmd provides non UI access to MEGA services.
 It intends to offer all the functionality
 with your MEGA account via shell interaction.
 It features 2 modes of interaction
  - interactive. A shell to query your actions
  - scriptable. A way to execute commands from a shell/a script/another program.
您是否想安装这个软件包?[y/N]:

在安装以前它就把全部的依赖给列出来了,之后就能够不用两步走了get

欢迎关注Bboysoul的博客www.bboysoul.com Have Funcmd

相关文章
相关标签/搜索