Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to autoinstall apt-fast (without interaction) #85

Closed
heniokalinowski opened this issue Aug 16, 2015 · 6 comments
Closed

Unable to autoinstall apt-fast (without interaction) #85

heniokalinowski opened this issue Aug 16, 2015 · 6 comments

Comments

@heniokalinowski
Copy link

Hi,
during instalation apt-fast asks for:

  • application manager (apt-get/aptitude)
  • number of connections
  • shall it skip confirmation

It prevents apt-fast to be installed in non-interactive way.
I think, that it should install with defaults, and allow to change it later ("convention over configuration").

I propose:
application manager = aptitude installed ? aptitude : apt-get
connections = 5 (that's Your proposal) or 10 (my personal choice - helps with many small files)
skip = true

If You are unable to do so, for whatever reason, then maybe You are able to provide names and values for debconf-utils.
I have unsuccessfully tried:

echo 'apt-fast apt-fast/_APTMGR string aptitude' | sudo debconf-set-selections
echo 'apt-fast apt-fast/maxdownloads string 10' | sudo debconf-set-selections
echo 'apt-fast apt-fast/DOWNLOADBEFORE boolean true' | sudo debconf-set-selections

Which hangs whole installation with holding one CPU core at 100%...

P.S.
Why isn't apt-fast in default repository of Debian/Ubuntu/Linux Mint?

@Thell
Copy link

Thell commented Sep 25, 2015

Did you set the frontend to noninteractive?

echo "debconf debconf/frontend select Noninteractive" | debconf-set-selections;

and use dflag instead of DOWNLOADBEFORE?

echo "apt-fast apt-fast/maxdownloads string 10" | debconf-set-selections; \
echo "apt-fast apt-fast/dlflag boolean true" | debconf-set-selections; \
apt-get -qq install apt-fast

Also, the conf doesn't seem to stick for the other options I've tried so sed my be the answer for you on the _APTMGR part, for instance I use the following for the download command.

sed -i'' "/^_DOWNLOADER=/ s/-m0/-m0 --console-log-level=error --show-console-readout=false/" /etc/apt-fast.conf; \

@dsifford
Copy link

dsifford commented Jul 3, 2016

@Thell 's answer above works.

But so does this DEBIAN_FRONTEND=noninteractive apt-get install -y apt-fast

@bartekbrak
Copy link

@dsifford

DEBIAN_FRONTEND=noninteractive apt-get install -y apt-fast

does not work, the installer still asks questions; can you try again after purging the package?

sudo apt-get purge apt-fast; DEBIAN_FRONTEND=noninteractive apt-get install -y apt-fast 

@Thell's answer indeed works, still this behaviour is unfortunate, took me a while to solve, time wasted for no reason.

@dsifford
Copy link

@bartekbrak sudo apt-get purge will not work because you are both a) using sudo (non-root) and b) not giving purge the -y flag

@ctindel
Copy link

ctindel commented Nov 18, 2016

I did this and it worked on Ubuntu 16.04:

add-apt-repository ppa:saiarcot895/myppa < /dev/null
apt-get update
echo debconf apt-fast/maxdownloads string 16 | sudo debconf-set-selections
echo debconf apt-fast/dlflag boolean true | sudo debconf-set-selections
echo debconf apt-fast/aptmanager string apt-get | sudo debconf-set-selections
sudo apt-get install -y apt-fast

@Lasall
Copy link
Collaborator

Lasall commented Sep 24, 2019

Thank you everyone for the comments, I updated the README with the required instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants