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

Bug#931097: unattended-upgrades: InvalidURL(f"URL can't contain control characters. {url!r} "

Package: unattended-upgrades
Severity: serious
Justification: normal

Dear Maintainer,

Jessie uses python 3.4 and python 3.4 does not support f"" strings

So now unattended upgrades no longer performs security upgrades.

Traceback (most recent call last):
  File "/usr/bin/unattended-upgrade", line 55, in <module>
    import apt
  File "/usr/lib/python3/dist-packages/apt/__init__.py", line 26, in <module>
    from apt.package import Package
  File "/usr/lib/python3/dist-packages/apt/package.py", line 32, in <module>
    from http.client import BadStatusLine
  File "/usr/lib/python3.4/http/client.py", line 1014
    raise InvalidURL(f"URL can't contain control characters. {url!r} "
SyntaxError: invalid syntax

The problem is in the file /usr/lib/python3.4/http/client.py, changing (f"URL to ("URL will
will allow unattended-upgrades to work again but doesn't do what is intended.

-- System Information:
Debian Release: 8.10
  APT prefers oldstable
  APT policy: (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-0.bpo.5-amd64 (SMP w/32 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages unattended-upgrades depends on:
ii  apt          
ii  apt-utils    
ii  debconf [debconf-2.0]  1.5.56+deb8u1
ii  init-system-helpers    1.22
ii  lsb-base               4.1+Debian13+nmu1
ii  lsb-release            4.1+Debian13+nmu1
ii  python3                3.4.2-2
ii  python3-apt  
ii  ucf                    3.0030
ii  xz-utils               5.1.1alpha+20120614-2+b3

unattended-upgrades recommends no packages.

Versions of packages unattended-upgrades suggests:
ii  bsd-mailx                                  8.1.2-0.20141216cvs-2
ii  exim4-daemon-light [mail-transport-agent]  4.84.2-2+deb8u5

-- debconf-show failed

Reply to: