Debian package not recognizing that it is already installed.

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Hultan
Level 3
Level 3
Posts: 178
Joined: Mon Aug 27, 2018 10:58 am

Debian package not recognizing that it is already installed.

Post by Hultan »

Hopefully someone on this forum knows little bit about debian packages. I have created my first *.deb package and it installs and executes correctly, but there are some minor issues:

1. The icon in the software manager (under installed programs) is the generic one, and not the one specified in the desktop-file. The application is correct in the start menu,

2. When I double click on *.deb-file created by another company, in this case, Mullvad VPN, I get a message that says that the same version is already installed and I get the option to reinstall it, When I double click on my *.deb file I don't get that message and I get the option to install the application, even though it is already installed. I would like it to recognize that it is already installed.

Does anyone know what is required in a debian package to make these things work correctly?

Description of the package

I have created the preinstall, postinstall, prerm, postrm files, they do contain only one line though:

Code: Select all

 #!/bin/bash
I added these empty four files because I thought that maybe prerm and postrm triggered the upgrade/reinstall functionality.

My control file looks like this:

Code: Select all

Section: video
Package: softTube
License: MIT
Vendor: SoftTeam AB
Version: 2.6.9
Architecture: amd64
Essential: no
Priority: optional
Depends: smplayer
Installed-Size: 11 258
Maintainer: Per Hultqvist
Description: A YouTube client created by SoftTeam AB
In addition, I of course have my executable in [ROOT]/usr/bin/. The structure:

Code: Select all

[ROOT]
 |- DEBIAN
 |  |-control
 |  |-preinstall    (executable)
 |  |-postinstall   (executable)
 |  |-prerm         (executable)
 |  |-postrm        (executable)
 |
 |- usr
      |- bin
      |    |- softtube
      |
      |- share
            |-applications
            |     |- softtube.desktop
            |- icons
                  |- softtube.png
The desktop file :

Code: Select all

[Desktop Entry]
Version=1.0
Name=SoftTube
GenericName=SoftTube
Exec=//usr/bin/softtube
Terminal=false
Type=Application
Categories=Video;AudioVideo;
Icon=/usr/share/icons/softtube.png
StartupWMClass=SoftTube
Comment=A YouTube client created by SoftTeam AB.
Keywords=softtube;youtube;video;internet;media;
Last edited by LockBot on Thu Jun 01, 2023 10:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Locked

Return to “Software & Applications”