It would make sense to seperate the responsibilities, i.e. remove all apt/dpkg stuff from node server upstream https://github.com/hyperledger/indy-node/blob/04ca6647200992052289051788b686034a7a2359/indy_node/server/upgrader.py#L224