Ik heb een simpel apt update scriptje draaien op mijn debian machine:
Werkt op zich prima, behalve wanneer een bepaald pakketje update-inetd nodig heeft, zoals in het onderstaande geval van samba:
Wie weet wat er precies mis gaat, ik snap het probleem niet helemaal en kan het dus niet fixen..
code:
1
2
3
4
5
6
7
8
9
10
| #! /bin/bash PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" LOG="/root/apt-get_log" echo "--- `date` ---" >> $LOG apt-get update > /dev/null 2>&1 apt-get -y dist-upgrade >> $LOG 2>&1 apt-get clean echo "" >> $LOG |
Werkt op zich prima, behalve wanneer een bepaald pakketje update-inetd nodig heeft, zoals in het onderstaande geval van samba:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
| Setting up samba (3.0.6-3) ... debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype Couldn't reopen stdin at /usr/sbin/update-inetd line 29. dpkg: error processing samba (--configure): subprocess post-installation script returned error exit status 6 Errors were encountered while processing: samba E: Sub-process /usr/bin/dpkg returned an error code (1) |
Wie weet wat er precies mis gaat, ik snap het probleem niet helemaal en kan het dus niet fixen..