Quantcast
Viewing latest article 29
Browse Latest Browse All 49

Why I am unable to upload the .orig.tar.gz to launchpad?

In my project: https://github.com/pc-magas/mkdotenv/tree/dev I try to upload the sources and release my package for that I used the following Makefile:

VERSION := $(shell grep 'const VERSION' ./src/mkdotenv.go | sed -E 's/.*"([^"]+)".*/\1/')DIST ?= jammyppa:    cp ./debian/changelog ./changelog.debian    # I want to build for multiple versions    sed -i 's/unstable/$(DIST)/g' debian/changelog    tar --exclude=debian --exclude=alpinebuild -czf ../mkdotenv_$(VERSION).orig.tar.gz src man Makefile    dpkg-buildpackage -S    dput ppa:pcmagas/mkdotenv ../mkdotenv_$(VERSION)-3_source.changes ../mkdotenv_$(VERSION).orig.tar.gz    cp ./changelog.debian ./debian/changelog

Then I build it as:

export DEB_SIGN_KEYID=^key_id^make ppa

But I got the error:

dput ppa:pcmagas/mkdotenv ../mkdotenv_0.1.0-3_source.changes ../mkdotenv_0.1.0.orig.tar.gzUploading mkdotenv using ftp to ppa (host: ppa.launchpad.net; directory: ~pcmagas/mkdotenv)running supported-distribution: check whether the target distribution is currently supported (using distro-info){'allowed': ['release'], 'known': ['release', 'proposed', 'updates', 'backports', 'security']}running required-fields: check whether a field is present and non-empty in the changes filerunning checksum: verify checksums before uploadingrunning suite-mismatch: check the target distribution for common errorsrunning check-debs: makes sure the upload contains a binary packagerunning gpg: check GnuPG signatures before the uploadUploading mkdotenv_0.1.0-3.dscUploading mkdotenv_0.1.0-3.debian.tar.xzUploading mkdotenv_0.1.0-3_source.buildinfoUploading mkdotenv_0.1.0-3_source.changesTraceback (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 byteError 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 bytemake: *** [Makefile:49: ppa] Error 1

After testing I found out if I try to dput only the .orig.tar.gz I get the error:

$export VERSION=0.1.0; dput ppa:pcmagas/mkdotenv ../mkdotenv_$VERSION.orig.tar.gz --forceTraceback (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 byteError 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

Viewing latest article 29
Browse Latest Browse All 49

Trending Articles