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

Package broke on Ubuntu #1688

Open
rhee876527 opened this issue Jan 6, 2025 · 2 comments
Open

Package broke on Ubuntu #1688

rhee876527 opened this issue Jan 6, 2025 · 2 comments
Labels

Comments

@rhee876527
Copy link

Describe the bug
Title

Versions

  • Operating system: Ubuntu 24.04

To Reproduce
Steps to reproduce the behavior:

  1. Run command sudo apt install osc
  2. See error
sudo apt install osc         
...
The following additional packages will be installed:
  debootstrap debugedit libarchive-tools libbytes-random-secure-perl libcrypt-random-seed-perl libcrypt-ssleay-perl libfsverity0 liblua5.3-0 libmath-random-isaac-perl libmath-random-isaac-xs-perl
  librpm9t64 librpmbuild9t64 librpmio9t64 librpmsign9t64 obs-build perl-openssl-defaults python3-m2crypto python3-rpm python3-websocket rpm rpm-common rpm2cpio xzdec
Suggested packages:
  squid-deb-proxy-client debian-archive-keyring arch-test debhelper python-m2crypto-doc alien elfutils rpmlint rpm-i18n
The following NEW packages will be installed:
  debootstrap debugedit libarchive-tools libbytes-random-secure-perl libcrypt-random-seed-perl libcrypt-ssleay-perl libfsverity0 liblua5.3-0 libmath-random-isaac-perl libmath-random-isaac-xs-perl
  librpm9t64 librpmbuild9t64 librpmio9t64 librpmsign9t64 obs-build osc perl-openssl-defaults python3-m2crypto python3-rpm python3-websocket rpm rpm-common rpm2cpio xzdec
