Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
2
votes
2
answers
6212
views
Problem when using alien to install Oracle SQL Developer
I am trying to use `alien --scripts` to make a `.noarch.rpm` file into a `.deb` file, however, it is not working. I am trying to install Oracle SQL Developer: I have downloaded the `sqldeveloper-4.0.3.16.84-1.noarch.rpm` package from [here][1]. alien --scripts sqldeveloper-4.0.3.16.84-1.noarch.rpm a...
I am trying to use
alien --scripts
to make a .noarch.rpm
file into a .deb
file, however, it is not working. I am trying to install Oracle SQL Developer:
I have downloaded the sqldeveloper-4.0.3.16.84-1.noarch.rpm
package from here .
alien --scripts sqldeveloper-4.0.3.16.84-1.noarch.rpm
at this point I would expect the file the file sqldeveloper_4.0.3.16.84-2_all.deb
to be created so I could call the following command to install it:
dpkg -i sqldeveloper_4.0.3.16.84-2_all.deb
However this is not the case. When I call alien --scripts sqldeveloper-4.0.3.16.84-1.noarch.rpm
I get a folder with the name sqldeveloper-4.0.3.16.84
. After looking in the folder, I have found that there is a large proportion of the program missing, the folder which contains all of the executable scripts to set up and run SQL Developer.
I am using a `Debian Linux sever, release 6.0.10.
Is there a way for me to make it create the .deb
file when I call the alien --scripts
command?
James
(143 rep)
Apr 4, 2015, 03:26 PM
• Last activity: Aug 1, 2025, 06:04 AM
0
votes
1
answers
2352
views
update-initramfs does not fully create initrd for new kernel
I seem to be having a bizarre problem installing a new custom kernel. `update-initramfs` fails during `dpkg -i` with: update-initramfs: Generating /boot/initrd.img-5.15.7-hardened1-test1 find: ‘/tmp/user/0/mkinitramfs_gHxWMQ/lib/modules/5.15.7-hardened1-test1/kernel’: No such file or directory Gener...
I seem to be having a bizarre problem installing a new custom kernel.
update-initramfs
fails during dpkg -i
with:
update-initramfs: Generating /boot/initrd.img-5.15.7-hardened1-test1
find: ‘/tmp/user/0/mkinitramfs_gHxWMQ/lib/modules/5.15.7-hardened1-test1/kernel’: No such file or directory
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.7-hardened1-r7
Found initrd image: /boot/initrd.img-5.15.7-hardened1-r7
Found linux image: /boot/vmlinuz-5.15.7-hardened1-test1
Found initrd image: /boot/initrd.img-5.15.7-hardened1-test1
Found linux image: /boot/vmlinuz-5.10.0-10-amd64
Found initrd image: /boot/initrd.img-5.10.0-10-amd64
done
The r7
kernel builds and installs perfectly fine, but the test1
installs with a find: ‘/tmp/user/0/mkinitramfs_gHxWMQ/lib/modules/5.15.7-hardened1-test1/kernel’: No such file or directory
error. The only difference between the .configs is:
29c29
CONFIG_LOCALVERSION="-test1"
39c39
# CONFIG_KERNEL_GZIP is not set
45c45
CONFIG_KERNEL_ZSTD=y
787c787
CONFIG_MODULE_FORCE_UNLOAD=y
802,803c802,803
# CONFIG_MODULE_COMPRESS_XZ is not set
> CONFIG_MODULE_COMPRESS_ZSTD=y
I even tried a slightly newer kernel (5.15.27) and older (5.10.104) with the same results. Trying to boot into the kernel drops the boot to a initramfs
prompt (without USB keyboard functionality) after failing to find the root LVM.
The initrd images also have very different sizes for the minimal changes made:
9.7M initrd.img-5.15.7-hardened1-r7 (working)
9.1M initrd.img-5.15.7-hardened1-test1 (broke)
Doing a diff between the two with lsinitrd
produces this, suggesting that the initrd does indeed lack a huge number of modules.
346,399c346
5.15.7-hardened1-test1
Anyone seen this before? I found one results through google but a solution was never provided.
I'm running Devuan Chimaera (Debian 11 base) with: initramfs-tools=0.140 & dpkg=1.20.9
bcHelix
(75 rep)
Mar 19, 2022, 11:39 PM
• Last activity: Jul 27, 2025, 03:07 AM
1218
votes
9
answers
3806270
views
How to install a deb file, by dpkg -i or by apt?
I have a deb package for installation. Shall I install by `dpkg -i my.deb`, or by `apt`? Will both handle the software dependency problem well? If by `apt`, how can I install from the deb by `apt`?
I have a deb package for installation.
Shall I install by
dpkg -i my.deb
, or by apt
?
Will both handle the software dependency problem well?
If by apt
, how can I install from the deb by apt
?
Tim
(106422 rep)
Oct 3, 2014, 03:52 PM
• Last activity: Jul 22, 2025, 02:10 PM
15
votes
9
answers
32426
views
How to find out if a specific package is installed on Debian?
I'm working with a Raspberry Pi B+ and Raspbian 5/5/2015 and some guides that are a few years old. I've got an external NTFS HDD hooked up to the Pi. Due to the articles age(s), common practices have changed, and it turns out that certain packages and features and functions are now built-in and/or a...
I'm working with a Raspberry Pi B+ and Raspbian 5/5/2015 and some guides that are a few years old. I've got an external NTFS HDD hooked up to the Pi. Due to the articles age(s), common practices have changed, and it turns out that certain packages and features and functions are now built-in and/or automatic.
For example, I found out that Raspbian will handle the automounting of an NTFS drive/volume if you just install ntfs-3g. All instructions and guidance I could find (IRC, raspberry pi forum, and a Linux dude I know) all went extremely technical doing who-knows-what to my system to try to assist me, when in reality we were all tripping over automatic features that no one knew about or thought to check. I've since installed Raspbian fresh to a new SD card and so far just turned on SSH, updated apt-get, and installed ntfs-3g.
This is the article I am using right now: http://www.howtogeek.com/139433/how-to-turn-a-raspberry-pi-into-a-low-power-network-storage-device/?PageSpeed=noscript
My next step is to get Samba up and running. Yes, I know Linux people hate Windows, but I'm a Windows guy, so until I can know enough about Linux for a Linux system to be my fallback, Windows machines are my fallbacks. Eventually this Raspberry Pi will get a multi-TB drive, though for right now it's just a few GB; which is why it needs to be NTFS.
I would like to check if Samba is installed, since the next step in my instructions tell me how to install and configure it. I've tried a few commands and I'm not sure what to do with the results or how to use them. I searched here and the technical details are above my capabilities and I don't think they address my seemingly simple need to find out if a package is installed or not.
I tried:
apt-cache dump
this gave me way too much data. It scrolled down for a few minutes. I got this from The Raspberry Pi Handbook 3rd Edition (Link - Amazon)
I tried
apt-cache showpkg samba
Package: samba
Versions:
2:3.6.6-6+deb7u5 (/var/lib/apt/lists/mirrordirector.raspbian.org_raspbian_dists_ wheezy_main_binary-armhf_Packages)
Description Language:
File: /var/lib/apt/lists/mirrordirector.raspbian.org_raspbian_d ists_wheezy_main_binary-armhf_Packages
MD5: 0122ac62ef5f4ae21eb2e195eb45ad1d
Reverse Depends:
winbind,samba 2.2.3-2
task-file-server,samba
swat,samba 2:3.6.6-6+deb7u5
smbclient,samba 2.999+3.0.alpha21-4
samba4-common-bin,samba 2:3.3.0~rc2-5
samba4,samba 2:3.3.0~rc2-5
samba-dbg,samba 2:3.6.6-6+deb7u5
samba-common-bin,samba 3.0.20b-1
samba-common,samba 3.0.20b-1
qtsmbstatus-server,samba
qemu-system,samba
nautilus-share,samba 3.0.27a
libwbclient0,samba 2:3.4.1
libpam-winbind,samba 2.2.3-2
libpam-smbpass,samba
libnss-winbind,samba 2.2.3-2
gadmin-samba,samba
education-main-server,samba
dpsyco-samba,samba
Dependencies:
2:3.6.6-6+deb7u5 - samba-common (5 2:3.6.6-6+deb7u5) libwbclient0 (5 2:3.6.6-6+d eb7u5) libacl1 (2 2.2.51-8) libattr1 (2 1:2.4.46-8) libc6 (2 2.13-28) libcap2 (2 2.10) libcomerr2 (2 1.01) libcups2 (2 1.4.0) libgcc1 (2 1:4.4.0) libgssapi-krb5 -2 (2 1.10+dfsg~) libk5crypto3 (2 1.6.dfsg.2) libkrb5-3 (2 1.10+dfsg~) libldap-2 .4-2 (2 2.4.7) libpam0g (2 0.99.7.1) libpopt0 (2 1.14) libtalloc2 (2 2.0.4~git20 101213) libtdb1 (2 1.2.7+git20101214) zlib1g (2 1:1.1.4) debconf (18 0.5) debcon f-2.0 (0 (null)) libpam-runtime (2 1.0.1-11) libpam-modules (0 (null)) lsb-base (2 3.2-13) procps (0 (null)) update-inetd (0 (null)) adduser (0 (null)) dpkg (2 1.15.7.2) openbsd-inetd (16 (null)) inet-superserver (0 (null)) smbldap-tools (0 (null)) ldb-tools (0 (null)) ctdb (0 (null)) logrotate (0 (null)) tdb-tools (0 (null)) samba4 (3 4.0.0~alpha6-2) samba-common (1 2.0.5a-2)
Provides:
2:3.6.6-6+deb7u5 -
Reverse Provides:
pi@raspberrypi ~ $ apt-cache showpkg ntfs-3g
Package: ntfs-3g
Versions:
1:2012.1.15AR.5-2.1+deb7u2 (/var/lib/apt/lists/mirrordirector.raspbian.org_raspbian_dists_wheezy_main_binary-armhf_Packages) (/var/lib/dpkg/status)
Description Language:
File: /var/lib/apt/lists/mirrordirector.raspbian.org_raspbian_dists_wheezy_main_binary-armhf_Packages
MD5: b2df024e8627b5d253b85f35263376ef
Reverse Depends:
udisks,ntfs-3g
ntfsprogs,ntfs-3g
ntfs-config,ntfs-3g
ntfs-3g-dev,ntfs-3g 1:2012.1.15AR.5-2.1+deb7u2
ntfs-3g-dbg,ntfs-3g 1:2012.1.15AR.5-2.1+deb7u2
kvpm,ntfs-3g
fsarchiver,ntfs-3g
Dependencies:
1:2012.1.15AR.5-2.1+deb7u2 - debconf (18 0.5) debconf-2.0 (0 (null)) libc6 (2 2.13-28) libfuse2 (2 2.8.1) libgcc1 (2 1:4.4.0) libgcrypt11 (2 1.4.5) libgnutls26 (2 2.12.17-0) multiarch-support (0 (null)) fuse (0 (null)) libntfs-3g75 (0 (null)) ntfsprogs (3 1:2011.10.9AR.1-3~) libntfs-3g75 (0 (null)) ntfsprogs (0 (null))
Provides:
1:2012.1.15AR.5-2.1+deb7u2 -
Reverse Provides:
pi@raspberrypi ~ $ apt-cache showpkg ntfsprogs
Package: ntfsprogs
Versions:
1:2012.1.15AR.5-2.1+deb7u2 (/var/lib/apt/lists/mirrordirector.raspbian.org_raspbian_dists_wheezy_main_binary-armhf_Packages)
Description Language:
File: /var/lib/apt/lists/mirrordirector.raspbian.org_raspbian_dists_wheezy_main_binary-armhf_Packages
MD5: 95f41af9cf1d0b5b66afb7d2a9e7c75d
Reverse Depends:
partitionmanager,ntfsprogs
ntfs-3g,ntfsprogs
ntfs-3g,ntfsprogs 1:2011.10.9AR.1-3~
gparted,ntfsprogs
fsarchiver,ntfsprogs
fai-setup-storage,ntfsprogs
Dependencies:
1:2012.1.15AR.5-2.1+deb7u2 - ntfs-3g (0 (null))
Provides:
1:2012.1.15AR.5-2.1+deb7u2 -
Reverse Provides:
but I'm not sure what to make of the results. I can't tell if it's going to apt-get the servers and getting information, or pulling it from my system.
I tried :
dpkg --get-selections
which I got from here:
http://www.howtogeek.com/howto/linux/show-the-list-of-installed-packages-on-ubuntu-or-debian/?PageSpeed=noscript
but I think I'm running into the same problem. It seems the syntax has changed since 2007. The man page / help file seems to lead me to believe that the command should work
Usage: dpkg [ ...]
--get-selections [ ...] Get list of selections to stdout.
but I get an error:
dpkg –get-selections samba
dpkg: error: need an action option
I found a few wuestions here that are related, but don't give me what I am looking for. I am interested in just knowing what's installed, but I guess that's a topic for another question.
* https://unix.stackexchange.com/questions/90523/what-packages-are-installed-by-default-in-debian-is-there-a-term-for-that-set
* https://unix.stackexchange.com/questions/113573/how-do-we-know-what-applications-are-installed-in-linux
* https://unix.stackexchange.com/questions/180822/loop-to-check-whether-a-debian-package-is-installed-or-not
* https://unix.stackexchange.com/questions/137295/determine-if-a-package-is-provided-by-an-installed-packagein-arch-linux
YetAnotherRandomUser
(497 rep)
Jul 19, 2015, 10:26 PM
• Last activity: Jul 7, 2025, 12:23 PM
0
votes
0
answers
37
views
What tells dpkg to rebuild/add a driver using dkms when removing/adding headers?
when I try to install qemu-kvm I get an error message that my own driver can not be added again to the DMKS tree. $ sudo apt -y install qemu-kvm Reading package lists... Done Building dependency tree... Done Reading state information... Done Note, selecting 'qemu-system-x86' instead of 'qemu-kvm' qe...
when I try to install qemu-kvm I get an error message that my own driver can not be added again to the DMKS tree.
$ sudo apt -y install qemu-kvm
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'qemu-system-x86' instead of 'qemu-kvm'
qemu-system-x86 is already the newest version (1:8.2.2+ds-0ubuntu1.7).
The following packages were automatically installed and are no longer required:
linux-headers-6.8.0-59 linux-headers-6.8.0-59-generic linux-image-6.8.0-59-generic linux-modules-6.8.0-59-generic
linux-modules-extra-6.8.0-59-generic linux-tools-6.8.0-59 linux-tools-6.8.0-59-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 98 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up mydriver-kmd (1.1.0) ...
Error! DKMS tree already contains: mydriver-1.1.0
You cannot add the same module/version combo more than once.
dpkg: error processing package mydriver-kmd (--configure):
installed mydriver-kmd package post-installation script subprocess returned error exit status 3
Errors were encountered while processing:
mydriver-kmd
The issue is that I am not trying to add a new kernel headers package or anything of that sort. It also says that qemu-system-x86 is already installed. But I am not sure what it was trying to add the mydrvier-kmd to the source tree again.
So, why dpkg thinks it needs to add my driver again to the dkms tree even though it was trying to remove Linux header packages? should not it try to remove my driver instead of try to add it?
What do I need to fix? How can I tell dpkg that it should not add my driver when removing Linux headers?
feeling_lonely
(101 rep)
Jun 23, 2025, 10:52 PM
0
votes
1
answers
25
views
Debian DSC patch file format has changed and not recognized by dpkg-source
For a long time I receieved some software as a patched set of files and it includes DSC file which was a text file and I run `dpkg-source -x *.dsc` command to extract sources. But this DSC file now is a compressed archive containing lot of folders and files and the command dpkg-source -x fails with...
For a long time I receieved some software as a patched set of files and it includes DSC file which was a text file and I run
dpkg-source -x *.dsc
command to extract sources. But this DSC file now is a compressed archive containing lot of folders and files and the command dpkg-source -x fails with
> dpkg-source: error: syntax error in {}.dsc at line 1: line with
> unknown format (not field-colon-value)
How to override this error? dpkg version is 1.22.20, all archives type support is included, the distro is not Debian-based (Arch).
Also in old text file the first string is Format: 3.0 (quilt)
and in the new archive debian/source/format has the same 3.0 (quilt)
string.
Almaz
(163 rep)
Jun 22, 2025, 10:45 AM
• Last activity: Jun 22, 2025, 11:20 AM
0
votes
0
answers
231
views
Alt Gr not working under antiX terminal
I have an antix installation which has this problem, when I'm trying to use Alt Gr + 2, the terminal just outputs the number 2, leaving me without the @ special character. This happens the same to the other special characters requiring Alt Gr or Ctl Alt. When I do a `dpkg-reconfigure keyboard-config...
I have an antix installation which has this problem, when I'm trying to use Alt Gr + 2, the terminal just outputs the number 2, leaving me without the @ special character. This happens the same to the other special characters requiring Alt Gr or Ctl Alt.
When I do a
dpkg-reconfigure keyboard-configuration
and restart the computer, I'm able to get the special characters, but randomly the problem gets back. With setupcon I can get it back but that's a little bit weird because when I power off or reboot the machine several times again the problem comes back.
Another strange thing is that when I open the X server on the machine the keyboard is able to output the special characters without any configuration.
So this looks like a terminal problem, could somebody give me some help please ?
Antix is based on Debian so I can try to use some solution related to Debian.
Contents of /etc/default/keyboard:
XKBMODEL="pc105"
XKBLAYOUT="es"
XKBVARIANT="winkeys" XKBOPTIONS="lv3:ralt_switch,terminate:ctrl_alt_bksp"
BACKSPACE="guess"
Adrián
(31 rep)
Jun 30, 2020, 10:32 PM
• Last activity: Jun 10, 2025, 07:55 PM
7
votes
2
answers
242
views
Prevent package upgrade with `apt`
I'm maintaining a Debian package for which we don't currently support upgrades. This means that upgrading this package will result in a broken installation due to configuration files not being properly tagged. How can I prevent users from upgrading my package once it is hosted in a debian repo? I tr...
I'm maintaining a Debian package for which we don't currently support upgrades. This means that upgrading this package will result in a broken installation due to configuration files not being properly tagged.
How can I prevent users from upgrading my package once it is hosted in a debian repo?
I tried with the following solutions:
### 1.
preinst
script check
I checked for currently installed versions of the project in the preinst
script and exited with an error if found one. This breaks the installation though, since preinst
script runs **after** the uninstallation of the previous version of the package.
### 2. Conflicts
directive in the control file
I added the entry:
Conflicts: project (> [version])
In the debian control
file of the project but this doesn't seem to prevent upgrades given that dpkg
**removes the previous version of the package** therefore satisfiying the Conflicts
.
### 3. Package name containing the version
I know this would work for sure but we'd like to avoid this kind of solution.
**Please note**: we want to solve this from the distribution side, not client-side (i.e. package pinning etc.)
mattdibi
(209 rep)
Jun 6, 2025, 01:05 PM
• Last activity: Jun 9, 2025, 06:47 AM
1
votes
2
answers
148
views
How can I properly merge Debian DVDs into a single ISO for offline installation without prompts for extra discs?
I want to create a single bootable Debian ISO by merging **DVD1**, **DVD2**, and **DVD3** of Debian 10.13.0. My goal is to install Debian **offline**, using one ISO, and have access to all packages from all three DVDs **without being prompted to insert other discs** during installation. --- ### What...
I want to create a single bootable Debian ISO by merging **DVD1**, **DVD2**, and **DVD3** of Debian 10.13.0.
My goal is to install Debian **offline**, using one ISO, and have access to all packages from all three DVDs **without being prompted to insert other discs** during installation.
---
### What I did:
I'm on macOS. Here's my full procedure:
brew install p7zip xorriso dpkg
mkdir -p ~/Desktop/operation/combined/{dvd1,dvd2,dvd3,merged}
cd ~/Desktop/operation
7z x debian-10.13.0-amd64-DVD-1.iso -ocombined/dvd1
7z x debian-10.13.0-amd64-DVD-2.iso -ocombined/dvd2
7z x debian-10.13.0-amd64-DVD-3.iso -ocombined/dvd3
cp -a combined/dvd1/. combined/merged/
cp -a combined/dvd2/pool/. combined/merged/pool/
cp -a combined/dvd3/pool/. combined/merged/pool/
cd combined/merged
mkdir -p dists/stable/main/binary-amd64
dpkg-scanpackages pool /dev/null > dists/stable/main/binary-amd64/Packages
gzip -k -f dists/stable/main/binary-amd64/Packages
cp -a ../dvd1/isolinux ./
cp -a ../dvd1/install ./
cp -a ../dvd1/.disk ./
cp -a ../dvd1/boot ./
cp -a ../dvd1/md5sum.txt ./
xorriso -as mkisofs \
-r -J -joliet-long -iso-level 3 \
-V "Debian Combined" \
-o ~/Desktop/debian-combined.iso \
-b isolinux/isolinux.bin \
-c isolinux/boot.cat \
-no-emul-boot -boot-load-size 4 -boot-info-table \
-eltorito-alt-boot \
-e boot/grub/efi.img \
-no-emul-boot \
.
### The problem:
During installation, I still get prompted to insert other DVD, If I say "No", installation proceeds but only ~218 packages are installed (from DVD1). Packages from DVD2 and DVD3 are not used.
### Question :
What am I missing to properly merge Debian DVDs into a single ISO that contains all packages and metadata, without the installer asking for additional DVDs?
student
(11 rep)
Jun 5, 2025, 08:55 PM
• Last activity: Jun 8, 2025, 06:45 AM
3
votes
4
answers
1677
views
apt: Query installed packages from a specific source
I'm trying to get a list of packages installed which come from my company's private apt repository. This works: ``` #!/bin/bash fqdn=$1 for pkg in $(dpkg-query --show | awk '{print $1;}'); do if apt-cache showpkg $pkg | grep -q $fqdn; then echo $pkg fi done ``` But running it on a system with ~3466...
I'm trying to get a list of packages installed which come from my company's private apt repository.
This works:
#!/bin/bash
fqdn=$1
for pkg in $(dpkg-query --show | awk '{print $1;}'); do
if apt-cache showpkg $pkg | grep -q $fqdn; then
echo $pkg
fi
done
But running it on a system with ~3466 (dpkg -l | wc -l
) packages installed takes 1m45.812s. That's an awful long time to display a "Scanning locally for installed packages" to my users.
Is there a better way to do this?
---
I tried replacing apt-cache showpkg
with apt show
to read the APT-Sources:
line. This warns about apt's unstable CLI interface and takes 15m35.913s.
Stewart
(15621 rep)
Jan 25, 2021, 03:04 PM
• Last activity: Jun 7, 2025, 09:12 PM
3
votes
1
answers
6001
views
sudo apt --fix-broken install ERROR
I am trying to do `sudo apt-get install kali-Linux-full` I'm running into this error that's preventing me from going further. I've tried to clean the file and also remove it but I don't have permissions even though I'm Root. New to Linux so any help, tips, or tricks would be really appreciated. ```...
I am trying to do
sudo apt-get install kali-Linux-full
I'm running into this error that's preventing me from going further. I've tried to clean the file and also remove it but I don't have permissions even though I'm Root. New to Linux so any help, tips, or tricks would be really appreciated.
root@host:~$ sudo apt-get install kali-linux-full
Reading package lists... Done
Building dependency tree
Reading state information... Done
kali-linux-full is already the newest version (2020.1.0).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
kali-linux-large : Depends: jsql-injection but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@host:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
freeglut3 gir1.2-notify-0.7 gir1.2-packagekitglib-1.0 gir1.2-polkit-1.0 gir1.2-secret-1
ibverbs-providers libhwloc5 libibverbs1 libpackagekit-glib2-18
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
jsql-injection
The following NEW packages will be installed:
jsql-injection
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1643 not fully installed or removed.
Need to get 0 B/1,982 kB of archives.
After this operation, 2,257 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
E: Invalid archive signature
E: Internal error, could not locate member control.tar.{zstlz4gzxzbz2lzma}
E: Prior errors apply to /var/cache/apt/archives/jsql-injection_0.81-0kali2_all.deb
debconf: apt-extracttemplates failed: No such file or directory
dpkg-deb: error: '/var/cache/apt/archives/jsql-injection_0.81-0kali2_all.deb' is not a Debian format archive
dpkg: error processing archive /var/cache/apt/archives/jsql-injection_0.81-0kali2_all.deb (--unpack):
dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/jsql-injection_0.81-0kali2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@host:~$
Newkaliuser
(31 rep)
Nov 30, 2019, 08:09 PM
• Last activity: May 31, 2025, 07:03 AM
2
votes
1
answers
89
views
Where are the LC_ locale global environment variables configured?
I want to change the language of my computer. I tried doing this with `sudo dpkg-reconfigure locales`. this changed the `LANG` environment variable in `/etc/default/locale` but none of the `LC` environment variables changed. `/etc/default/locale` says `# File generated by update-locale` so I presume...
I want to change the language of my computer. I tried doing this with
sudo dpkg-reconfigure locales
. this changed the LANG
environment variable in /etc/default/locale
but none of the LC
environment variables changed.
/etc/default/locale
says # File generated by update-locale
so I presume there is some correct way of generating this file so that the LC
variables are as desired.
Oddly, after changing the LC_
variables by hand and sourcing /etc/default/locale
when I rerun update-locale
the LC variables inside /etc/default/locale
keep their value rather than resetting to the old one. These also remain the same after a sudo dpkg-reconfigure locales
. So may you are meant to just change these variables by hand and thereafter all the tools will keep them the same?
Att Righ
(1412 rep)
May 27, 2025, 03:33 PM
• Last activity: May 27, 2025, 04:29 PM
0
votes
1
answers
3683
views
Problems with apt-listchanges after python upgrade (Debian)
After a Python 3.8 installation several problems arose with pip3. Since there was some conflict with a broken Anaconda, I reinstalled Anaconda and then I managed to fix it. But now `apt-get` seems to get broken and there is some problem with `apt-listchanges`: eric@debian:~$ sudo apt-get install lib...
After a Python 3.8 installation several problems arose with pip3. Since there was some conflict with a broken Anaconda, I reinstalled Anaconda and then I managed to fix it. But now
apt-get
seems to get broken and there is some problem with apt-listchanges
:
eric@debian:~$ sudo apt-get install liblzma-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
liblzma-dev is already the newest version (5.2.2-1.2+b1).
0 upgraded, 0 newly installed, 0 to remove and 118 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up apt-listchanges (3.10) ...
Deferring configuration of apt-listchanges until python3 is available
/var/lib/dpkg/info/apt-listchanges.postinst: 161: /var/lib/dpkg/info/apt-listchanges.postinst: python3: not found
dpkg: error processing package apt-listchanges (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
apt-listchanges
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried to reinstall it, but it failed:
eric@debian:~$ sudo dpkg --purge apt-listchanges
(Reading database ... 305278 files and directories currently installed.)
Removing apt-listchanges (3.10) ...
/var/lib/dpkg/info/apt-listchanges.prerm: 6: /var/lib/dpkg/info/apt-listchanges.prerm: py3clean: not found
dpkg: error processing package apt-listchanges (--purge):
subprocess installed pre-removal script returned error exit status 127
Deferring configuration of apt-listchanges until python3 is available
/var/lib/dpkg/info/apt-listchanges.postinst: 186: /var/lib/dpkg/info/apt-listchanges.postinst: py3compile: not found
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
apt-listchanges
I had a similar error with sudo apt install apt-listchanges
. I can't use apt or apt-get, it fails. By the way:
eric@debian:/usr/bin$ which python
/usr/bin/python
eric@debian:/usr/bin$ python --version
Python 2.7.13
eric@debian:/usr/bin$ which python3
eric@debian:/usr/bin$ which python3.8
/usr/local/bin/python3.8
eric@debian:/usr/bin$ python3.8 --version
Python 3.8.3
(I've tried lots of answers proposed in related questions, but I prefer to summarize the problem for readability reasons; I don't want my question to be as messy as my python installation)
Thanks in advance!
(System: Debian Stretch w/KDE Plasma. I7 8500U 16Gb)
EDIT:
I don't have a python3 symlink. Everything is fine with python 2.7:
eric@debian:~$ ls -l $(which python)
lrwxrwxrwx 1 root root 9 Jan 24 2017 /usr/bin/python -> python2.7
But with python3:
eric@debian:~$ ls -l $(which python3)
total 1508792
-rw-r--r-- 1 eric eric 8358 Oct 4 2019 041019
-rw-r--r-- 1 eric eric 26411849 Aug 12 2018 95681f94e7e4471b583d11b0c4cab198
drwxr-xr-x 26 eric eric 4096 May 18 22:33 anaconda3
drwxr-xr-x 11 eric eric 4096 Mar 3 01:34 Arduino
-rw-r--r-- 1 eric eric 2729653 May 13 2019 c17_hill.pdf
-rw-r--r-- 1 eric eric 1252901 Apr 8 2018 chromium-browser_56.0.2924.84-0ubuntu0.14.04.1.1011.deb
-rw-r--r-- 1 eric eric 5187109 Apr 8 2018 chromium-browser_56.0.2924.84-0ubuntu0.14.04.1.1011.deb.1
-rw-r--r-- 1 eric eric 34341 Apr 8 2018 chromium-browser_56.0.2924.84-0ubuntu0.14.04.1.1011.deb.2
-rw-r--r-- 1 eric eric 58968590 May 25 2017 chromium-browser_56.0.2924.84-0ubuntu0.14.04.1.1011.deb.3
-rw-r--r-- 1 eric eric 1231294 Jul 22 2019 default22.pdf
-rw-r--r-- 1 eric eric 1694387 Feb 13 2019 default.pdf
drwxr-xrwx 2 eric eric 4096 Jul 30 15:31 Desktop
drwxr-xrwx 109 eric eric 20480 Jul 30 15:17 Documents
drwxr-xrwx 7 eric eric 20480 Jul 30 20:06 Downloads
drwxr-xrwx 22 eric eric 4096 Jul 29 11:40 Dropbox
-rw-r--r-- 1 eric eric 2422 Apr 13 2018 equivs-dummy_1.0_all.deb
-rw-r--r-- 1 eric eric 141149 Feb 24 14:25 Figure_2.png
-rw-r--r-- 1 eric eric 1662625 Mar 27 2019 ganancias19.pdf
drwxr-xr-x 16 eric eric 4096 Feb 23 2018 hdf5-1.10.1
-rw-r--r-- 1 eric eric 15052127 Apr 27 2017 hdf5-1.10.1.tar.gz
-rw-r--r-- 1 eric eric 1508692 Jun 18 2018 IC-215-780-User-and-Operation-Manual-Manual.pdf
drwxr-xr-x 2 eric eric 4096 Sep 21 2019 King Crimson - Beat (40th Anniversary Series)
drwxr-xr-x 2 eric eric 4096 Sep 21 2019 King Crimson - Discipline - 2011 [flac]
drwxr-xr-x 2 eric eric 4096 Sep 7 2019 King Crimson {Three Of A Perfect Pair}
-rw-r--r-- 1 root root 0 Feb 28 2019 minicom.cap
-rw-r--r-- 1 eric eric 4592839 May 14 2019 muscle_hill.pdf
drwxr-xrwx 127 eric eric 4096 Sep 6 2019 Music
drwxr-xr-x 22 eric eric 4096 Feb 23 2018 netcdf-4.3.3
-rw-r--r-- 1 eric eric 1357215611 Apr 4 2018 NOOBS_v2_7_0.zip
-rw-r--r-- 1 eric eric 758 Dec 11 2019 nuevo13.kmz
drwxr-xr-x 3 eric eric 4096 Feb 23 2018 OceanColorProject
drwxr-xrwx 153 eric eric 20480 Jul 7 18:11 Pictures
drwxr-xrwx 2 eric eric 4096 Dec 28 2017 Public
-rw-r--r-- 1 root root 15229 Mar 1 2019 putty.log
drwxr-xr-x 18 eric eric 4096 May 15 22:10 Python-3.8.3
-rw-r--r-- 1 eric eric 17912964 May 13 18:48 Python-3.8.3.tar.xz
-rw-r--r-- 1 root root 1475 Apr 13 2018 python-pypdf
drwxr-xr-x 9 eric eric 4096 Feb 23 2018 seadas-7.4
-rw-r--r-- 1 root root 2340303 Apr 14 2018 status.bckup
-rw-r--r-- 1 root root 46846864 Dec 6 2017 teamviewer_i386.deb
drwxr-xrwx 2 eric eric 4096 Dec 28 2017 Templates
drwxr-xr-x 2 eric eric 4096 May 18 20:06 tmp
drwxr-xrwx 35 eric eric 4096 Jun 5 12:42 Videos
eric@debian:~$ ls -l $(which python3.8)
-rwxr-xr-x 1 root staff 17303968 May 15 22:11 /usr/local/bin/python3.8
I don't know if this is important, but it may help.
E Speranza
(23 rep)
Jul 10, 2020, 08:44 PM
• Last activity: May 26, 2025, 03:04 PM
0
votes
1
answers
2006
views
How can I install and resolve the dependencies for the WPS Office 2016 release?
**OS: Ubuntu 17.10** In a nut shell, WPS Office released a new Linux update **Aplha21**. I have installed it and tried to get it working by downloading the package from the site and running: **sudo dpkg --install _` `_**. However, the package fails to install from a lacking dependency; "libpng12-0"....
**OS: Ubuntu 17.10**
In a nut shell, WPS Office released a new Linux update **Aplha21**. I have installed it and tried to get it working by downloading the package from the site and running: **sudo dpkg --install _``_**. However, the package fails to install from a lacking dependency; "libpng12-0". How best to install this package is the greatest concern.
r00t hkr
(66 rep)
Jun 20, 2017, 05:34 PM
• Last activity: May 25, 2025, 02:03 AM
0
votes
1
answers
2773
views
dpkg: error processing package postfix (--configure)
When I try install postfix I'm receiving following error: root@myvps:~# apt install postfix Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: postfix-sqlite Suggested packages: postfix-mysql postfix-pgsql pos...
When I try install postfix I'm receiving following error:
root@myvps:~# apt install postfix
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
postfix-sqlite
Suggested packages:
postfix-mysql postfix-pgsql postfix-ldap postfix-pcre postfix-lmdb sasl2-bin
dovecot-common resolvconf postfix-cdb ufw postfix-doc
The following NEW packages will be installed:
postfix postfix-sqlite
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1,755 kB of archives.
After this operation, 4,378 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
Selecting previously unselected package postfix-sqlite.
(Reading database ... 66632 files and directories currently installed.)
Preparing to unpack .../postfix-sqlite_3.1.8-0+deb9u1_amd64.deb ...
Unpacking postfix-sqlite (3.1.8-0+deb9u1) ...
Selecting previously unselected package postfix.
Preparing to unpack .../postfix_3.1.8-0+deb9u1_amd64.deb ...
Unpacking postfix (3.1.8-0+deb9u1) ...
Processing triggers for systemd (232-25+deb9u2) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up postfix-sqlite (3.1.8-0+deb9u1) ...
grep: /etc/postfix/dynamicmaps.cf: No such file or directory
Adding sqlite map entry to /etc/postfix/dynamicmaps.cf
Processing triggers for rsyslog (8.24.0-1) ...
Setting up postfix (3.1.8-0+deb9u1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/postfix.service → /lib/systemd/system/postfix.service.
Adding group `postdrop' (GID 118) ...
Done.
setting myhostname: myvps
setting alias maps
setting alias database
setting myorigin
setting destinations: $myhostname, example.com, myvps, localhost.localdomain, localhost
setting relayhost:
setting mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
setting mailbox_command
setting mailbox_size_limit: 0
setting recipient_delimiter: +
setting inet_interfaces: all
setting inet_protocols: all
Postfix (main.cf) is now set up with a default configuration. If you need to
make changes, edit /etc/postfix/main.cf (and others) as needed. To view
Postfix configuration values, see postconf(1).
After modifying main.cf, be sure to run 'service postfix reload'.
Running newaliases
newaliases: fatal: scan_dir_push: open directory /etc/postfix/dynamicmaps.cf.d: Permission denied
dpkg: error processing package postfix (--configure):
subprocess installed post-installation script returned error exit status 75
Processing triggers for systemd (232-25+deb9u2) ...
Processing triggers for rsyslog (8.24.0-1) ...
Errors were encountered while processing:
postfix
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
Why dpkg fails when I try install postfix?
The output of
ls -ld /etc/postfix/dynamicmaps.cf.d
:
ls: cannot access '/etc/postfix/dynamicmaps.cf.d': No such file or directory
user227030
Mar 16, 2018, 02:52 PM
• Last activity: May 7, 2025, 08:03 PM
0
votes
0
answers
68
views
Kernel headers for 6.14.3-061403-generic not found
I have a package for a driver that I'm trying to build and deploy on 6.14.3. However the build breaks with the error: Building for 6.14.3-061403-generic Building for architecture amd64 Module build for kernel 6.14.3-061403-generic was skipped since the kernel headers for this kernel does not seem to...
I have a package for a driver that I'm trying to build and deploy on 6.14.3. However the build breaks with the error:
Building for 6.14.3-061403-generic
Building for architecture amd64
Module build for kernel 6.14.3-061403-generic was skipped since the
kernel headers for this kernel does not seem to be installed.
I cannot find the specified headers in any apt repository so far:
$ apt list linux-headers-6.14.3-061404-generic
Listing... Done
Can anybody advise me where I can find these headers?
Update: I've done:
sudo apt install linux-headers-$(uname -r)
which results in:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package linux-headers-6.14.3-061403-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'linux-headers-6.14.3-061403-generic' has no installation candidate
How do I fix this? Is there a repository I'm missing? I can see it here https://kernel.ubuntu.com/mainline/v6.14.3/amd64/linux-headers-6.14.3-061403_6.14.3-061403.202504200838_all.deb so why can't apt install retrieve it too?
user735142
Apr 24, 2025, 03:43 PM
• Last activity: Apr 26, 2025, 03:03 PM
1
votes
1
answers
2417
views
dpkg dependencies problem
I'm having problem upgrading my Debian 10 Linux machine. After I input the `sudo apt update && upgrade` and all downloaded completed, I ran into dependencies problem that I ought to have fix by `sudo apt --fix-broken install` but still run into following error: ```none E: Invalid archive signature E...
I'm having problem upgrading my Debian 10 Linux machine. After I input the
sudo apt update && upgrade
and all downloaded completed, I ran into dependencies problem that I ought to have fix by sudo apt --fix-broken install
but still run into following error:
E: Invalid archive signature
E: Internal error, could not locate member control.tar.{zstlz4gzxzbz2lzma}
E: Prior errors apply to /var/cache/apt/archives/libpolkit-agent-1-0_0.105-30_amd64.deb
debconf: apt-extracttemplates failed: No such file or directory
dpkg-deb: error: '/var/cache/apt/archives/libpolkit-agent-1-0_0.105-30_amd64.deb' is not a Debian format archive
dpkg: error processing archive /var/cache/apt/archives/libpolkit-agent-1-0_0.105-30_amd64.deb (--unpack):
dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/libpolkit-agent-1-0_0.105-30_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)*****
The dependencies will never allow me to install any package on my terminal anymore unless I clear the unpacking dependencies problem. 
Adex
(49 rep)
Feb 13, 2021, 06:05 PM
• Last activity: Apr 26, 2025, 01:05 AM
1
votes
0
answers
40
views
Difference between "await" and "noawait" dpkg triggers
What is the difference between "await" and "noawait" dpkg triggers? How do they behave differently? I've read all of the following resources in their entirety and I still can't work out what the difference between the trigger types is: - https://manpages.debian.org/bookworm/dpkg-dev/deb-triggers.5.e...
What is the difference between "await" and "noawait" dpkg triggers? How do they behave differently?
I've read all of the following resources in their entirety and I still can't work out what the difference between the trigger types is:
- https://manpages.debian.org/bookworm/dpkg-dev/deb-triggers.5.en.html
- https://stackoverflow.com/questions/15276535/dpkg-how-to-use-trigger
- https://web.archive.org/web/20111022012105/http://www.seanius.net/blog/2009/09/dpkg-triggers-howto/
- https://git.dpkg.org/cgit/dpkg/dpkg.git/tree/doc/spec/triggers.txt
The most I can gather is that for "await" type triggers the "calling package awaits the processing of this trigger", but I'm not able to determine what that means in terms of the precise timing of all the actions that occur.
In particular, I'm trying to figure out when the interested package's
postinst triggered
is executed relative to the triggering package's postinst configure
in "await" vs "noawait" triggers, but I'm also interested in any other differences between these two trigger methods.
Jason C
(1585 rep)
Apr 25, 2025, 03:45 PM
• Last activity: Apr 25, 2025, 04:08 PM
1
votes
2
answers
19452
views
How to install the package 'dpkg' from the AUR
Today I installed Archlinux and I tried to install the following package 'dpkg' from the AUR. I tried 2 methods: pacman -S dpkg and after that failed I downloaded the *.tar.gz and tried: pacman -U dpkg.tar.gz At the first option I got the following error: [root@localhost andreas]# pacman -S dpkg Feh...
Today I installed Archlinux and I tried to install the following package 'dpkg' from the AUR. I tried 2 methods:
pacman -S dpkg
and after that failed I downloaded the *.tar.gz and tried:
pacman -U dpkg.tar.gz
At the first option I got the following error:
[root@localhost andreas]# pacman -S dpkg
Fehler: Ziel nicht gefunden: dpkg
and at the second option I got this error:
[root@localhost Downloads]# pacman -U dpkg.tar.gz
Lade Pakete...
Fehler: Fehlende Paket-Metadaten in dpkg.tar.gz
Fehler: 'dpkg.tar.gz': Ungültiges oder beschädigtes Paket
The error is in German and means "Invalid or Damaged Package".
I don't get why pacman can't find the package because it's here:
https://aur.archlinux.org/packages/dpkg
I'm fairly new to Archlinux, I have mainly used Debian and its Derivates before.
Aragok
(113 rep)
Feb 9, 2015, 02:33 PM
• Last activity: Apr 14, 2025, 12:12 PM
2
votes
1
answers
2680
views
"Tried to start delayed item" ... "but failed" in output of apt-get install
I've recently started to use new distro (Linux Mint 21, which I've read is based on Ubuntu 22.04). And when installing some packages I often see many same lines near end of `apt-get install` output: "Tried to start delayed item" http...ubuntu jammy package-name "but failed" Web search for "Tried to...
I've recently started to use new distro (Linux Mint 21, which I've read is based on Ubuntu 22.04). And when installing some packages I often see many same lines near end of
apt-get install
output:
"Tried to start delayed item" http...ubuntu jammy package-name "but failed"
Web search for "Tried to start delayed item" "but failed" found only couple of links, with bugs (I saw only submission of bugs, no discussion). I also was not able to find "delayed item" for apt-get, what it is.
What those delayed items are and what does the error mean? TIA
Alex Martian
(1287 rep)
Dec 9, 2022, 04:54 PM
• Last activity: Apr 12, 2025, 05:02 AM
Showing page 1 of 20 total questions