Questions tagged [dpkg]
dpkg is a tool to install, build, remove and manage Debian packages.
550
questions
0
votes
0
answers
18
views
Linux Ubuntu broken pipe [closed]
i have a little big problem i think, i cant make any tipe of updates in my system becouse a broken pipe, i dont know what happend but now i am trying to make a few things but this happen.
I search and ...
-1
votes
0
answers
13
views
unmet dependencies error while installing tensorrt on ubuntu
I installed TensorRT on my computer, but as you see, I installed the wrong version(I use deb to install). So I downloaded the correct version of the deb package. When I try to install the correcr ...
0
votes
0
answers
8
views
openmediavault updater stuck on rpi3
I was updating packages on my omv (6.3.5-2) through the webinterface of omv. Then I automatically logged off from the web UI because of inactivity but the update was not done yet. Then I logged in ...
0
votes
0
answers
14
views
dpkg cannot handle `Depends:` part in DEBIAN control file
I'm studying how to make a .deb file and install it on Ubuntu.
I made a simple binary file hello-world with GCC, which print out just one sentence.
I packaged the executable successfully using dpkg.
...
0
votes
0
answers
5
views
How to package Node.js project into an executable
I have an old project files that consists of 4 modules:
Module-1
|-server
|-app.js
Module-2
|-server.js
Module-3
|-server.js
Module-4
|-server.js
|-src
|-api.js
Is it possible to create one ...
-1
votes
1
answer
7
views
Purging Debian dpkg-deb config information complately
I am creating a debian package (.deb)
I wanted to get answer to some questions.
Somehow, installation of newly created .deb file was not asking question after asking once, even if package is purged
...
0
votes
0
answers
37
views
dpkg issue while installing packages on ubuntu 18
when i try to install any package, its giving below error
Setting up python3.6-minimal (3.6.9-1~18.04ubuntu1.9) ...
dpkg-query: warning: files list file for package 'libpython3.6-minimal:amd64' ...
0
votes
0
answers
21
views
How to build debian package for multiple architectures?
I have an application which I build using conan with different profiles for arm32, arm64 and x86_64.
I am trying to make a debian package which would contain all 3 versions of the application and ...
0
votes
0
answers
31
views
PostgreSQL installation hangs after password prompt
I am trying to install PostgreSQL on an AWS cloud CPU instance (instance type: c5.24xlarge, Ubuntu 20.04 LTS).
I have tried both sudo apt install postgresql postgresql-contrib, as well as installing ...
0
votes
0
answers
53
views
dpkg error when running sudo apt-get install build-essential
I tried to run this command in my terminal: sudo apt-get install build-essential and keep getting this error:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale ...
0
votes
0
answers
109
views
Issues with unminimize script in Ubuntu 22.04
Unminize script in my system (Ubuntu 22.04) minimize man-db package and when I try to fix it I'm get error like that:
The following packages will be upgraded: grub-common grub-pc grub-pc-bin grub2-...
0
votes
0
answers
18
views
Noninteractive upgrade from debian10 to debian 11 return error from [duplicate]
I have several machines running Debian10 which I want to upgrade to Debian11 using a python script triggered to run from remote. The machines have packages like 'apt, sudo , grep' prompting different ...
0
votes
0
answers
140
views
Problems updating packages in Linux Mint
I'm having some issues when updating packages in Linux Mint 21.1 Vera. When I start the update manager and try to install all the updates, this pop-up appears
Error pop-up image
Then, if I take this ...
0
votes
1
answer
73
views
How can I run `sudo dpkg --configure -a` headless with "[info] Restarting NetworkManager"
An installation was interrupted. To fix it, I need to run
sudo dpkg --configure -a
However, I'm headless (Ubuntu, Raspberry Pi), and connect via ssh. dpkg wants to restart the network manager, i.e., ...
1
vote
0
answers
753
views
dpkg: error processing package python3-minimal (--configure):
apt --fix-broken install returns this:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will ...
-1
votes
1
answer
65
views
Ansible with dpkg-reconfigure command [closed]
How to write Ansible YAML for tasks done using dpkg-reconfigure command that ask question during the process?
Example
sudo dpkg-reconfigure slapd
I was trying to write an Ansible playbook to automate ...
0
votes
0
answers
223
views
I'm having trouble running apt-get upgrade after installing all of the tools from Katoolin3
I installed katoolin3 in my Ubuntu 22.04 LTS Jammy release. I can't run the "sudo apt-get upgrade" command, and I can't fix the problem with "sudo apt --fix-broken install."
...
0
votes
1
answer
36
views
how can I install mysql without errors?
This installation of MySQL is already upgraded to 5.7.40, use --force if you still need to run mysql_upgrade
dpkg: error processing package mysql-server-5.7 (--configure):
installed mysql-server-5.7 ...
0
votes
1
answer
37
views
Why am I getting dpkg error while installing rundeck?
I am getting the following output when I install rundeck with this command sudo dpkg -i rundeck_3.3.13.20210614-1_all.deb
The error is:
usermod: user rundeck is currently used by process 1151
dpkg: ...
0
votes
1
answer
129
views
"sudo dpkg --force-confdef --force-confold --configure -a" shows dialog
I am trying to run this unattended but I keep getting presented with this dialog by unattended-upgrades:
I can see this in ps:
$ ps aux | grep -i frontend
root 348793 0.0 0.1 24992 19644 pts/...
0
votes
0
answers
42
views
symlink in binary `.deb` package
When creating a binary .deb package
mypkg
/DEBIAN
- control
/path
/to
- mypkg.so
What is the best way to include a symlink to /path/to/mypkg.so from /some/other/path/mypkg.so?
...
0
votes
0
answers
20
views
I used the ddpkg-buildpackage tool to generate the deb package in linux, and the dynamic library of the dependent report could not be found
My project is based on QT5.14 and relies on the mxml library and libhv library. Now to port to Ubuntu, I choose to use ddpkg-buildpackage to generate the deb package. Run the dpkg-buildpackage -b -...
0
votes
0
answers
28
views
Check if package is installed, if not install it - Debian & RHEL in one script
I'd like to have bash script to check if a program is installed, and if not, to install it.
Could I run the same script on Debian and RHEL distributions?
The package will be installed from source with ...
0
votes
0
answers
47
views
Cross-compile Python code into deb package for distribution (host: Ubuntu x86-64, target: Raspbian ARM)
I have written a group of Python modules and scripts I use for some system checks on several RPIs I am running. Now it is getting hard to pull and update on all of them, and I wanted to make a nice ...
0
votes
0
answers
44
views
How do I install dependency packages that depend on each other?
I would like to install the libnss3.deb and libnss-nssdb.deb packages in Ubuntu 16.04.
So I entered the following command to install libnss3.
sudo dpkg -i libnss3_2%3a3.28.4-0ubuntu0.16.04.14_amd64....
0
votes
0
answers
6
views
Error while redownloading android-sdk in debian linux
I'm having trouble in re-downloading android-sdk on my debian-based linux machine, I deleted it accidentally and now I can't re-download it.
I tried these commands:
# apt install --reinstall android-...
0
votes
0
answers
131
views
Any best practice for upgrading python version in Linux?
i simply remove all the reference of my python3.9 and install a python3.11 instead,
then all the depencency problems showed up, for example my "terminator" not worked,
You need to install ...
1
vote
1
answer
274
views
dpkg: error processing archive ( On installing Nodejs)
This error occurred while installing nodejs](https://i.stack.imgur.com/JMRiT.jpg)
I am trying to install nodejs but facing this error while installing.
1
vote
0
answers
145
views
C++ how to make a service self-update on Linux?
I have a fairly complex application with several components designed to keep each other running. It's supposed to be run in as a demon with superuser privileges. (Currently testing on Ubuntu 20.04)
...
0
votes
0
answers
39
views
Google Artifact Registry generating incorrect Debian Packages checksums
I'm using Google Artifact Registry to host some deb files, however it seems like the MD5sum generated in the Packages file doesn't line up with the md5 generated in the deb file. How does this happen/...
0
votes
0
answers
33
views
ubuntu server 20.04 lts install package python3-numpy error
when I install python-numpy an error occur like below:
then I run sudo apt --fix-broken install, error also exist like below:
Selecting previously unselected package linux-headers-5.4.0-128.
(...
1
vote
1
answer
322
views
How do I solve a dpkg cyclic dependency?
I was trying to profile some program for which I needed perf. It wasn't installed so when I tried to launch (perf stat ./part1) it with my executable I got:
Command 'perf' not found, but can be ...
0
votes
0
answers
295
views
Errors were encountered while processing: python3.5-minimal python3-minimal
I am trying to import tensorflow in my code, but whenever I try to do that I get this error
Traceback (most recent call last):
File "background_blur.py", line 16, in <module>
import ...
0
votes
0
answers
61
views
Apt find/uninstall packages from removed repository
If I add a repo, install some packages from it, them remove the repo from my source list. How can I automatically delete all packages from this repo?
Scenario
apt add repository strange_repo
apt ...
0
votes
1
answer
109
views
dpkg: why does instdir need admindir parameter on Mint 21
We create a Debian package of our application using CPack which can be installed on Linux Mint 19 like this:
$ sudo dpkg -i --instdir=/opt myapp.deb
With Linux Mint 21 the (installed) dependencies are ...
1
vote
0
answers
194
views
dpkg-deb fails with "dpkg-deb: error: tar -cf subprocess returned error exit status 1"
I'm trying to package a custom-built version of OpenCV into a .deb file.
I've done this several times with other projects, but this time, dpkg-deb fails unrecoverable with
root@ml:/.../# dpkg-deb --...
0
votes
0
answers
32
views
Downgrade vs-code to minor version with dpkg or other?
I tried install this version
https://code.visualstudio.com/updates/v1_63
with dpkg -i code_1.63.2-1639562499_amd64.deb but vs-code still with 1.70
I did disabled update mode to none. restarted the ...
0
votes
0
answers
66
views
dpkg return (error no. 141) broken pipe error when called from shell script after closing stdin
Below is the shell script content
log=/root/logs.log
exec 0<&- # Close stdin
exec 1>$log # Redirects stdout to log file
exec 2>&1 # Redirect stderr to stdout
...
1
vote
1
answer
98
views
'Package swig is not installed' when installing with dpkg, but visible with swig -version in terminal?
I've been working at this for a while now, and I feel like I'm going in circles. I'm trying to install oresat-star-tracker using dpkg, and it depends on swig version 4.0.1 or greater.
Apt doesn't have ...
-1
votes
1
answer
1k
views
Install *.deb file with "apt install"
What's the difference between installing a *.deb file with dpkg vs. apt?
I've been installing *.deb packages that I download (like Zoom) using "sudo apt install ./zoom-file.deb". It seems to ...
0
votes
0
answers
511
views
How to install apt or pkg in Pydroid 3
I want to install apt or pkg package manager and Termux repositories (main-repo, root-repo, x11-repo) on Pydroid 3. How can I do this? Help me please!
0
votes
0
answers
83
views
Debian package creation: how to automatically run package after installation?
I've written a Python script that I want to distribute as a .deb file for Raspbian systems. I've used the updated answer for Python3 here https://askubuntu.com/a/1378492 as the basis for this. This ...
0
votes
1
answer
41
views
Dpkg force stop after preinst
I build my own package and I need to check something on the system before the install process.
So in my dpkg I add a preinst script which is written as follow. As an example I want to check if the ...
0
votes
0
answers
282
views
Permissions error trying to build a debian file
I am running dpkg-deb --build . in the file directory where the resources for building my desktop file are, and i keep getting the error dpkg-deb: error: control directory has bad permissions 711 (...
3
votes
3
answers
8k
views
Configuring dpkg fails with error "Package dpkg is not configured yet." [closed]
Something is definitely discombobulated and it's related to dpkg. No idea what caused it. Here are the symptoms:
The commands sudo apt upgrade, sudo apt install <any package>, sudo apt remove &...
0
votes
0
answers
31
views
How to disable a file changing while "dpkg -i a.deb" where a.deb includes this file ? How to disable removing a.deb?
1.In rpm, we can edit /etc/rpm/files to keep some system file to guard
against changing from other installing rpms.
2.In rpm, we can edit /etc/rpm/pkgs to disable removing some critical rpms.
3.In rpm,...
1
vote
1
answer
398
views
Parse dpkg command output to JSON in Go
I'm trying to convert exec output to json format. I just want to read a single string from the output, what would be the right way to do it. I thought about jq also but didn't work for me.
Here is the ...
0
votes
0
answers
26
views
Problem after removing ghostscript extra packages are removed automatically and screen is black
How its happened?
Very simple by just removing the ghostscript package.
In the dpkg log it seems the following packages are removed after ghostscript uninstallation: gnome-shell, gnome-settings-...
0
votes
0
answers
1k
views
Tried reinstalling python on ubtuntu: dpkg: error processing package software-properties-common (--configure)
I wanted to update python 3.8 to 3.10 but ran into some issues which is why I wanted to reinstall python, however, when removing it, I ran into even more issues and now I am unsure of what to do.
I am ...
0
votes
1
answer
164
views
Using dpkg in multi thread decompression
I have the following problem , i need to run installation process using DPKG but on all CPU cores , all i can find are ways to compress the files using pixz after dpkg source code modification but ...