Advertising

Author Topic: How to change apt default behaviour  (Read 753 times)

Offline brunomiguel

  • Newbie
  • *
  • Posts: 1
How to change apt default behaviour
« on: August 01, 2018, 10:02:04 pm »
Hello, there.

This is my first time with Sparky (although I've used Debian and Ubuntu for more than a decade) and I've noticed that apt cancels package installations if it has to receive confirmation from the user. Example: I'm installing something, I use 'sudo apt install package-name-with-dependencies' and, if I don't use the -y flag, it will cancel the installation automatically if there are dependencies to install. Debian and Ubuntu don't do this: apt waits for the user input, be it 'y' or 'n'.

Where can this be configured? I can't seem to find a file with these options.

Offline paxmark1

  • Hero Member
  • *****
  • Posts: 564
Re: How to change apt default behaviour
« Reply #1 on: August 03, 2018, 04:20:54 am »
Hmm , interesting.  I looked at man apt.conf  I do not seem to have one  as root updatedb  then locate apt.conf   - <I do not have one. 
Code: [Select]
oot@raunesat:/# updatedb
root@raunesat:/# locate apt.conf
/etc/apt/apt.conf.d
/etc/apt/apt.conf.d/00CDMountPoint
/etc/apt/apt.conf.d/00trustcdrom
/etc/apt/apt.conf.d/01autoremove
/etc/apt/apt.conf.d/01autoremove-kernels
/etc/apt/apt.conf.d/10apt-listbugs
/etc/apt/apt.conf.d/20apt-show-versions
/etc/apt/apt.conf.d/20listchanges
/etc/apt/apt.conf.d/70debconf
/etc/apt/apt.conf.d/99synaptic
/usr/share/doc/apt/examples/apt.conf
/usr/share/man/de/man5/apt.conf.5.gz
/usr/share/man/fr/man5/apt.conf.5.gz
/usr/share/man/it/man5/apt.conf.5.gz
/usr/share/man/ja/man5/apt.conf.5.gz
/usr/share/man/man5/apt.conf.5.gz
/usr/share/man/nl/man5/apt.conf.5.gz
/usr/share/man/pt/man5/apt.conf.5.gz
/var/lib/dpkg/info/apt.conffiles

nano /usr./share/doc/apt/examples/apt.conf   is a very bland and weird file.  Hopefully others have more ideas and/or help. 
Don't make a FrankenDebian

Offline bilotola

  • Newbie
  • *
  • Posts: 2
Re: How to change apt default behaviour
« Reply #2 on: February 18, 2019, 02:56:31 pm »
You can pass arguments to avoid getting prompts. This works for me.
force-confold (my choice) will make these "What do you want to do about modified configuration file" questions default to N (keep your currently-installed version)  bluestacks.vip    luckypatcher.pro   kodi.software
some modified configuration files can break your system if kept back & not compatible with updated package version.
Please test it before deploying in automation solutions.

« Last Edit: February 19, 2019, 09:47:39 am by bilotola »