0 upgraded, 24 newly installed, 0 to remove and 0 not upgraded.
Need to get 1821 kB of archives.
After this operation, 8608 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://security.ubuntu.com/ubuntu noble-security/universe amd64 libarchive-tools amd64 3.7.2-2ubuntu0.3 [72.4 kB]
...
Fetched 1821 kB in 1s (1407 kB/s)       
Selecting previously unselected package debugedit.
(Reading database ... 167580 files and directories currently installed.)
Preparing to unpack .../00-debugedit_1%3a5.0-5build2_amd64.deb ...
Unpacking debugedit (1:5.0-5build2) ...
Selecting previously unselected package libarchive-tools.
Preparing to unpack .../01-libarchive-tools_3.7.2-2ubuntu0.3_amd64.deb ...
Unpacking libarchive-tools (3.7.2-2ubuntu0.3) ...
Selecting previously unselected package libcrypt-random-seed-perl.
Preparing to unpack .../02-libcrypt-random-seed-perl_0.03-3_all.deb ...
Unpacking libcrypt-random-seed-perl (0.03-3) ...
Selecting previously unselected package libmath-random-isaac-perl.
Preparing to unpack .../03-libmath-random-isaac-perl_1.004-2_all.deb ...
Unpacking libmath-random-isaac-perl (1.004-2) ...
Selecting previously unselected package libbytes-random-secure-perl.
Preparing to unpack .../04-libbytes-random-secure-perl_0.29-3_all.deb ...
Unpacking libbytes-random-secure-perl (0.29-3) ...
Selecting previously unselected package perl-openssl-defaults:amd64.
Preparing to unpack .../05-perl-openssl-defaults_7build3_amd64.deb ...
Unpacking perl-openssl-defaults:amd64 (7build3) ...
Selecting previously unselected package libcrypt-ssleay-perl.
Preparing to unpack .../06-libcrypt-ssleay-perl_0.73.06-2build5_amd64.deb ...
Unpacking libcrypt-ssleay-perl (0.73.06-2build5) ...
Selecting previously unselected package libfsverity0:amd64.
Preparing to unpack .../07-libfsverity0_1.5-1.1build3_amd64.deb ...
Unpacking libfsverity0:amd64 (1.5-1.1build3) ...
Selecting previously unselected package liblua5.3-0:amd64.
Preparing to unpack .../08-liblua5.3-0_5.3.6-2build2_amd64.deb ...
Unpacking liblua5.3-0:amd64 (5.3.6-2build2) ...
Selecting previously unselected package libmath-random-isaac-xs-perl.
Preparing to unpack .../09-libmath-random-isaac-xs-perl_1.004-3build4_amd64.deb ...
Unpacking libmath-random-isaac-xs-perl (1.004-3build4) ...
Selecting previously unselected package librpmio9t64.
Preparing to unpack .../10-librpmio9t64_4.18.2+dfsg-2.1build2_amd64.deb ...
Unpacking librpmio9t64 (4.18.2+dfsg-2.1build2) ...
Selecting previously unselected package librpm9t64.
Preparing to unpack .../11-librpm9t64_4.18.2+dfsg-2.1build2_amd64.deb ...
Unpacking librpm9t64 (4.18.2+dfsg-2.1build2) ...
Selecting previously unselected package librpmbuild9t64.
Preparing to unpack .../12-librpmbuild9t64_4.18.2+dfsg-2.1build2_amd64.deb ...
Unpacking librpmbuild9t64 (4.18.2+dfsg-2.1build2) ...
Selecting previously unselected package librpmsign9t64.
Preparing to unpack .../13-librpmsign9t64_4.18.2+dfsg-2.1build2_amd64.deb ...
Unpacking librpmsign9t64 (4.18.2+dfsg-2.1build2) ...
Selecting previously unselected package python3-m2crypto.
Preparing to unpack .../14-python3-m2crypto_0.40.1-2ubuntu1_amd64.deb ...
Unpacking python3-m2crypto (0.40.1-2ubuntu1) ...
Selecting previously unselected package python3-websocket.
Preparing to unpack .../15-python3-websocket_1.7.0-1_all.deb ...
Unpacking python3-websocket (1.7.0-1) ...
Selecting previously unselected package rpm-common.
Preparing to unpack .../16-rpm-common_4.18.2+dfsg-2.1build2_amd64.deb ...
Unpacking rpm-common (4.18.2+dfsg-2.1build2) ...
Selecting previously unselected package rpm2cpio.
Preparing to unpack .../17-rpm2cpio_4.18.2+dfsg-2.1build2_amd64.deb ...
Unpacking rpm2cpio (4.18.2+dfsg-2.1build2) ...
Selecting previously unselected package rpm.
Preparing to unpack .../18-rpm_4.18.2+dfsg-2.1build2_amd64.deb ...
Unpacking rpm (4.18.2+dfsg-2.1build2) ...
Selecting previously unselected package xzdec.
Preparing to unpack .../19-xzdec_5.6.1+really5.4.5-1build0.1_amd64.deb ...
Unpacking xzdec (5.6.1+really5.4.5-1build0.1) ...
Selecting previously unselected package debootstrap.
Preparing to unpack .../20-debootstrap_1.0.134ubuntu1_all.deb ...
Unpacking debootstrap (1.0.134ubuntu1) ...
Selecting previously unselected package obs-build.
Preparing to unpack .../21-obs-build_20210120-4_all.deb ...
Unpacking obs-build (20210120-4) ...
Selecting previously unselected package osc.
Preparing to unpack .../22-osc_0.169.1-2_all.deb ...
Unpacking osc (0.169.1-2) ...
Selecting previously unselected package python3-rpm.
Preparing to unpack .../23-python3-rpm_4.18.2+dfsg-2.1build2_amd64.deb ...
Unpacking python3-rpm (4.18.2+dfsg-2.1build2) ...
Setting up libarchive-tools (3.7.2-2ubuntu0.3) ...
Setting up debootstrap (1.0.134ubuntu1) ...
Setting up libmath-random-isaac-perl (1.004-2) ...
Setting up xzdec (5.6.1+really5.4.5-1build0.1) ...
Setting up perl-openssl-defaults:amd64 (7build3) ...
Setting up libfsverity0:amd64 (1.5-1.1build3) ...
Setting up libcrypt-random-seed-perl (0.03-3) ...
Setting up python3-m2crypto (0.40.1-2ubuntu1) ...
Setting up osc (0.169.1-2) ...
/usr/lib/python3/dist-packages/osc/commandline.py:7671: SyntaxWarning: invalid escape sequence '\('
  if re.match('^perl\(\w+(::\w+)*\)$', search_term):
/usr/lib/python3/dist-packages/osc/commandline.py:7672: SyntaxWarning: invalid escape sequence '\)'
  search_term = re.sub('\)', '', re.sub('(::|\()', '-', search_term))
/usr/lib/python3/dist-packages/osc/commandline.py:7672: SyntaxWarning: invalid escape sequence '\('
  search_term = re.sub('\)', '', re.sub('(::|\()', '-', search_term))
/usr/lib/python3/dist-packages/osc/commandline.py:7693: SyntaxWarning: invalid escape sequence '\ '
  'or \'--bugowner\' or \'--maintainer\' or \'--limit-to-attribute <attr>\ ' \
/usr/lib/python3/dist-packages/osc/commandline.py:8918: SyntaxWarning: invalid escape sequence '\*'
  if re.match('^\*\W+(.+\W+\d{1,2}\W+20\d{2})\W+(.+)\W+<(.+)>\W+(.+)$', titleline):
/usr/lib/python3/dist-packages/osc/core.py:4006: SyntaxWarning: invalid escape sequence '\s'
  tag_pat = '(?P<tag>^%s)\s*:\s*(?P<val>.*)'
/usr/lib/python3/dist-packages/osc/core.py:4012: SyntaxWarning: invalid escape sequence '\s'
  section_pat = '^%s\s*?$'
/usr/lib/python3/dist-packages/osc/core.py:6106: SyntaxWarning: invalid escape sequence '\['
  time_regex = re.compile('^\[[^\]]*\] ', re.M)
