Cannot update from gitlab 12.3.5

hello there.

I have an old xenial Ubuntu 16.04 installation with gitlab 12.3.5 and I want to update to 13.x.x version.

I tried sudo apt update && sudo apt install gitlab-ce and the result was:
gitlab preinstall: It is required to upgrade to the latest 13.0.x version first before proceeding.

So I tried sudo apt update && sudo apt install gitlab-ce=13.0.0-ce.0 with the result:
gitlab preinstall: It seems you are upgrading from major version 12 to major version 13.
gitlab preinstall: It is required to upgrade to the latest 12.10.x version first before proceeding.

So I tried sudo apt update && sudo apt install gitlab-ce=12.10.14-ce.0 -f with the result:
Unpacking gitlab-ce (12.10.14-ce.0) over (12.3.5-ce.0) …
dpkg: error processing archive /var/cache/apt/archives/gitlab-ce_12.10.14-ce.0_amd64.deb (–unpack):
unable to open ‘/opt/gitlab/embedded/lib/python3.7/site-packages/docutils/languages/fa.py.dpkg-new’: Operation not permitted
Errors were encountered while processing:
/var/cache/apt/archives/gitlab-ce_12.10.14-ce.0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
You have mail in /var/mail/root

This is what i got when I press: gitlab-rake gitlab:env:info

System information
System: Ubuntu 16.04
Current User: git
Using RVM: no
Ruby Version: 2.6.3p62
Gem Version: 2.7.9
Bundler Version:1.17.3
Rake Version: 12.3.2
Redis Version: 3.2.12
Git Version: 2.22.0
Sidekiq Version:5.2.7
Go Version: unknown

GitLab information
Version: 12.3.5
Revision: 2417d5becc7
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: PostgreSQL
DB Version: 10.9
URL: https://ecd01-git-01.ecdcnet.europa.devotion
HTTP Clone URL: https://ecd01-git-01.ecdcnet.europa.devotion/some-group/some-project.git
SSH Clone URL: git@ecd01-git-01.ecdcnet.europa.devotion:some-group/some-project.git
Using LDAP: no
Using Omniauth: yes
Omniauth Providers:

GitLab Shell
Version: 10.0.0
Repository storage paths:

  • default: /var/opt/gitlab/git-data/repositories
    GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell
    Git: /opt/gitlab/embedded/bin/git

So I am stuck here any help is much appreciated!

regards,

Michael

The crucial things I see in your output is

That should be possible for the root user (and you did use sudo to run the command). Is /opt/gitlab/embedded/lib/python3.7/site-packages/docutils on some kind of network storage that implements a permission model where the local root doesn’t have the right to do everything (for nfs it would be exports with root_squash).