Works well and install all the packages contained in the /debdir directory. The install.sh (copied at the root directory) simply contains: #!/bin/bashĪnd the following docker build -t debiantest. This is my Dockerfile for example purpose: FROM debian:latest Check the best practices for writing Dockerfiles for more info.) (FYI, prefer using COPY instead of ADD when the file isn't remotely copied. It is used to install, build, remove and manage. sh script in your container, chmod +x it and then use it as your command. Dpkg is a package manager for Debian and its derivatives such as Ubuntu and Linux Mint. deb-directory/*.deb file which doesn't exist instead of installing all the. It looks like dpkg is trying to install the so called. I tried your command inside a container (using an interactive shell) and it worked well. The problem comes from the * statement which doesn't seem to work well with the docker run dpkg command. !!! Forget the following but I leave it here to keep track of my reflexion steps !!! You need to invoke a shell for it to be expanded.ĭocker run somecontainer sh -c 'dpkg -i /debdir/*.deb' Someone answered a better way of doing this on the github issue. In the command line method, we are going to use the terminal to install a Debian package.This is perhaps a bug, I'll open a ticket on their github to know. Sudo apt upgrade Method I: Installing the Debian Packages via Command-line Installing Debian Packages via Graphical User Interface (Software Center Application and GDebi Application)īut before we start our guide let’s first ensure that you have an updated Ubuntu system using the following two commands: sudo apt update.Installing Debian Packages via Command-Line (Terminal). Installing DEB packages on Ubuntu and Linux Mintĭuring this tutorial, we are going to show you step by step how to install a Debian package on Ubuntu. But do not worry we are here to help you do so. Have a look at the below screenshot for what the installation looks like on screen. sudo dpkg -i package name We’re installing the VLC player on our Ubuntu system. If you are a newbie to Linux this may seem a little bit annoying because you may need some extra steps to install those Debian packages. We can install a deb package in Ubuntu or Debian using the dpkg -i command option. If you found a software setup file ending with the format (.deb) then this means the file is a Debian package that is designed especially for Debian based machines.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |