ttf-mscorefonts-installer drop-priv warnings and download errors during install

Bug #1658707 reported by Jeff Lane 
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
msttcorefonts (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

for several days now, updates that involve updating or re-configuring ttf-mscorefonts-installer have thrown warnings. After looking at my apt logs, there appears to be a couple issues.

First is a warning about not being able to drop privileges... which admittedly may be a red herring:

W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-
data-downloads/partial/andale32.exe' couldn't be accessed by user '_apt'. - pkgAcqu
ire::Run (13: Permission denied)

Next is a failure to download arial32 from sourceforge which results in a full error due to a 400 Return Code:

ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/arial32.exe
[Working]
[Working]
[Working]
[Working]
[Working]
    Err:1 http://downloads.sourceforge.net/corefonts/arial32.exe 400 Bad request
[Working]
    W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/arial32.exe' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
    E: Failed to fetch https://svwh.dl.sourceforge.net/project/corefonts/the fonts/final/arial32.exe 400 Bad request
    E: Download Failed

This goes on and completes, however, the warnings always trigger annoying popups that could be confusing for users who don't understand what's going on (or just annoying for those of us who have to close the stinking pop-up box ever time updates are applied (which could be daily depending on how users have update manager configured).

To reporoduce this, I simply did a re-install of ttf-mscorefonts-installer and was able to easily reproduce the warnings and errors:

bladernr@galactica:/var/log/apt$ sudo apt-get install --reinstall ttf-mscorefonts-installer
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 29.5 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 ttf-mscorefonts-installer all 3.4+nmu1ubuntu2 [29.5 kB]
Fetched 29.5 kB in 0s (37.8 kB/s)
Preconfiguring packages ...
(Reading database ... 380577 files and directories currently installed.)
Preparing to unpack .../ttf-mscorefonts-installer_3.4+nmu1ubuntu2_all.deb ...
mscorefonts-eula license has already been accepted
Unpacking ttf-mscorefonts-installer (3.4+nmu1ubuntu2) over (3.4+nmu1ubuntu2) ...
Processing triggers for fontconfig (2.11.94-0ubuntu1.1) ...
Processing triggers for update-notifier-common (3.168.3) ...
ttf-mscorefonts-installer: processing...
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/andale32.exe
Err:1 http://downloads.sourceforge.net/corefonts/andale32.exe
  400 Bad request
W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/andale32.exe' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
E: Failed to fetch https://svwh.dl.sourceforge.net/project/corefonts/the fonts/final/andale32.exe 400 Bad request

E: Download Failed
Setting up ttf-mscorefonts-installer (3.4+nmu1ubuntu2) ...

This appears to be an upstream issue, however, the drop-privileges issue is bothersome as well.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: ttf-mscorefonts-installer 3.4+nmu1ubuntu2
ProcVersionSignature: Ubuntu 4.4.0-51.72-generic 4.4.30
Uname: Linux 4.4.0-51-generic x86_64
NonfreeKernelModules: zfs zunicode zcommon znvpair zavl
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Jan 23 10:08:17 2017
InstallationDate: Installed on 2016-02-11 (346 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160210)
PackageArchitecture: all
SourcePackage: msttcorefonts
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jeff Lane  (bladernr) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in msttcorefonts (Ubuntu):
status: New → Confirmed
Changed in msttcorefonts (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Naël (nathanael-naeri) wrote :

Not exactly the same error message as in widely-impacting bug 1607535, but almost, and judging by the attachments to your bug report, your version of package apt-transport-https is < 1.2.19. Please update this package (and other apt packages, for good measure) to 1.2.19, and retry (reinstall ttf-mscorefonts-installer). Chances are it's the same bug, fixed in apt-transport-https 1.2.19.

Revision history for this message
Timofey Vorobyov (t-vorobyov) wrote :

Affects me with apt-transport-htts version 1.3.4:

> apt show apt-transport-https

Package: apt-transport-https
Version: 1.3.4
Priority: standard
Section: admin
Source: apt
Origin: Ubuntu
Maintainer: Ubuntu Developers <email address hidden>
Original-Maintainer: APT Development Team <email address hidden>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 241 kB
Depends: libapt-pkg5.0 (>= 1.3~rc2), libc6 (>= 2.14), libcurl3-gnutls (>= 7.16.2), libgcc1 (>= 1:3.0), libstdc++6 (>= 5.2)
Recommends: ca-certificates
Task: standard
Phased-Update-Percentage: 40
Supported: 9m
Download-Size: 34,3 kB
APT-Manual-Installed: yes
APT-Sources: http://ua.archive.ubuntu.com/ubuntu yakkety-updates/main amd64 Packages
Description: https download transport for APT
 This package enables the usage of 'deb https://foo distro main' lines
 in the /etc/apt/sources.list so that all package managers using the
 libapt-pkg library can access metadata and packages available in sources
 accessible over https (Hypertext Transfer Protocol Secure).
 .
 This transport supports server as well as client authentication
 with certificates.

Revision history for this message
Naël (nathanael-naeri) wrote :

On Yakkety? That's weird. What error message does "sudo apt-get install --reinstall ttf-mscorefonts-installer" return, precisely?

Naël (nathanael-naeri)
Changed in msttcorefonts (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Patrick Hibbs (codebase7) wrote :
Download full text (12.5 KiB)

Although the request was for Yakketty, it also has the the bug in Xenial. I did try to manually download arial32.exe and andale32.exe using wget and then copying them to /var/lib/update-notifier/package-data-downloads/partial. Doing so allowed the reconfigure to succeed.

sudo apt show apt-transport-https
[sudo] password for admin0:
Package: apt-transport-https
Version: 1.2.19
Priority: standard
Section: admin
Source: apt
Origin: Ubuntu
Maintainer: Ubuntu Developers <email address hidden>
Original-Maintainer: APT Development Team <email address hidden>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 213 kB
Depends: libapt-pkg5.0 (>= 1.1~exp15), libc6 (>= 2.14), libcurl3-gnutls (>= 7.16.2), libgcc1 (>= 1:3.0), libstdc++6 (>= 5.2)
Recommends: ca-certificates
Task: standard
Supported: 5y
Download-Size: 26.0 kB
APT-Manual-Installed: yes
APT-Sources: http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
Description: https download transport for APT
 This package enables the usage of 'deb https://foo distro main' lines
 in the /etc/apt/sources.list so that all package managers using the
 libapt-pkg library can access metadata and packages available in sources
 accessible over https (Hypertext Transfer Protocol Secure).
 .
 This transport supports server as well as client authentication
 with certificates.

[Before file downloads]
sudo apt-get install --reinstall ttf-mscorefonts-installer
[sudo] password for admin0:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.4.0-64 linux-headers-4.4.0-64-generic
  linux-image-4.4.0-64-generic linux-image-extra-4.4.0-64-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 2 not upgraded.
Need to get 29.5 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu xenial/multiverse amd64 ttf-mscorefonts-installer all 3.4+nmu1ubuntu2 [29.5 kB]
Fetched 29.5 kB in 0s (84.9 kB/s)
Preconfiguring packages ...
(Reading database ... 421788 files and directories currently installed.)
Preparing to unpack .../ttf-mscorefonts-installer_3.4+nmu1ubuntu2_all.deb ...
mscorefonts-eula license has already been accepted
Unpacking ttf-mscorefonts-installer (3.4+nmu1ubuntu2) over (3.4+nmu1ubuntu2) ...
Processing triggers for fontconfig (2.11.94-0ubuntu1.1) ...
Processing triggers for update-notifier-common (3.168.3) ...
ttf-mscorefonts-installer: processing...
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/andale32.exe
Get:1 http://downloads.sourceforge.net/corefonts/andale32.exe [198 kB]
Fetched 198 kB in 7s (27.2 kB/s)
W: Can't drop privileges for downloading as file '/var/lib/update-notifier/package-data-downloads/partial/andale32.exe' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/arial32.exe
Err:1 http...

Revision history for this message
Naël (nathanael-naeri) wrote :

@Patrick: I was asking Timofey, who reports being affected by this bug with apt-transport-https 1.3.4 on Yakkety. That shouldn't be the case, and any error that makes it look like it is can be solved away by removing the partially-downloaded fonts in /var/lib/update-notifier/package-data-downloads/partial/ and reinstalling ttf-mscorefonts-installer after updating apt-transport-https to 1.3.4 (Yakkety) or 1.2.19 (Xenial). Cf. bug 1607535's description, section [Fix].

Changed in msttcorefonts (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.