DEV Community

Dimitrios Desyllas
Dimitrios Desyllas

Posted on

Stuck on Debian Packaging

I try to upload my app ( https://github.com/pc-magas/mkdotenv/tree/dev ) into ppa as I explain here:

https://askubuntu.com/questions/1540907/why-i-am-unable-to-upload-the-orig-tar-gz-to-launchpad

But dput command keeps on refusing uploading the .orig.tar.gz file:

$export VERSION=0.1.0; dput ppa:pcmagas/mkdotenv ../mkdotenv_$VERSION.orig.tar.gz --force
Traceback (most recent call last):
  File "/usr/bin/dput", line 125, in <module>
    changes = dput.changes.parse_changes_file(
  File "/usr/lib/python3/dist-packages/dput/changes.py", line 339, in parse_changes_file
    _c = Changes(filename=filename)
  File "/usr/lib/python3/dist-packages/dput/changes.py", line 82, in __init__
    self._data = deb822.Changes(open(filename))
  File "/usr/lib/python3/dist-packages/debian/deb822.py", line 1874, in __init__
    self.split_gpg_and_payload(
  File "/usr/lib/python3/dist-packages/debian/deb822.py", line 1135, in split_gpg_and_payload
    for line_ in sequence:
  File "/usr/lib/python3/dist-packages/debian/deb822.py", line 1875, in <genexpr>
    (self._bytes(s, encoding) for s in sequence),
  File "/usr/lib/python3.10/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
    with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_bin_dput.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/dput", line 125, in <module>
    changes = dput.changes.parse_changes_file(
  File "/usr/lib/python3/dist-packages/dput/changes.py", line 339, in parse_changes_file
    _c = Changes(filename=filename)
  File "/usr/lib/python3/dist-packages/dput/changes.py", line 82, in __init__
    self._data = deb822.Changes(open(filename))
  File "/usr/lib/python3/dist-packages/debian/deb822.py", line 1874, in __init__
    self.split_gpg_and_payload(
  File "/usr/lib/python3/dist-packages/debian/deb822.py", line 1135, in split_gpg_and_payload
    for line_ in sequence:
  File "/usr/lib/python3/dist-packages/debian/deb822.py", line 1875, in <genexpr>
    (self._bytes(s, encoding) for s in sequence),
  File "/usr/lib/python3.10/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte

    package-managementppalaunchpad
Enter fullscreen mode Exit fullscreen mode

Do you know how to fix this?

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs