How can I automate dpkg/apt-get?
For packages that ask questions through debconf (which is what puts up the ncurses display), you can pre-answer the questions. For sun-java, the questions can be pre-answered by following the instructions at http://www.davidpashley.com/blog/debian/java-license
Ubuntu dockerfile - mailutils install
Use the following dockerfile
:
FROM ubuntu:latest
ENV DEBIAN_FRONTEND="noninteractive"
RUN apt-get update && apt-get install -y mailutils
The important part is setting debconf
to noninteractive
mode.
Closing apt-get terminal pop-up
Pressing F12 on the terminal solved the issue!
How to attach a file using mail command on Linux?
Example using uuencode:
uuencode surfing.jpeg surfing.jpeg | mail sylvia@home.com
and reference article:
http://www.shelldorado.com/articles/mailattachments.html
Note:
you may apt install sharutils
to have uuencode
command
Related Topics
How to Detect Availability of Gui in Bash/Shell
Google API to Find The Search Count
Docker Container Size Much Greater Than Actual Size
Which Is The Correct Way to Register a New Net_Device
How to Send a Signal to Process That Belongs to Different User
Error Installing Chrome on Aws Ec2 Linux Instance: Scaling_Cur_Freq & Scaling_Max_Freq Not Found
Do I Have to Pthread_Join Each Thread I Create
How to Install a Recent Version of Gdal on Amazon Linux
Installing Mailutils Using Apt-Get Without User Intervention
Where Do You Send The Kernel Console on an Embedded System
Linux + Verify If File Is Text or Binary
Setjmp and Longjmp - Understanding with Examples
Nohup Error No Such File or Directory
Qt - How to Detect Whether The Application Is Running on Gnome or Kde