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?

AWS Q Developer image

Your AI Code Assistant

Generate and update README files, create data-flow diagrams, and keep your project fully documented. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

If this post resonated with you, feel free to hit ❤️ or leave a quick comment to share your thoughts!

Okay