Remove python3-apport dependency

Asked by thiseyramo on 2020-04-20

Hi!

I have very specific requirements for a project I work, so we are using a customized ubuntu version, based on Ubuntu 18.04 LTS. Recently for security reasons, I can't install Python3 or any other scripting language in the OS, but the package xorg-server has python3-apport as a required dependency and in consequence python3 it's installed.

Is there any way to generate binary packages without this dependency?

I'm not talking about removing the dependency in the official package, I understand the reason for include apport there, all that I want is to generate a specific version for my installations, without this dependency.

I already tried downloading the sources (.dsc and .tar.gz) and generating a patch removing only the dependency from control file, but at the installation stage, the dependency still appears.

Any suggestions? ideas?

Greetings,

Omar Y.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu xorg Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Manfred Hampl (m-hampl) said : #1

Do a web search for "modify ubuntu deb package dependencies" or similar, and you will find several descriptions how you can modify the control file inside the deb package.

The important steps are

download the .deb file
dpkg-deb -x name-of-package.deb tmpdir
dpkg-deb --control name-of-package.deb
gedit tmpdir/DEBIAN/control
dpkg -b tmpdir new-name-of-package.deb
sudo dpkg --install new-name-of-package.deb

Can you help with this problem?

Provide an answer of your own, or ask thiseyramo for more information if necessary.

To post a message you must log in.