"apt-get install software-properties-gtk" command produces an error: /usr/lib/python3/dist-packages/softwareproperties/gtk/DialogMirror.py:197: SyntaxWarning: invalid escape sequence '\.'

Bug #2056344 reported by Andrey Belenky
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

after an upgrade to 24.04 version unable to open Software&Update application
While trying reinstall software-properties-gtk package I get the following error:
$ sudo apt-get install software-properties-gtk
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  software-properties-gtk
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/83.1 kB of archives.
After this operation, 520 kB of additional disk space will be used.
Selecting previously unselected package software-properties-gtk.
(Reading database ... 212809 files and directories currently installed.)
Preparing to unpack .../software-properties-gtk_0.99.42_all.deb ...
Unpacking software-properties-gtk (0.99.42) ...
Setting up software-properties-gtk (0.99.42) ...
/usr/lib/python3/dist-packages/softwareproperties/gtk/DialogMirror.py:197: SyntaxWarning: invalid escape sequence '\.'
  elif re.match("^((ftp)|(http)|(file)|(rsync)|(https))://([a-z]|[A-Z]|[0-9]|:|/|\.|~)+$", uri) == None:
Processing triggers for shared-mime-info (2.4-1) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu5) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1.1ubuntu1) ...
Processing triggers for libglib2.0-0:amd64 (2.79.2-1~ubuntu1) ...
Processing triggers for man-db (2.12.0-3) ...

Revision history for this message
Mike (kalel22) wrote :

downgrading python3-276 to python3-271 helped! since then GTK is opening up again.

https://discourse.ubuntu.com/t/spec-apt-deb822-sources-by-default/29333

fthx
Feb 16
FYI I did revert to this one:
https://launchpad.net/ubuntu/+source/python-apt/2.7.1~ubuntu1/+build/27047450/+files/python3-apt_2.7.1~ubuntu1_amd64.deb 12
(I do use old sources format).

Revision history for this message
Andrey Belenky (taua2) wrote : Re: [Bug 2056344] Re: "apt-get install software-properties-gtk" command produces an error: /usr/lib/python3/dist-packages/softwareproperties/gtk/DialogMirror.py:197: SyntaxWarning: invalid escape sequence '\.'
  • unnamed Edit (37 bytes, text/vnd.google.email-reaction+json; charset="UTF-8")

👍

Andrey reacted via Gmail
<https://www.google.com/gmail/about/?utm_source=gmail-in-product&utm_medium=et&utm_campaign=emojireactionemail#app>

On Sun, Mar 24, 2024, 15:10 Mike <email address hidden> wrote:

> downgrading python3-276 to python3-271 helped! since then GTK is opening
> up again.
>
> https://discourse.ubuntu.com/t/spec-apt-deb822-sources-by-default/29333
>
> fthx
> Feb 16
> FYI I did revert to this one:
>
> https://launchpad.net/ubuntu/+source/python-apt/2.7.1~ubuntu1/+build/27047450/+files/python3-apt_2.7.1~ubuntu1_amd64.deb
> 12
> (I do use old sources format).
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/2056344
>
> Title:
> "apt-get install software-properties-gtk" command produces an error:
> /usr/lib/python3/dist-
> packages/softwareproperties/gtk/DialogMirror.py:197: SyntaxWarning:
> invalid escape sequence '\.'
>
> Status in ubuntu-release-upgrader package in Ubuntu:
> New
>
> Bug description:
> after an upgrade to 24.04 version unable to open Software&Update
> application
> While trying reinstall software-properties-gtk package I get the
> following error:
> $ sudo apt-get install software-properties-gtk
> Reading package lists... Done
> Building dependency tree... Done
> Reading state information... Done
> The following NEW packages will be installed:
> software-properties-gtk
> 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
> Need to get 0 B/83.1 kB of archives.
> After this operation, 520 kB of additional disk space will be used.
> Selecting previously unselected package software-properties-gtk.
> (Reading database ... 212809 files and directories currently installed.)
> Preparing to unpack .../software-properties-gtk_0.99.42_all.deb ...
> Unpacking software-properties-gtk (0.99.42) ...
> Setting up software-properties-gtk (0.99.42) ...
>
> /usr/lib/python3/dist-packages/softwareproperties/gtk/DialogMirror.py:197:
> SyntaxWarning: invalid escape sequence '\.'
> elif
> re.match("^((ftp)|(http)|(file)|(rsync)|(https))://([a-z]|[A-Z]|[0-9]|:|/|\.|~)+$",
> uri) == None:
> Processing triggers for shared-mime-info (2.4-1) ...
> Processing triggers for desktop-file-utils (0.26-1ubuntu5) ...
> Processing triggers for hicolor-icon-theme (0.17-2) ...
> Processing triggers for gnome-menus (3.36.0-1.1ubuntu1) ...
> Processing triggers for libglib2.0-0:amd64 (2.79.2-1~ubuntu1) ...
> Processing triggers for man-db (2.12.0-3) ...
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2056344/+subscriptions
>
>

Revision history for this message
Philip Lamb (philip-lamb) wrote :

The backslash is being treated as an escape character for the enclosing string. Needs to be replaced with two backslashes to produce an actual backslash IN the regex.

Revision history for this message
Andrey Belenky (taua2) wrote :
  • unnamed Edit (37 bytes, text/vnd.google.email-reaction+json; charset="UTF-8")

👍

Andrey Belenky reacted via Gmail
<https://www.google.com/gmail/about/?utm_source=gmail-in-product&utm_medium=et&utm_campaign=emojireactionemail#app>

On Wed, Mar 27, 2024 at 5:30 AM Philip Lamb <email address hidden>
wrote:

> The backslash is being treated as an escape character for the enclosing
> string. Needs to be replaced with two backslashes to produce an actual
> backslash IN the regex.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/2056344
>
> Title:
> "apt-get install software-properties-gtk" command produces an error:
> /usr/lib/python3/dist-
> packages/softwareproperties/gtk/DialogMirror.py:197: SyntaxWarning:
> invalid escape sequence '\.'
>
> Status in ubuntu-release-upgrader package in Ubuntu:
> New
>
> Bug description:
> after an upgrade to 24.04 version unable to open Software&Update
> application
> While trying reinstall software-properties-gtk package I get the
> following error:
> $ sudo apt-get install software-properties-gtk
> Reading package lists... Done
> Building dependency tree... Done
> Reading state information... Done
> The following NEW packages will be installed:
> software-properties-gtk
> 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
> Need to get 0 B/83.1 kB of archives.
> After this operation, 520 kB of additional disk space will be used.
> Selecting previously unselected package software-properties-gtk.
> (Reading database ... 212809 files and directories currently installed.)
> Preparing to unpack .../software-properties-gtk_0.99.42_all.deb ...
> Unpacking software-properties-gtk (0.99.42) ...
> Setting up software-properties-gtk (0.99.42) ...
>
> /usr/lib/python3/dist-packages/softwareproperties/gtk/DialogMirror.py:197:
> SyntaxWarning: invalid escape sequence '\.'
> elif
> re.match("^((ftp)|(http)|(file)|(rsync)|(https))://([a-z]|[A-Z]|[0-9]|:|/|\.|~)+$",
> uri) == None:
> Processing triggers for shared-mime-info (2.4-1) ...
> Processing triggers for desktop-file-utils (0.26-1ubuntu5) ...
> Processing triggers for hicolor-icon-theme (0.17-2) ...
> Processing triggers for gnome-menus (3.36.0-1.1ubuntu1) ...
> Processing triggers for libglib2.0-0:amd64 (2.79.2-1~ubuntu1) ...
> Processing triggers for man-db (2.12.0-3) ...
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2056344/+subscriptions
>
>

--
בתודה,
אנדרי בלנקי
נייד: 052-3996798 | פקס: 072-3412237 | דוא"ל: <email address hidden>

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Confirmed
Revision history for this message
Andrey Belenky (taua2) wrote :
  • unnamed Edit (37 bytes, text/vnd.google.email-reaction+json; charset="UTF-8")

👍

Andrey reacted via Gmail
<https://www.google.com/gmail/about/?utm_source=gmail-in-product&utm_medium=et&utm_campaign=emojireactionemail#app>

On Fri, Mar 29, 2024, 12:01 Launchpad Bug Tracker <
<email address hidden>> wrote:

> Status changed to 'Confirmed' because the bug affects multiple users.
>
> ** Changed in: ubuntu-release-upgrader (Ubuntu)
> Status: New => Confirmed
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/2056344
>
> Title:
> "apt-get install software-properties-gtk" command produces an error:
> /usr/lib/python3/dist-
> packages/softwareproperties/gtk/DialogMirror.py:197: SyntaxWarning:
> invalid escape sequence '\.'
>
> Status in ubuntu-release-upgrader package in Ubuntu:
> Confirmed
>
> Bug description:
> after an upgrade to 24.04 version unable to open Software&Update
> application
> While trying reinstall software-properties-gtk package I get the
> following error:
> $ sudo apt-get install software-properties-gtk
> Reading package lists... Done
> Building dependency tree... Done
> Reading state information... Done
> The following NEW packages will be installed:
> software-properties-gtk
> 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
> Need to get 0 B/83.1 kB of archives.
> After this operation, 520 kB of additional disk space will be used.
> Selecting previously unselected package software-properties-gtk.
> (Reading database ... 212809 files and directories currently installed.)
> Preparing to unpack .../software-properties-gtk_0.99.42_all.deb ...
> Unpacking software-properties-gtk (0.99.42) ...
> Setting up software-properties-gtk (0.99.42) ...
>
> /usr/lib/python3/dist-packages/softwareproperties/gtk/DialogMirror.py:197:
> SyntaxWarning: invalid escape sequence '\.'
> elif
> re.match("^((ftp)|(http)|(file)|(rsync)|(https))://([a-z]|[A-Z]|[0-9]|:|/|\.|~)+$",
> uri) == None:
> Processing triggers for shared-mime-info (2.4-1) ...
> Processing triggers for desktop-file-utils (0.26-1ubuntu5) ...
> Processing triggers for hicolor-icon-theme (0.17-2) ...
> Processing triggers for gnome-menus (3.36.0-1.1ubuntu1) ...
> Processing triggers for libglib2.0-0:amd64 (2.79.2-1~ubuntu1) ...
> Processing triggers for man-db (2.12.0-3) ...
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2056344/+subscriptions
>
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.