# Apt post-installation fails only on travis for libpaper1 (ghostscript) in debian:bullseye

**URL:** <https://travis-ci.community/t/apt-post-installation-fails-only-on-travis-for-libpaper1-ghostscript-in-debian-bullseye/12295>\
**Category:** Linux\
**Tags:** apt, docker\
**Created:** [October 19, 2021, 9:47am UTC](https://travis-ci.community/t/apt-post-installation-fails-only-on-travis-for-libpaper1-ghostscript-in-debian-bullseye/12295 "2021-10-19T09:47:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yvaucher](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/yvaucher/32/7325_2.png) [@yvaucher](https://travis-ci.community/u/yvaucher)\
**Post date:** [October 19, 2021, 9:47am UTC](https://travis-ci.community/t/apt-post-installation-fails-only-on-travis-for-libpaper1-ghostscript-in-debian-bullseye/12295/1 "2021-10-19T09:47:41Z")

</div>

With a Dockerfile installing `libpaper1` (a dependency of ghostscript)

Running it locally works, running it on travis fails.

Here is what we get on travis in the build of a docker image.

```auto
Setting up libpaper1:amd64 (1.1.28+b1) ...
[...]
Creating config file /etc/papersize with new version
stat: cannot statx '/etc/papersize.dpkg-inst': Operation not permitted
dpkg: error processing package libpaper1:amd64 (--configure):
 installed libpaper1:amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of libgs9:amd64:
 libgs9:amd64 depends on libpaper1; however:
  Package libpaper1:amd64 is not configured yet.

```

This output is publicly accessible on  
[https://app.travis-ci.com/github/camptocamp/docker-odoo-project/builds/240106079#L433](https://app.travis-ci.com/github/camptocamp/docker-odoo-project/builds/240106079#L433)

What could be the reason of the difference between a local build and a build on travis?

Is it somehow broken in some sort of travis apt mirror?

---

<div class="post-metadata">

**Author:** ![yvaucher](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/yvaucher/32/7325_2.png) [@yvaucher](https://travis-ci.community/u/yvaucher)\
**Post date:** [October 20, 2021, 2:18pm UTC](https://travis-ci.community/t/apt-post-installation-fails-only-on-travis-for-libpaper1-ghostscript-in-debian-bullseye/12295/2 "2021-10-20T14:18:19Z")

</div>

Issue comes from docker-ce version. Upgrading docker solves the issue.

More on [apt - Cannot install ghostscript, libgs9 and libpaper1 on Debian Bullseye - Unix & Linux Stack Exchange](https://unix.stackexchange.com/questions/672183/cannot-install-ghostscript-libgs9-and-libpaper1-on-debian-bullseye/673765#673765)