/usr/lib/python3/dist-packages/osc/core.py:6109: SyntaxWarning: invalid escape sequence '\['
  time_regex = re.compile(b'^\[[^\]]*\] ', re.M)
/usr/lib/python3/dist-packages/osc/core.py:7513: SyntaxWarning: invalid escape sequence '\s'
  mo = re.search('^([adrl])(?:\s+(-f)?\s*-m\s+(.*))?$', repl)
/usr/lib/python3/dist-packages/osc/fetch.py:85: SyntaxWarning: invalid escape sequence '\.'
  n = re.sub(b'\.pkg\.tar\.(zst|.z)$', b'.arch', hdr.filename)
/usr/lib/python3/dist-packages/osc/fetch.py:87: SyntaxWarning: invalid escape sequence '\.'
  n = re.sub(b'\.tar\.(zst|.z)$', b'.tar', hdr.filename)
/usr/lib/python3/dist-packages/osc/util/archquery.py:166: SyntaxWarning: invalid escape sequence '\d'
  mo1 = re.match(b'(\d+)', ver1)
/usr/lib/python3/dist-packages/osc/util/archquery.py:167: SyntaxWarning: invalid escape sequence '\d'
  mo2 = re.match(b'(\d+)', ver2)
/usr/lib/python3/dist-packages/osc/util/debquery.py:77: SyntaxWarning: invalid escape sequence '\s'
  field, val = re.split(b':\s*', data.strip(), 1)
/usr/lib/python3/dist-packages/osc/util/debquery.py:79: SyntaxWarning: invalid escape sequence '\s'
  while data and re.match(b'\s+', data):
/usr/lib/python3/dist-packages/osc/util/debquery.py:110: SyntaxWarning: invalid escape sequence '\s'
  def _split_field_value(self, field, delimeter=b',\s*'):
/usr/lib/python3/dist-packages/osc/util/debquery.py:191: SyntaxWarning: invalid escape sequence '\d'
  ver1 = re.sub(b'(\d+)', lambda m: (32 * b'0' + m.group(1))[-32:], ver1)
/usr/lib/python3/dist-packages/osc/util/debquery.py:192: SyntaxWarning: invalid escape sequence '\d'
  ver2 = re.sub(b'(\d+)', lambda m: (32 * b'0' + m.group(1))[-32:], ver2)
/usr/lib/python3/dist-packages/osc/util/rpmquery.py:344: SyntaxWarning: invalid escape sequence '\d'
  mo1 = re.match('(\d+)', ver1)
/usr/lib/python3/dist-packages/osc/util/rpmquery.py:345: SyntaxWarning: invalid escape sequence '\d'
  mo2 = re.match('(\d+)', ver2)
Setting up liblua5.3-0:amd64 (5.3.6-2build2) ...
Setting up debugedit (1:5.0-5build2) ...
Setting up libmath-random-isaac-xs-perl (1.004-3build4) ...
Setting up python3-websocket (1.7.0-1) ...
Setting up libbytes-random-secure-perl (0.29-3) ...
Setting up librpmio9t64 (4.18.2+dfsg-2.1build2) ...
Setting up libcrypt-ssleay-perl (0.73.06-2build5) ...
Setting up librpm9t64 (4.18.2+dfsg-2.1build2) ...
Setting up librpmbuild9t64 (4.18.2+dfsg-2.1build2) ...
Setting up rpm-common (4.18.2+dfsg-2.1build2) ...
Setting up librpmsign9t64 (4.18.2+dfsg-2.1build2) ...
Setting up rpm2cpio (4.18.2+dfsg-2.1build2) ...
Setting up rpm (4.18.2+dfsg-2.1build2) ...
Setting up python3-rpm (4.18.2+dfsg-2.1build2) ...
Setting up obs-build (20210120-4) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for dbus (1.14.10-4ubuntu4.1) ...
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
Scanning processes...                                                                                                                                                                                 
Scanning linux images...                                                                                                                                                                              

Pending kernel upgrade!
Running kernel version:
  6.8.0-51-generic

Restarting the system to load the new kernel will not be handled automatically, so you should consider rebooting.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.

Expected behavior
Setup osc without issue

Screenshots, console outputs

Setting up osc (0.169.1-2) ...
/usr/lib/python3/dist-packages/osc/commandline.py:7671: SyntaxWarning: invalid escape sequence '\('
  if re.match('^perl\(\w+(::\w+)*\)$', search_term):

Additional context
Notice the breakage started approx 2 days ago. Before then had no issue installing the package.

@rhee876527 rhee876527 added the Bug label Jan 6, 2025
@dmach
Copy link
Contributor

dmach commented Jan 8, 2025

@rhee876527 osc version in the distro is 0.169.1-2.
That's a really old version.
The latest released version is 1.11.0.
Someone should update the package to the latest version.

@rhee876527
Copy link
Author

I've filed the bug here. Don't know whether it's enough to close the issue but feel free to close it if you think so.

https://bugs.launchpad.net/ubuntu/+source/osc/+bug/2093244

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants