[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-07-01 Thread Launchpad Bug Tracker
This bug was fixed in the package apt - 1.6.14

---
apt (1.6.14) bionic; urgency=medium

  * RunScripts: Do not reset SIGQUIT and SIGINT to SIG_DFL (LP: #1898026)
  * Fix downloads of unsized files that are largest in pipeline (LP: #1921626),
and warn about packages without size (option Acquire::AllowUnsizedPackages)
  * JSON hooks 0.2 and assorted JSON bugfixes (LP: #1926150)
- encoder fixes:
  + json: Escape strings using \u escape sequences, add test
  + json: Actually pop states
  + json: Encode NULL strings as null
- json: Flush standard file descriptors before calling hooks
  (this avoids output from hooks in middle of apt output)
- Minor fixes to include and C++ namespaces
- non-code changes:
  + test/json: Make the test hook more reliable
  + Fix a typo in json-hooks-protocol.md (thanks to Brian Murray)
- semantic changes (new fields, hooks, and protocol 0.2):
  + json: Add origins fields to version
  + upgrade: Add JSON hook support (AptCli::Hooks::Upgrade)
  + json: Add `package-list` and `statistics` install hooks
  + json: Hook protocol 0.2 (added upgrade,downgrade,reinstall modes)
+ Fix a typo in json-hooks-protocol.md (thanks to Brian Murray)
  * Avoid infinite loop on EOF on media change prompt (LP: #1928687)

 -- Julian Andres Klode   Tue, 15 Jun 2021 16:12:38
+0200

** Changed in: apt (Ubuntu Bionic)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-07-01 Thread Launchpad Bug Tracker
This bug was fixed in the package apt - 2.0.6

---
apt (2.0.6) focal; urgency=medium

  * RunScripts: Do not reset SIGQUIT and SIGINT to SIG_DFL (LP: #1898026)
  * test suite fix: Check for and discard expected warning from MaybeAddAuth
  * Fix downloads of unsized files that are largest in pipeline (LP: #1921626),
and warn about packages without size (option Acquire::AllowUnsizedPackages)
  * JSON hooks 0.2 and assorted JSON bugfixes (LP: #1926150)
- encoder fixes:
  + json: Escape strings using \u escape sequences, add test
  + json: Actually pop states
  + json: Encode NULL strings as null
- json: Flush standard file descriptors before calling hooks
  (this avoids output from hooks in middle of apt output)
- non-code changes:
  + test/json: Make the test hook more reliable
  + Fix a typo in json-hooks-protocol.md (thanks to Brian Murray)
- semantic changes (new fields, hooks, and protocol 0.2):
  + json: Add origins fields to version
  + upgrade: Add JSON hook support (AptCli::Hooks::Upgrade)
  + json: Add `package-list` and `statistics` install hooks
  + json: Hook protocol 0.2 (added upgrade,downgrade,reinstall modes)
+ Fix a typo in json-hooks-protocol.md (thanks to Brian Murray)
  * Avoid infinite loop on EOF on media change prompt (LP: #1928687)

 -- Julian Andres Klode   Tue, 15 Jun 2021 13:05:46
+0200

** Changed in: apt (Ubuntu Focal)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-06-24 Thread Julian Andres Klode
bionic, 1.6.14 is good too.

root@b:~# python3 a.py
WAITING
^C
root@b:~# apt install libapt-pkg5.0
Reading package lists... Done
Building dependency tree   
Reading state information... Done
The following package was automatically installed and is no longer required:
  libfreetype6
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
  apt apt-utils
Suggested packages:
  apt-doc aptitude | synaptic | wajig dpkg-dev
The following packages will be upgraded:
  apt apt-utils libapt-pkg5.0
3 upgraded, 0 newly installed, 0 to remove and 29 not upgraded.
Need to get 2224 kB of archives.
After this operation, 16.4 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 libapt-pkg5.0 
amd64 1.6.14 [809 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 apt amd64 
1.6.14 [1207 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 apt-utils 
amd64 1.6.14 [209 kB]
Fetched 2224 kB in 0s (7775 kB/s) 
(Reading database ... 28937 files and directories currently installed.)
Preparing to unpack .../libapt-pkg5.0_1.6.14_amd64.deb ...
Unpacking libapt-pkg5.0:amd64 (1.6.14) over (1.6.13) ...
Setting up libapt-pkg5.0:amd64 (1.6.14) ...
(Reading database ... 28937 files and directories currently installed.)
Preparing to unpack .../archives/apt_1.6.14_amd64.deb ...
Unpacking apt (1.6.14) over (1.6.13) ...
Setting up apt (1.6.14) ...
(Reading database ... 28937 files and directories currently installed.)
Preparing to unpack .../apt-utils_1.6.14_amd64.deb ...
Unpacking apt-utils (1.6.14) over (1.6.13) ...
Setting up apt-utils (1.6.14) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
root@b:~# python3 a.py
WAITING
^CSeen KeyboardInterrupt()
END

do-release-upgrade was fine too:
Upgrading
Fetched 0 B in 0s (0 B/s)   


   

Restoring original system state


Note that if you Ctrl+C while it's downloading the upgrades, it gets the 
keyboardinterrupt in the wrong spot - inside the progress handler and does not 
restore the correct state, probably should be a different bug, though.

** Tags removed: verification-needed verification-needed-bionic
** Tags added: verification-done verification-done-bionic

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-06-24 Thread Julian Andres Klode
focal/2.0.6: The standalone test certainly worked, and the keyboard
interrupts were delivered to do-release-upgrade

** Tags removed: verification-needed-focal
** Tags added: verification-done-focal

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-06-17 Thread Brian Murray
Hello udippel, or anyone else affected,

Accepted apt into focal-proposed. The package will build now and be
available at https://launchpad.net/ubuntu/+source/apt/2.0.6 in a few
hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
focal to verification-done-focal. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-focal. In either case, without details of your testing we will
not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Changed in: apt (Ubuntu Focal)
   Status: New => Fix Committed

** Tags removed: verification-done-focal
** Tags added: verification-needed verification-needed-focal

** Changed in: apt (Ubuntu Bionic)
   Status: New => Fix Committed

** Tags added: verification-needed-bionic

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-06-02 Thread Launchpad Bug Tracker
This bug was fixed in the package ubuntu-release-upgrader - 1:20.10.16

---
ubuntu-release-upgrader (1:20.10.16) groovy; urgency=medium

  * DistUpgrade/DistUpgradeController.py: restore sources.list where possible
if a KeyboardInterrupt event is received and redirect the output of
gnome-session-inhibit to devnull so a message regarding Ctrl-C is not
displayed. (LP: #1898026)
  * Update mirrors, demotions, and translations.

 -- Brian Murray   Fri, 14 May 2021 10:27:44 -0700

** Changed in: ubuntu-release-upgrader (Ubuntu Groovy)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-05-28 Thread Mathew Hodson
** Tags removed: verification-needed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-05-26 Thread Brian Murray
I tested and upgrade from a Focal system to Groovy using do-release-
upgrade -p and as you can see in the attached screenshot the "Inhibiting
until Ctrl+C is pressed" message no longer appears. So I'm setting this
to verification-done for ubuntu-release-upgrader.

** Attachment added: "bug-1898026-groovy-verification.png"
   
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1898026/+attachment/5500595/+files/bug-1898026-groovy-verification.png

** Tags removed: verification-needed-groovy
** Tags added: verification-done-groovy

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-05-24 Thread dragonhahney
On Mon, May 24, 2021, 8:20 AM Launchpad Bug Tracker <
1898...@bugs.launchpad.net> wrote:

> This bug was fixed in the package ubuntu-release-upgrader - 1:20.04.33
>
> ---
> ubuntu-release-upgrader (1:20.04.33) focal; urgency=medium
>
>   * DistUpgrade/DistUpgradeController.py: restore sources.list where
> possible
> if a KeyboardInterrupt event is received and redirect the output of
> gnome-session-inhibit to devnull so a message regarding Ctrl-C is not
> displayed. (LP: #1898026)
>   * DistUpgrade/DistUpgradeQuirks.py: Restore code which ensured the python
> package was maked for removal. (LP: #1928397)
>   * Update mirrors and translations.
>
>  -- Brian Murray   Thu, 13 May 2021 16:38:41 -0700
>
> ** Changed in: ubuntu-release-upgrader (Ubuntu Focal)
>Status: Fix Committed => Fix Released
>
> --
> You received this bug notification because you are subscribed to apt in
> Ubuntu.
> Matching subscriptions: dragonhahney
> https://bugs.launchpad.net/bugs/1898026
>
> Title:
>   interruption of dist-upgrade can leave you next release in
>   sources.list
>
> Status in apt package in Ubuntu:
>   Fix Released
> Status in ubuntu-release-upgrader package in Ubuntu:
>   Fix Released
> Status in apt source package in Bionic:
>   New
> Status in ubuntu-release-upgrader source package in Bionic:
>   New
> Status in apt source package in Focal:
>   New
> Status in ubuntu-release-upgrader source package in Focal:
>   Fix Released
> Status in apt source package in Groovy:
>   Fix Released
> Status in ubuntu-release-upgrader source package in Groovy:
>   Fix Committed
> Status in apt source package in Hirsute:
>   Fix Released
> Status in ubuntu-release-upgrader source package in Hirsute:
>   Fix Released
>
> Bug description:
>   [Impact]
>   Calling update() or installing packages from apt clients resets their
> SIGINT and SIGQUIT handlers to SIG_DFL, overriding any signal handlers they
> might have set for them.
>
>   In case of ubuntu-release-upgrader, this results in the release
>   upgrader being unable to handle interrupts after it did the initial
>   update - the default libc handler will run and the program exits.
>
>   [Test plan]
>
>   [[apt]]
>   As a standalone test for apt, we can test the following script:
>
>   import apt
>   import time
>
>   apt.Cache().update()
>   print("WAITING")
>   try:
>   time.sleep(1)
>   except BaseException as e:
>   print("Seen", repr(e))
>   print("END")
>
>   Pressing Ctrl+C while WAITING is printed should print Seen
>   KeyboardInterrupt, and importantly, also the END line.
>
>   [[ubuntu-release-upgrader]]
>   1) On an Ubuntu 18.04 system run do-release-upgrade in a terminal.
>   2) At the "Do you want to start the upgrade?" question say Y.
>   3) When you see the "Lock screen disabled" message you will also see
> "Inhibiting until Ctrl+C is pressed".
>   4) Press "Ctrl+C"
>
>   Your /etc/apt/sources.list file will now have focal in it instead of
>   bionic although the upgrade has quit. With the version of ubuntu-
>   release-upgrader in -proposed you will not see the "Ctrl+C" message.
>   For your sources.list file to be restored you'll need the version of
>   apt from bionic-proposed installed before starting the upgrade.
>
>   [Where problems could occur]
>   apt: This specific change removes the two lines that SIG_DFL the signal
> handlers after running scripts. AFAWCT those lines are unnecessary - the
> code that calls it temporarily sets the handlers to SIG_IGN but restores
> previous handlers at the end; it was wrongly refactored decades ago. A
> regression could occur in that those signals will now continue to be
> ignored if we missed a spot.
>
>   ubuntu-release-upgrader: The change is wrapping a bunch of code in a
>   try: except: block so if the indentation was off the pyflakes /
>   pycodestyle tests would fail but autopkgtest will catch that.
>
>   [Original bug report]
>   As a long-time-user of ?ubuntu, with apt-get as tool of choice for
> updates/upgrades I wrote a daily script for updates, with 'dist-upgrade'.
>   In all earlier years, it wouldn't actually do an upgrade of a ?ubuntu
> version; just all packages including new ones. Version updates had to be
> initiated manually, and I was always asked if I really wanted the new
> ?ubuntu version. Sounds appropriate.
>
>   Last night when it (dist-upgrade), it just gave me 20.04. No questions
> asked. I for one consider this kind of intrusive, though.
>   It *might* have to make with me trying 'sudo do-release-upgrade -m
> desktop' a number of times earlier; just to *check* if the upgrade was on
> offer; but this is only a guess.
>
>   In *any* case, a pop-up asking "Are you sure? Are you connected
>   through an adequate pipe? Are you sitting with full batteries; better
>   a power supply?" would be convenient; since I am using my PC for
>   urgent duties, and didn't want to fiddle with unexpected upgrade bugs.
>
>   ProblemType: BugDistroRelease: Ubuntu 

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-05-24 Thread Launchpad Bug Tracker
This bug was fixed in the package ubuntu-release-upgrader - 1:20.04.33

---
ubuntu-release-upgrader (1:20.04.33) focal; urgency=medium

  * DistUpgrade/DistUpgradeController.py: restore sources.list where possible
if a KeyboardInterrupt event is received and redirect the output of
gnome-session-inhibit to devnull so a message regarding Ctrl-C is not
displayed. (LP: #1898026)
  * DistUpgrade/DistUpgradeQuirks.py: Restore code which ensured the python
package was maked for removal. (LP: #1928397)
  * Update mirrors and translations.

 -- Brian Murray   Thu, 13 May 2021 16:38:41 -0700

** Changed in: ubuntu-release-upgrader (Ubuntu Focal)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-05-24 Thread Łukasz Zemczak
Hello udippel, or anyone else affected,

Accepted ubuntu-release-upgrader into groovy-proposed. The package will
build now and be available at https://launchpad.net/ubuntu/+source
/ubuntu-release-upgrader/1:20.10.16 in a few hours, and then in the
-proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
groovy to verification-done-groovy. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-groovy. In either case, without details of your testing we will
not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Changed in: ubuntu-release-upgrader (Ubuntu Groovy)
   Status: In Progress => Fix Committed

** Tags removed: verification-done-groovy
** Tags added: verification-needed-groovy

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-05-17 Thread Brian Murray
I tested and upgrade from a Bionic system to Focal using do-release-
upgrade -p and as you can see in the attached screenshot the "Inhibiting
until Ctrl+C is pressed" message no longer appears. So I'm setting this
to verification-done.

** Attachment added: "bug-1898026-focal-verification.png"
   
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1898026/+attachment/5498327/+files/bug-1898026-focal-verification.png

** Tags removed: verification-needed-focal
** Tags added: verification-done-focal

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-05-14 Thread Steve Langasek
Hello udippel, or anyone else affected,

Accepted ubuntu-release-upgrader into focal-proposed. The package will
build now and be available at https://launchpad.net/ubuntu/+source
/ubuntu-release-upgrader/1:20.04.33 in a few hours, and then in the
-proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
focal to verification-done-focal. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-focal. In either case, without details of your testing we will
not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Changed in: ubuntu-release-upgrader (Ubuntu Focal)
   Status: In Progress => Fix Committed

** Tags removed: verification-done
** Tags added: verification-needed verification-needed-focal

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-05-14 Thread Brian Murray
** Description changed:

  [Impact]
  Calling update() or installing packages from apt clients resets their SIGINT 
and SIGQUIT handlers to SIG_DFL, overriding any signal handlers they might have 
set for them.
  
  In case of ubuntu-release-upgrader, this results in the release upgrader
  being unable to handle interrupts after it did the initial update - the
  default libc handler will run and the program exits.
  
  [Test plan]
  
  [[apt]]
  As a standalone test for apt, we can test the following script:
  
  import apt
  import time
  
  apt.Cache().update()
  print("WAITING")
  try:
  time.sleep(1)
  except BaseException as e:
  print("Seen", repr(e))
  print("END")
  
  Pressing Ctrl+C while WAITING is printed should print Seen
  KeyboardInterrupt, and importantly, also the END line.
  
  [[ubuntu-release-upgrader]]
  1) On an Ubuntu 18.04 system run do-release-upgrade in a terminal.
  2) At the "Do you want to start the upgrade?" question say Y.
  3) When you see the "Lock screen disabled" message you will also see 
"Inhibiting until Ctrl+C is pressed".
  4) Press "Ctrl+C"
  
  Your /etc/apt/sources.list file will now have focal in it instead of
  bionic although the upgrade has quit. With the version of ubuntu-
  release-upgrader in -proposed you will not see the "Ctrl+C" message. For
  your sources.list file to be restored you'll need the version of apt
  from bionic-proposed installed before starting the upgrade.
  
- [Where problems could occur]apt: This specific change removes the two
- lines that SIG_DFL the signal handlers after running scripts. AFAWCT
- those lines are unnecessary - the code that calls it temporarily sets
- the handlers to SIG_IGN but restores previous handlers at the end; it
- was wrongly refactored decades ago. A regression could occur in that
- those signals will now continue to be ignored if we missed a spot.
+ [Where problems could occur]
+ apt: This specific change removes the two lines that SIG_DFL the signal 
handlers after running scripts. AFAWCT those lines are unnecessary - the code 
that calls it temporarily sets the handlers to SIG_IGN but restores previous 
handlers at the end; it was wrongly refactored decades ago. A regression could 
occur in that those signals will now continue to be ignored if we missed a spot.
+ 
+ ubuntu-release-upgrader: The change is wrapping a bunch of code in a
+ try: except: block so if the indentation was off the pyflakes /
+ pycodestyle tests would fail but autopkgtest will catch that.
  
  [Original bug report]
  As a long-time-user of ?ubuntu, with apt-get as tool of choice for 
updates/upgrades I wrote a daily script for updates, with 'dist-upgrade'.
  In all earlier years, it wouldn't actually do an upgrade of a ?ubuntu 
version; just all packages including new ones. Version updates had to be 
initiated manually, and I was always asked if I really wanted the new ?ubuntu 
version. Sounds appropriate.
  
  Last night when it (dist-upgrade), it just gave me 20.04. No questions asked. 
I for one consider this kind of intrusive, though.
  It *might* have to make with me trying 'sudo do-release-upgrade -m desktop' a 
number of times earlier; just to *check* if the upgrade was on offer; but this 
is only a guess.
  
  In *any* case, a pop-up asking "Are you sure? Are you connected through
  an adequate pipe? Are you sitting with full batteries; better a power
  supply?" would be convenient; since I am using my PC for urgent duties,
  and didn't want to fiddle with unexpected upgrade bugs.
  
  ProblemType: BugDistroRelease: Ubuntu 20.04
  Package: ubuntu-release-upgrader-core 1:20.04.25
  ProcVersionSignature: Ubuntu 5.4.0-48.52-generic 5.4.60
  Uname: Linux 5.4.0-48-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27.9
  Architecture: amd64
  CasperMD5CheckResult: skip
  CrashDB: ubuntu
  CurrentDesktop: KDE
  Date: Thu Oct  1 11:48:39 2020
  InstallationDate: Installed on 2019-03-14 (566 days ago)
  InstallationMedia: Kubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 
(20180725)
  PackageArchitecture: allSourcePackage: ubuntu-release-upgrader
  Symptom: ubuntu-release-upgrader
  UpgradeStatus: Upgraded to focal on 2020-09-29 (1 days ago)
  VarLogDistupgradeAptlog:
   Log time: 2020-09-29 19:44:28.696289
   Log time: 2020-09-29 19:44:33.573481

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-05-14 Thread Brian Murray
** Description changed:

  [Impact]
  Calling update() or installing packages from apt clients resets their SIGINT 
and SIGQUIT handlers to SIG_DFL, overriding any signal handlers they might have 
set for them.
  
  In case of ubuntu-release-upgrader, this results in the release upgrader
  being unable to handle interrupts after it did the initial update - the
  default libc handler will run and the program exits.
  
  [Test plan]
  
  [[apt]]
  As a standalone test for apt, we can test the following script:
  
  import apt
  import time
  
  apt.Cache().update()
  print("WAITING")
  try:
- time.sleep(1)
+ time.sleep(1)
  except BaseException as e:
- print("Seen", repr(e))
+ print("Seen", repr(e))
  print("END")
  
  Pressing Ctrl+C while WAITING is printed should print Seen
  KeyboardInterrupt, and importantly, also the END line.
  
- [Where problems could occur]
- apt: This specific change removes the two lines that SIG_DFL the signal 
handlers after running scripts. AFAWCT those lines are unnecessary - the code 
that calls it temporarily sets the handlers to SIG_IGN but restores previous 
handlers at the end; it was wrongly refactored decades ago. A regression could 
occur in that those signals will now continue to be ignored if we missed a spot.
+ [[ubuntu-release-upgrader]]
+ 1) On an Ubuntu 18.04 system run do-release-upgrade in a terminal.
+ 2) At the "Do you want to start the upgrade?" question say Y.
+ 3) When you see the "Lock screen disabled" message you will also see 
"Inhibiting until Ctrl+C is pressed".
+ 4) Press "Ctrl+C"
+ 
+ Your /etc/apt/sources.list file will now have focal in it instead of
+ bionic although the upgrade has quit. With the version of ubuntu-
+ release-upgrader in -proposed you will not see the "Ctrl+C" message. For
+ your sources.list file to be restored you'll need the version of apt
+ from bionic-proposed installed before starting the upgrade.
+ 
+ [Where problems could occur]apt: This specific change removes the two
+ lines that SIG_DFL the signal handlers after running scripts. AFAWCT
+ those lines are unnecessary - the code that calls it temporarily sets
+ the handlers to SIG_IGN but restores previous handlers at the end; it
+ was wrongly refactored decades ago. A regression could occur in that
+ those signals will now continue to be ignored if we missed a spot.
  
  [Original bug report]
  As a long-time-user of ?ubuntu, with apt-get as tool of choice for 
updates/upgrades I wrote a daily script for updates, with 'dist-upgrade'.
  In all earlier years, it wouldn't actually do an upgrade of a ?ubuntu 
version; just all packages including new ones. Version updates had to be 
initiated manually, and I was always asked if I really wanted the new ?ubuntu 
version. Sounds appropriate.
  
  Last night when it (dist-upgrade), it just gave me 20.04. No questions asked. 
I for one consider this kind of intrusive, though.
  It *might* have to make with me trying 'sudo do-release-upgrade -m desktop' a 
number of times earlier; just to *check* if the upgrade was on offer; but this 
is only a guess.
  
  In *any* case, a pop-up asking "Are you sure? Are you connected through
  an adequate pipe? Are you sitting with full batteries; better a power
  supply?" would be convenient; since I am using my PC for urgent duties,
  and didn't want to fiddle with unexpected upgrade bugs.
  
- ProblemType: Bug
- DistroRelease: Ubuntu 20.04
+ ProblemType: BugDistroRelease: Ubuntu 20.04
  Package: ubuntu-release-upgrader-core 1:20.04.25
  ProcVersionSignature: Ubuntu 5.4.0-48.52-generic 5.4.60
  Uname: Linux 5.4.0-48-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27.9
  Architecture: amd64
  CasperMD5CheckResult: skip
  CrashDB: ubuntu
  CurrentDesktop: KDE
  Date: Thu Oct  1 11:48:39 2020
  InstallationDate: Installed on 2019-03-14 (566 days ago)
  InstallationMedia: Kubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 
(20180725)
- PackageArchitecture: all
- SourcePackage: ubuntu-release-upgrader
+ PackageArchitecture: allSourcePackage: ubuntu-release-upgrader
  Symptom: ubuntu-release-upgrader
  UpgradeStatus: Upgraded to focal on 2020-09-29 (1 days ago)
  VarLogDistupgradeAptlog:
   Log time: 2020-09-29 19:44:28.696289
   Log time: 2020-09-29 19:44:33.573481

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-05-13 Thread Brian Murray
** Changed in: ubuntu-release-upgrader (Ubuntu Focal)
   Status: New => In Progress

** Changed in: ubuntu-release-upgrader (Ubuntu Focal)
 Assignee: (unassigned) => Brian Murray (brian-murray)

** Changed in: ubuntu-release-upgrader (Ubuntu Groovy)
   Status: New => In Progress

** Changed in: ubuntu-release-upgrader (Ubuntu Groovy)
 Assignee: (unassigned) => Brian Murray (brian-murray)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-04-06 Thread Launchpad Bug Tracker
This bug was fixed in the package apt - 2.1.10ubuntu0.3

---
apt (2.1.10ubuntu0.3) groovy; urgency=medium

  [ David Kalnischkies ]
  * Fix incorrect base64 encoding due to int promotion (LP: #1916050)
  * Harden test for no new acquires after transaction abort (Closes: #984966)
(LP: #1918920)

  [ Julian Andres Klode ]
  * Implement update --error-on=any (Closes: #594813) (LP: #1693900)
  * Include all translations when building the cache (LP: #1907850)
  * Do not require force-loopbreak on Protected packages (Closes: #983014)
(LP: #1916725)
  * RunScripts: Do not reset SIGQUIT and SIGINT to SIG_DFL (LP: #1898026)
  * Protect currently running kernel at run-time (LP: #1615381)
  * Make ADDARG{,C}() macros expand to single statements

 -- Julian Andres Klode   Fri, 12 Mar 2021 09:22:11
+0100

** Changed in: apt (Ubuntu Groovy)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-03-30 Thread udippel
With respect to #12, I am not sufficiently well versed in rolling back to 18_04 
in order to try once again, as much as I would love to do so and help by 
repeating my earlier steps that lead to the upgrade.
Though, it looks like others have been able to simulate the steps.

Thanks a lot for all the efforts!

Uwe

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-03-30 Thread Julian Andres Klode
The small simple script also worked with the proposed version:

# python3 a.py
WAITING
^CSeen KeyboardInterrupt()
END


** Tags removed: verification-needed verification-needed-groovy
** Tags added: verification-done verification-done-groovy

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-03-30 Thread Julian Andres Klode
I checked do-release-upgrade -d before upgrading apt, and pressing
Ctrl+C at the prompt for conforming changes left hirsute in
sources.list.

I upgraded to apt 2.1.10ubuntu0.3 from proposed, ran it again, and
Ctrl+C now caused the restore code to run:

 Continue [yN]  Details [d]^C
Restoring original system state

Aborting
Reading package lists... Done
Building dependency tree  
Reading state information... Done
=== Command detached from window (Tue Mar 30 15:04:31 2021) ===

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-03-24 Thread Brian Murray
Hello udippel, or anyone else affected,

Accepted apt into groovy-proposed. The package will build now and be
available at https://launchpad.net/ubuntu/+source/apt/2.1.10ubuntu0.3 in
a few hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
groovy to verification-done-groovy. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-groovy. In either case, without details of your testing we will
not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Changed in: apt (Ubuntu Groovy)
   Status: In Progress => Fix Committed

** Tags added: verification-needed verification-needed-groovy

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-03-10 Thread Julian Andres Klode
For the record, we are going to roll the apt change out in groovy
shortly, but delay the LTS updates to give it some more real world
testing.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-03-05 Thread Launchpad Bug Tracker
This bug was fixed in the package ubuntu-release-upgrader - 1:21.04.5

---
ubuntu-release-upgrader (1:21.04.5) hirsute; urgency=medium

  [ William 'jawn-smith' Wilson ]
  * Add quirk to block upgrade if docker containers are configured to use the
aufs storage-driver (LP: #1907713)

  [ Brian Murray ]
  * DistUpgrade/DistUpgradeController.py: where possible restore sources.list
if a KeyboardInterrupt event is received. (LP: #1898026)
  * DistUpgrade/DistUpgradeController.py: redirect the output of
gnome-session-inhibit to devnull so a message regarding Ctrl-C is not
displayed.

 -- Brian Murray   Fri, 26 Feb 2021 11:27:39 -0800

** Changed in: ubuntu-release-upgrader (Ubuntu Hirsute)
   Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-03-05 Thread Julian Andres Klode
** Description changed:

- As a long-time-user of ?ubuntu, with apt-get as tool of choice for 
updates/upgrades I wrote a daily script for updates, with 'dist-upgrade'. 
+ [Impact]
+ Calling update() or installing packages from apt clients resets their SIGINT 
and SIGQUIT handlers to SIG_DFL, overriding any signal handlers they might have 
set for them.
+ 
+ In case of ubuntu-release-upgrader, this results in the release upgrader
+ being unable to handle interrupts after it did the initial update - the
+ default libc handler will run and the program exits.
+ 
+ [Test plan]
+ 
+ [[apt]]
+ As a standalone test for apt, we can test the following script:
+ 
+ import apt
+ import time
+ 
+ apt.Cache().update()
+ print("WAITING")
+ try:
+ time.sleep(1)
+ except BaseException as e:
+ print("Seen", repr(e))
+ print("END")
+ 
+ Pressing Ctrl+C while WAITING is printed should print Seen
+ KeyboardInterrupt, and importantly, also the END line.
+ 
+ [Where problems could occur]
+ apt: This specific change removes the two lines that SIG_DFL the signal 
handlers after running scripts. AFAWCT those lines are unnecessary - the code 
that calls it temporarily sets the handlers to SIG_IGN but restores previous 
handlers at the end; it was wrongly refactored decades ago. A regression could 
occur in that those signals will now continue to be ignored if we missed a spot.
+ 
+ [Original bug report]
+ As a long-time-user of ?ubuntu, with apt-get as tool of choice for 
updates/upgrades I wrote a daily script for updates, with 'dist-upgrade'.
  In all earlier years, it wouldn't actually do an upgrade of a ?ubuntu 
version; just all packages including new ones. Version updates had to be 
initiated manually, and I was always asked if I really wanted the new ?ubuntu 
version. Sounds appropriate.
  
- Last night when it (dist-upgrade), it just gave me 20.04. No questions asked. 
I for one consider this kind of intrusive, though. 
+ Last night when it (dist-upgrade), it just gave me 20.04. No questions asked. 
I for one consider this kind of intrusive, though.
  It *might* have to make with me trying 'sudo do-release-upgrade -m desktop' a 
number of times earlier; just to *check* if the upgrade was on offer; but this 
is only a guess.
  
  In *any* case, a pop-up asking "Are you sure? Are you connected through
  an adequate pipe? Are you sitting with full batteries; better a power
  supply?" would be convenient; since I am using my PC for urgent duties,
  and didn't want to fiddle with unexpected upgrade bugs.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: ubuntu-release-upgrader-core 1:20.04.25
  ProcVersionSignature: Ubuntu 5.4.0-48.52-generic 5.4.60
  Uname: Linux 5.4.0-48-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27.9
  Architecture: amd64
  CasperMD5CheckResult: skip
  CrashDB: ubuntu
  CurrentDesktop: KDE
  Date: Thu Oct  1 11:48:39 2020
  InstallationDate: Installed on 2019-03-14 (566 days ago)
  InstallationMedia: Kubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 
(20180725)
  PackageArchitecture: all
  SourcePackage: ubuntu-release-upgrader
  Symptom: ubuntu-release-upgrader
  UpgradeStatus: Upgraded to focal on 2020-09-29 (1 days ago)
  VarLogDistupgradeAptlog:
-  Log time: 2020-09-29 19:44:28.696289
-  Log time: 2020-09-29 19:44:33.573481
+  Log time: 2020-09-29 19:44:28.696289
+  Log time: 2020-09-29 19:44:33.573481

** Changed in: apt (Ubuntu Groovy)
   Status: Triaged => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-03-04 Thread Julian Andres Klode
** Also affects: apt (Ubuntu Focal)
   Importance: Undecided
   Status: New

** Also affects: ubuntu-release-upgrader (Ubuntu Focal)
   Importance: Undecided
   Status: New

** Also affects: apt (Ubuntu Groovy)
   Importance: Undecided
   Status: New

** Also affects: ubuntu-release-upgrader (Ubuntu Groovy)
   Importance: Undecided
   Status: New

** Also affects: apt (Ubuntu Bionic)
   Importance: Undecided
   Status: New

** Also affects: ubuntu-release-upgrader (Ubuntu Bionic)
   Importance: Undecided
   Status: New

** Changed in: apt (Ubuntu Groovy)
   Status: New => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-03-02 Thread Launchpad Bug Tracker
This bug was fixed in the package apt - 2.2.1

---
apt (2.2.1) unstable; urgency=medium

  [ Julian Andres Klode ]
  * Do not require force-loopbreak on Protected packages (Closes: #983014)
  * Branch of as 2.2.y for bullseye
  * configuration: Add missing #include 
  * Remove .travis.yml, we are using GitLab CI these days
  * RunScripts: Do not reset SIGQUIT and SIGINT to SIG_DFL (LP: #1898026)
  * regression fix: do require force-loopbreak for Conflicts

  [ Алексей Шилин ]
  * Russian translation update (Closes: #983348)

 -- Julian Andres Klode   Mon, 01 Mar 2021 22:27:55
+0100

** Changed in: apt (Ubuntu Hirsute)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-03-02 Thread Julian Andres Klode
** Changed in: apt (Ubuntu Hirsute)
   Status: Triaged => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-02-26 Thread Brian Murray
While a KeyboardInterrupt handler has been introduced to ubuntu-release-
upgrader apt is actually sending the SIGINT back to the distribution
upgrade process. This can be fixed in apt by removing the following:

--- apt-2.1.10ubuntu0.2/apt-pkg/contrib/fileutl.cc  2021-01-14 
03:29:25.0 -0800
+++ apt-2.1.10ubuntu0.3~ppa1/apt-pkg/contrib/fileutl.cc 2021-02-26 
09:13:10.0 -0800
@@ -140,10 +140,6 @@
   return _error->Errno("waitpid","Couldn't wait for subprocess");
}
 
-   // Restore sig int/quit
-   signal(SIGQUIT,SIG_DFL);
-   signal(SIGINT,SIG_DFL);   
-
// Check for an error code.
if (WIFEXITED(Status) == 0 || WEXITSTATUS(Status) != 0)
{


** Also affects: apt (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: apt (Ubuntu Hirsute)
   Importance: Undecided => High

** Changed in: apt (Ubuntu Hirsute)
   Status: New => Triaged

** Changed in: apt (Ubuntu Hirsute)
 Assignee: (unassigned) => Julian Andres Klode (juliank)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-02-26 Thread Brian Murray
** Changed in: ubuntu-release-upgrader (Ubuntu Hirsute)
 Assignee: (unassigned) => Brian Murray (brian-murray)

** Changed in: ubuntu-release-upgrader (Ubuntu Hirsute)
   Status: Confirmed => In Progress

** Changed in: ubuntu-release-upgrader (Ubuntu Hirsute)
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-01-14 Thread Brian Murray
** Also affects: ubuntu-release-upgrader (Ubuntu Hirsute)
   Importance: Undecided
   Status: Confirmed

** Tags removed: rls-ff-incoming

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2021-01-14 Thread Matthieu Clemenceau
** Tags added: fr-1056

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1898026] Re: interruption of dist-upgrade can leave you next release in sources.list

2020-12-10 Thread Balint Reczey
I've also experienced this in 18.04 -> 20.04 upgrade when running do-
release-upgrade without any option.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1898026

Title:
  interruption of dist-upgrade can leave you next release in
  sources.list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1898026/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs