installation of .deb is failing
complete
M
Mike Dalessio
When installing screen-desktop_2.1.3_amd64.deb on Linux Mint 20 (derived from Ubuntu 20):
~ $ sudo dpkg -i ~/Downloads/screen-desktop_2.1.3_amd64.deb
Selecting previously unselected package screen-desktop.
(Reading database ... 357957 files and directories currently installed.)
Preparing to unpack .../screen-desktop_2.1.3_amd64.deb ...
Unpacking screen-desktop (2.1.3) ...
Setting up screen-desktop (2.1.3) ...
dpkg: error processing package screen-desktop (--install):
installed screen-desktop package post-installation script subprocess returned error exit status 1
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24+linuxmint1) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Errors were encountered while processing:
screen-desktop
~ $ apt show screen-desktop
Package: screen-desktop
Version: 2.1.3
Status: install ok half-configured
Priority: optional
Section: utils
Maintainer: Screen, Inc.
Installed-Size: 259 MB
Depends: libgtk-3-0, libnotify4, libnss3, libxss1, libxtst6, xdg-utils, libatspi2.0-0, kde-cli-tools | kde-runtime | trash-cli | libglib2.0-bin | gvfs-bin
Recommends: pulseaudio | libasound2
Suggests: gir1.2-gnomekeyring-1.0, libgnome-keyring0, lsb-release
Homepage: https://screen.so
Download-Size: unknown
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: Low latency videoconferencing & screen sharing with multiplayer drawing & control
Screen is a multiplayer screen sharing app that lets you work
together like you’re in the same room.
Log In
Mustafa Hashmi (Screen Team)
complete
The deb post-install script script will now copy the key file over if
apt-key
fails. This was released a while back, but we forgot to close the issue. Thank you for the suggestion Mike!J Sherwani (Pop Team)
Merged in a post:
[Ubuntu] Screen v3.0.x fails to install
F
Federico Biccheddu
On Ubuntu 20.04.1 LTS 64-bit i get the followin error while installing:
dpkg: error processing package screen-desktop (--configure):
installed screen-desktop package post-installation script subprocess returned error exit status 1
I did try to uninstall completely and install from scratch downloading the .deb file.
J Sherwani (Pop Team)
Mike Dalessio: Thanks again for the help!
Federico Biccheddu: Let us know if you're still having issues after following the steps Mike gave here. We'll also be working to incorporate a fix into the script so we no longer run into this issue, although this workaround should help you get up and running asap.
F
Federico Biccheddu
J Sherwani (Pop Team): unfortunately cannot install 3.0.2 even trying Mike Dalessio's solution.
Can I help in some way?
J Sherwani (Pop Team)
in progress
M
Mike Dalessio
I had a similar problem with earlier versions, and the issue was with unrelated gpg keys. Similar symptoms, and fix, here: https://askubuntu.com/questions/1246031/gpg-invalid-key-resource-url-following-docker-official-guide
My issue was filed under https://screen.canny.io/bugs/p/installation-of-deb-is-failing
M
Mike Dalessio
Hi! Thank you for your quick response.
v2.1.4 exhibits the same error message for me.
I went back and tried to install older versions of screen that previously installed cleanly -- back to v1.2.10 and v2.1.0 -- and they are also now exhibiting this error. My conclusion is that something has changed on my machine recently, but I don't know what that would be without digging into the configuration scripts.
I'd be happy to try to debug if you can help me by pointing at the config/installation scripts.
J Sherwani (Pop Team)
Mike Dalessio: Here are the scripts we use:
Deb:
https://packagecloud.io/install/repositories/screen/screen/script.deb.sh
RPM:
https://packagecloud.io/install/repositories/screen/screen/script.rpm.sh
Let us know if you find the issue.
M
Mike Dalessio
J Sherwani (Pop Team): Thanks, will look today.
J Sherwani (Pop Team)
I also just released an update (v2.1.4) built with a slightly different build environment. Could you test to see if that works?
J Sherwani (Pop Team)
Thanks for reporting this!
I just installed Mint 20 in a VM (tried with each of Cinnamon, Mate and Xfce, via https://www.linuxmint.com/download.php) and
sudo apt install screen-desktop_2.1.3_amd64.deb
worked for me. Are you able to reproduce this in a fresh install?M
Mike Dalessio
J Sherwani (Pop Team): OK, I dug into this a bit this morning. I believe the problem occurs during the
postinst
script, which I think explains why the package is "Status: install ok half-configured" (see https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#details-of-configuration).Specifically, the cron job that's installed returns a non-zero exit code for me on my machine. More specifically, the function
install_key
is returning 1
because apt-key add
is returning 1
.M
Mike Dalessio
OK - looks like I had a bad key configured from another project, and that was causing
apt-key add
to exit with code 1
. See https://askubuntu.com/questions/1246031/gpg-invalid-key-resource-url-following-docker-official-guide for similar problem and solution.I
think
this is why current best practice is to avoid using apt-key add
to add your project's key, and instead (from the apt-key man page):> a keyring should be placed directly in the /etc/apt/trusted.gpg.d/ directory with a descriptive name and either "gpg" or "asc" as file extension.
Hope this helps?
J Sherwani (Pop Team)
Mike Dalessio: Wow, this is very helpful — thank you so much!
@mustafa-hashmi: let's get this into the install script asap!