Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to install on Debian 11 using Ubuntu 21.10 repo (update docs) #956

Closed
boudiccas opened this issue Jan 7, 2022 · 3 comments · Fixed by #976
Closed

Fails to install on Debian 11 using Ubuntu 21.10 repo (update docs) #956

boudiccas opened this issue Jan 7, 2022 · 3 comments · Fixed by #976
Assignees
Labels
documentation Request: Changes to documentation installation Issue: Problem when installing

Comments

@boudiccas
Copy link

boudiccas commented Jan 7, 2022

sudo apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  novelwriter
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/1,479 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
apt-listchanges warning: Unknown configuration file option: allow-insecure
dpkg-deb: error: archive '/var/cache/apt/archives/novelwriter_1.5.5~ubuntu21.10.0_all.deb' uses unknown compression for member 'control.tar.zst', giving up
Traceback (most recent call last):
  File "/usr/share/apt-listchanges/DebianFiles.py", line 124, in readdeb
    output = subprocess.check_output(command)
  File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['dpkg-deb', '-f', '/var/cache/apt/archives/novelwriter_1.5.5~ubuntu21.10.0_all.deb', 'Package', 'Source', 'Version', 'Architecture', 'Status']' returned non-zero exit status 2.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/bin/apt-listchanges", line 323, in <module>
    main(config)
  File "/usr/bin/apt-listchanges", line 104, in main
    pkg = DebianFiles.Package(deb)
  File "/usr/share/apt-listchanges/DebianFiles.py", line 358, in __init__
    parser.readdeb(self.path)
  File "/usr/share/apt-listchanges/DebianFiles.py", line 127, in readdeb
    raise RuntimeError(_("Error processing '%(what)s': %(errmsg)s") %
RuntimeError: Error processing '/var/cache/apt/archives/novelwriter_1.5.5~ubuntu21.10.0_all.deb': Command '['dpkg-deb', '-f', '/var/cache/apt/archives/novelwriter_1.5.5~ubuntu21.10.0_all.deb', 'Package', 'Source', 'Version', 'Architecture', 'Status']' returned non-zero exit status 2.
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
dpkg-deb: error: archive '/var/cache/apt/archives/novelwriter_1.5.5~ubuntu21.10.0_all.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive /var/cache/apt/archives/novelwriter_1.5.5~ubuntu21.10.0_all.deb (--unpack):
 dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/novelwriter_1.5.5~ubuntu21.10.0_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
@vkbo
Copy link
Owner

vkbo commented Jan 7, 2022

Hmm, I'm running Debian 11, and have novelWriter installed via Launchpad. It worked when I released it, and a reinstall ran just fine now. Either there is a difference in configuration, or there was an issue with the service when you ran the install.

I'm not an expert on dpkg, but a quick search reveals similar bug reports. Could you try running:

sudo apt install --fix-broken

@vkbo
Copy link
Owner

vkbo commented Jan 7, 2022

Disregard that. I now figured out the issue. You are using the Launchpad repo for Ubuntu 21.10. You should be using the one for Ubuntu 20.04 instead. 21.10 uses a different compression which Debian doesn't support.

I just switched to 21.10 locally and got the same error.

The procedure described in the docs works: https://novelwriter.readthedocs.io/en/latest/setup_linux.html

I'll add a note about it there to make people aware of this issue.

@vkbo vkbo added documentation Request: Changes to documentation installation Issue: Problem when installing labels Jan 7, 2022
@vkbo vkbo added this to the Release 1.6 Beta 2 milestone Jan 7, 2022
@vkbo vkbo self-assigned this Jan 7, 2022
@vkbo vkbo changed the title 1.5.5 fails to install on Debian 11 1.5.5 fails to install on Debian 11 using Ubuntu 21.10 repo (update docs) Jan 7, 2022
@vkbo vkbo changed the title 1.5.5 fails to install on Debian 11 using Ubuntu 21.10 repo (update docs) Fails to install on Debian 11 using Ubuntu 21.10 repo (update docs) Jan 7, 2022
@vkbo
Copy link
Owner

vkbo commented Jan 22, 2022

Don't close this. I'm keeping the ticket open to update the documentation.

@vkbo vkbo reopened this Jan 22, 2022
@vkbo vkbo closed this as completed in #976 Jan 25, 2022
vkbo added a commit that referenced this issue Jan 25, 2022
* Add note to docs about Ubuntu repo on Debian (issue #956)
* Add section on project storage to docs (covers issue #960)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Request: Changes to documentation installation Issue: Problem when installing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants