[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

unattended-upgrades uncertainty with Unable to get Terminal Size



Good day Guys

I just installed and new to unattended-upgrades.

Looking at the logs this morning I see the folllowing.

cat /var/log/unattended-upgrades/unattended-upgrades-dpkg_2015-02-19_06\:48\:53.476190.log
(Reading database ... 60516 files and directories currently installed.)
Preparing to replace dnsutils 1:9.8.4.dfsg.P1-6+nmu2+deb7u3 (using .../dnsutils_1%3a9.8.4.dfsg.P1-6+nmu2+deb7u4_amd64.deb) ...
Unpacking replacement dnsutils ...

snippet

Processing triggers for man-db ...
Setting up libisc84 (1:9.8.4.dfsg.P1-6+nmu2+deb7u4) ...
Setting up libdns88 (1:9.8.4.dfsg.P1-6+nmu2+deb7u4) ...

snippet

Setting up dnsutils (1:9.8.4.dfsg.P1-6+nmu2+deb7u4) ...
Unable to get Terminal Size. The TIOCGWINSZ ioctl didn't work. The COLUMNS and LINES environment variables didn't work. The resize program didn't work. at /usr/lib/perl5/Term/ReadKey.pm line 362, <STDIN> line 3. Unable to get Terminal Size. The TIOCGWINSZ ioctl didn't work. The COLUMNS and LINES environment variables didn't work. The resize program didn't work. at /usr/lib/perl5/Term/ReadKey.pm line 362, <STDIN> line 3. Unable to get Terminal Size. The TIOCGWINSZ ioctl didn't work. The COLUMNS and LINES environment variables didn't work. The resize program didn't work. at /usr/lib/perl5/Term/ReadKey.pm line 362.


Does anyone know what the 'Unable to get Terminal Size' message is, and how do I g about fixing it.

Here is my configuration.
--------------------------------------------------------------------------------------------------------
cat /etc/apt/apt.conf.d/50unattended-upgrades
// Automatically upgrade packages from these (origin:archive) pairs
Unattended-Upgrade::Origins-Pattern {
    "origin=Debian,archive=stable,label=Debian-Security";
};

// List of packages to not update
Unattended-Upgrade::Package-Blacklist {
    "apache2";
    "heartbeat";
    "libc6";
    "memcached";
    "mysql-server";
    "mysql-server-5.1";
    "mysql-server-5.5";
    "nginx";
    "nginx-common";
    "nginx-full";
    "php5-fpm";
    "postgresql-server";
    "postgresql-server-9.1";
};

// This option allows you to control if on a unclean dpkg exit
// unattended-upgrades will automatically run
//   dpkg --force-confold --configure -a
// The default is true, to ensure updates keep getting installed
Unattended-Upgrade::AutoFixInterruptedDpkg "true";

// Split the upgrade into the smallest possible chunks so that
// they can be interrupted with SIGUSR1. This makes the upgrade
// a bit slower but it has the benefit that shutdown while a upgrade
// is running is possible (with a small delay)
Unattended-Upgrade::MinimalSteps "false";

// Install all unattended-upgrades when the machine is shuting down
// instead of doing it in the background while the machine is running
// This will (obviously) make shutdown slower
Unattended-Upgrade::InstallOnShutdown "false";

// Send email to this address for problems or packages upgrades
// If empty or unset then no email is sent, make sure that you
// have a working mail setup on your system. A package that provides
// 'mailx' must be installed.
Unattended-Upgrade::Mail "thelab@hetzner.co.za";

// Set this value to "true" to get emails only on errors. Default
// is to always send a mail if Unattended-Upgrade::Mail is set
Unattended-Upgrade::MailOnlyOnError "false";

// Do automatic removal of new unused dependencies after the upgrade
// (equivalent to apt-get autoremove)
Unattended-Upgrade::Remove-Unused-Dependencies "true";

// Automatically reboot *WITHOUT CONFIRMATION* if a
// the file /var/run/reboot-required is found after the upgrade
Unattended-Upgrade::Automatic-Reboot "false";


// Use apt bandwidth limit feature, this example limits the download
// speed to 70kb/sec
--------------------------------------------------------------------------------------------------------

Thanks for your help.

Regards
Brent Clark


Reply to: