Unable to update from 11.10.8 to 11.11.8-ce.0

I’m tyring to update from 11.10.8 to 11.11.8-ce.0:

ubuntu@ip-XXXXXXXX:~$ sudo apt install gitlab-ce=11.11.8-ce.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  gitlab-ce
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
50 not fully installed or removed.
Need to get 675 MB of archives.
After this operation, 71.4 MB of additional disk space will be used.
Get:1 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu bionic/main amd64 gitlab-ce amd64 11.11.8-ce.0 [675 MB]
Fetched 675 MB in 51s (13.2 MB/s)
(Reading database ... 191812 files and directories currently installed.)
Preparing to unpack .../gitlab-ce_11.11.8-ce.0_amd64.deb ...
gitlab preinstall: Automatically backing up only the GitLab SQL database (excluding everything else!)

2021-06-20 10:24:20 +0530 -- Dumping database ... 
Dumping PostgreSQL database gitlabhq_production ... [DONE]
2021-06-20 10:24:23 +0530 -- done
2021-06-20 10:24:23 +0530 -- Dumping repositories ...
2021-06-20 10:24:23 +0530 -- [SKIPPED]
2021-06-20 10:24:23 +0530 -- Dumping uploads ... 
2021-06-20 10:24:23 +0530 -- [SKIPPED]
2021-06-20 10:24:23 +0530 -- Dumping builds ... 
2021-06-20 10:24:23 +0530 -- [SKIPPED]
2021-06-20 10:24:23 +0530 -- Dumping artifacts ... 
2021-06-20 10:24:23 +0530 -- [SKIPPED]
2021-06-20 10:24:23 +0530 -- Dumping pages ... 
2021-06-20 10:24:23 +0530 -- [SKIPPED]
2021-06-20 10:24:23 +0530 -- Dumping lfs objects ... 
2021-06-20 10:24:23 +0530 -- [SKIPPED]
2021-06-20 10:24:23 +0530 -- Dumping container registry images ... 
2021-06-20 10:24:23 +0530 -- [DISABLED]
Creating backup archive: 1624164864_2021_06_20_11.10.8_gitlab_backup.tar ... done
Uploading backup archive to remote storage  ... skipped
Deleting tmp directories ... done
done
Deleting old backups ... skipping
Unpacking gitlab-ce (11.11.8-ce.0) over (11.10.8-ce.0) ...

dpkg: error processing archive /var/cache/apt/archives/gitlab-ce_11.11.8-ce.0_amd64.deb (--unpack):
 unable to open '/opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/rdoc-4.3.0/test/binary.dat.dpkg-new': Operation not permitted
Errors were encountered while processing:
 /var/cache/apt/archives/gitlab-ce_11.11.8-ce.0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

How can I resolve the error and update?