While compiling from source does not differ very much between distributions (except for installation of build dependencies), a few different guides are available in this wiki. HOW-TO compile XBMC for Linux from source code; HOW-TO compile XBMC for Linux on Debian/Ubuntu - This is a tutorial on how to compile and install Kodi on Debian and Ubuntu. Reconfigure Installed Package in Debian and Ubuntu. If you have already installed a package, for instance phpmyadmin, you can reconfigure it by passing the package name to dpkg-reconfigure as shown. $ sudo dpkg-reconfigure phpmyadmin Once you have run the command above, you should be able to start reconfiguring phpmyadmin as shown in the following screenshot.
![Slitaz Install Debian Package Ubuntu Slitaz Install Debian Package Ubuntu](https://xakep.ru/wp-content/uploads/2015/05/1431937734_dd69_slitaz_install_step3.png)
Installing DEB packages with DPKG:
dpkg is a package manager for Debian and all the Debian based operating systems such as Ubuntu, Linux Mint etc. dpkg can install packages from DEB files. But there is a problem. dpkg won’t resolve the package dependencies automatically. You will have to manually download each DEB files and install it in order. But there is a solution to this problem which we will see in this section.
Let’s say, you want to install the DEB package file filezilla_3.28.0-1_amd64.deb which is in the ~/Downloads directory.
To install the DEB package with DPKG, run the dpkg command as follows:
$ sudodpkg-i ~/Downloads/filezilla_3.28.0-1_amd64.deb
As you can see, DPKG can’t resolve package dependencies automatically. So, the package installation failed. If the package did not depend on any other packages, then the installation would’ve been successful.
Now, to resolve the dependency problems, run the following command:
As you can see, the dependency packages are marked for installation as these are available in the official package repository of Ubuntu. Now, to confirm the installation, press y and then press <Enter>.
The package should be installed correctly along with all the dependencies.
Installing DEB Packages with APT Package Manager:
You can install DEB package files with the APT package manager. APT package manager is a very popular package manager on Ubuntu/Debian operating system.
The advantage of installing a DEB package file with the APT package manager is that the APT package manager automatically downloads and installs all the required dependency packages for you. This is obviously a better way to install a DEB package than using the DPKG package managaer.
Let’s say, you want to install FileZilla using the DEB package file filezilla_3.28.0-1_amd64.deb. To do that with the APT package manager, run the following command:
$ sudo apt install ./Downloads/filezilla_3.28.0-1_amd64.deb
As you can see, the APT package manager automatically determines what other packages are required to successfully install the DEB package file filezilla_3.28.0-1_amd64.deb. Now, to confirm the installation, press y and then press <Enter> to continue.
As you can see, the filezilla_3.28.0-1_amd64.deb DEB package file is installed.
Installing DEB Packages with Ubuntu Software Center:
If you’re using an Ubuntu desktop operating system, then you can easily install DEB package files using Ubuntu Software Center. Like the APT package manager, Ubuntu Software Center will also download and install all the required dependency packages automatically.
For example, let’s say, you want to install Visual Studio Code programming text editor on your Ubuntu Desktop operating system. You have to download a DEB package file of Visual Studio Code from the official website of Visual Studio Code https://code.visualstudio.com.
Now, to install the DEB package file using Ubuntu Software Center, first navigate to the directory where you saved the Visual Studio Code DEB package file.
Now, right click on the Visual Studio Code DEB package file and click on Open With Software Install.
Once the Ubuntu Software Center is opened, click on the Install button as marked in the screenshot below.
Now, type in the password of your login user and click on Authenticate.
As you can see, the Visual Studio Code is being installed.
At this point, the DEB package should be installed.
Installing DEB Packages with GDebi Package Manager:
You can also use the GDebi package manager to install DEB packages on Ubuntu. The GDebi package manager also downloads and installs all the required dependency packages automatically.
The GDebi package manager is not installed by default on Ubuntu. But, it is available in the official package repository of Ubuntu. You can easily install it using the APT package manager.
First, update the APT package repository cache with the following command:
Now, run the following command to install the GDebi package manager on your Ubuntu machine.
GDebi package manager should be installed. Now, you can install DEB packages with GDebi package manager.
Let’s say, you want to install the filezilla_3.28.0-1_amd64.deb DEB package with GDebi package manager. To do that, run the following command:
$ sudo gdebi ./Downloads/filezilla_3.28.0-1_amd64.deb
Now, to confirm, press y and then press <Enter>.
filezilla_3.28.0-1_amd64.deb DEB package should be installed along with all the dependency packages.
So, these are the ways to install DEB packages on Ubuntu. Thanks for reading this article.
We already saw how to create Debian packages, now we’ll see how to remove them. Removing packages in Debian or Ubuntu Linux from the console is very easy, your user must be in the sudoers or you’ll need root access.
Identify the package to delete: dpkg –list
dpkg –-list will show you a list of packages, in this case the distribution used for the image is Kali Linux.
Let’s remove Skype using apt-get and dpkg commands:
Removing skypeforlinux using apt-get
For Ubuntu the correct method to remove packages through the console is:
The parameter “–-remove” will remove installation files while keeping configuration data, by adding “–-purge” we instruct to remove configuration files too.
Removing skypeforlinux using dpkg
We can remove Skype replacing apt-get with dpkg like in the following example:
We can use also
(Where “packagename” is replaced by the package’s name.)
Removing Broken Packages
In order to remove broken packages, or packages which weren’t fully installed we will run
apt-get clean&&apt-get autoremove
sudoapt-get-finstall
dpkg--configure-a
sudoapt-get-finstall
dpkg--configure-a
Details:
clean: Removes cache of programs older than the installed.
autoremove: Removes unnecessary files, like dependencies which are not longer needed.
-f / –fix-broken install: Fix broken dependencies, correct possible package corruption problems. We’ll see this option deeply later.
clean: Removes cache of programs older than the installed.
autoremove: Removes unnecessary files, like dependencies which are not longer needed.
-f / –fix-broken install: Fix broken dependencies, correct possible package corruption problems. We’ll see this option deeply later.
Troubleshooting
For different reasons a package’s removal, or a package’s installation may return errors. The most popular causes for such errors are old programs, partially installed packages, corrupted packages, outdated repositories at etc/apt/sources.list, etc. The following commands and their order are basic to solve initial problems in the packages manager. If you are experiencing problems installing or uninstalling software on Ubuntu 12.04 or higher or Debian, run the following commands:
#apt-get update
#dpkg –-configure -a
#apt-get -f install
#apt-get clean
#dpkg –-configure -a
#apt-get -f install
#apt-get clean
apt-get update: Updates the packages’ list in the repositories.
dpkg –configure -a: This command checks for dependency problems to fix.
apt-get -f install: Another command to fix dependency problems.
apt-get autoclean: clean unnecessary dependencies.
dpkg –configure -a: This command checks for dependency problems to fix.
apt-get -f install: Another command to fix dependency problems.
apt-get autoclean: clean unnecessary dependencies.
Check if packages are being held by the packages manager
To check if the installer holds packages pending of installation run:
This will show you held packages. If listed, to remove packages run: