View Issue Details

IDProjectCategoryView StatusLast Update
0004927Kali LinuxKali Package Bugpublic2018-08-25 07:35
Reporterdoteater Assigned Torhertzog  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionno change required 
Summary0004927: macchanger requires user interaction to update, even with "-y"
Description

I want all packages to be upgraded upon boot, so I have a script that does "apt-get update" and "apt-get -y upgrade". However, the upgrade never completes. When I run the upgrade automatically, it becomes clear this is because debconf is asking whether macchanger should be run automatically.

Is this a bug? I expected "-y" to be safe to run unattended. Please let me know if I can provide any more info.

ps auxww | grep -i 'apt|mac|dpkg'

root 1924 0.2 1.5 121032 78104 pts/1 S+ 13:01 0:01 apt-get -y upgrade
root 9568 0.0 0.0 4284 708 pts/1 S+ 13:06 0:00 /bin/sh -c /usr/sbin/dpkg-preconfigure --apt || true
root 9569 0.0 0.4 66668 22692 pts/1 S+ 13:06 0:00 /usr/bin/perl -w /usr/sbin/dpkg-preconfigure --apt
root 9580 0.0 0.0 0 0 pts/1 Z+ 13:06 0:00 [dpkg-preconfigu] <defunct>
root 9774 0.0 0.0 4284 732 pts/1 S+ 13:06 0:00 /bin/sh /tmp/macchanger.config.236GKN configure 1.7.0-5.3+b1
root 9776 0.0 0.0 22692 3756 pts/1 S+ 13:06 0:00 whiptail --backtitle Package configuration --title Configuring macchanger --output-fd 12 --defaultno --yesno -- Please specify whether macchanger should be set up to run automatically every time a network device is brought up or down. This gives a new MAC address whenever you attach an ethernet cable or reenable wifi. Change MAC automatically? 11 95
root 10349 0.0 0.0 12856 960 pts/2 S+ 13:10 0:00 grep -i apt|mac|dpkg

dpkg --list macchanger

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==================-==============-==============-==========================================
ii macchanger 1.7.0-5.3+b1 amd64 utility for manipulating the MAC address o

uname -a

Linux a 4.13.0-kali1-amd64 0000001 SMP Debian 4.13.10-1kali2 (2017-11-08) x86_64 GNU/Linux

Activities

doteater

doteater

2018-08-24 20:52

reporter   ~0009521

Ran into other packages that do this, and running:

DEBIAN_FRONTEND=noninteractive apt-get -y upgrade

...seems to do what I want. Feel free to close if I was mistaken and this was not a bug.

rhertzog

rhertzog

2018-08-25 07:35

administrator   ~0009523

Hi, you definitely were mistaken. And there are packages like unattended-upgrades that are specifically meant to address this problem (though they are designed to handle security updates and not updates to a rolling distribution).

Also see https://debian-handbook.info/browse/stable/sect.automatic-upgrades.html#id-1.9.17.9

Issue History

Date Modified Username Field Change
2018-08-24 20:14 doteater New Issue
2018-08-24 20:52 doteater Note Added: 0009521
2018-08-25 07:35 rhertzog Assigned To => rhertzog
2018-08-25 07:35 rhertzog Status new => closed
2018-08-25 07:35 rhertzog Resolution open => no change required
2018-08-25 07:35 rhertzog Note Added: 0009523