[Bug 1438865] Re: Using dpkg in Recovery Menu fails if screen is installed

Brian Murray brian at ubuntu.com
Thu Apr 16 15:32:01 UTC 2015


While we've worked around this by setting RELEASE_UPGRADER_NO_SCREEN=1
in friendly-recovery, it'd be better to make sure that the screenrc file
is loaded by the release-upgrader all the time.

So in DistUpgrade/DistUpgradeMain.py we should change how screenrc is
loaded:

    # unset escape key to avoid confusing people who are not used to
    # screen. people who already run screen will not be affected by this
    # unset escape key with -e, enable log with -L, set name with -S
    cmd = ["screen", 
           "-e", "\\0\\0",
           "-L", 
           "-c", "screenrc",
           "-S", SCREENNAME]+sys.argv
    logging.info("re-exec inside screen: '%s'" % cmd)
    os.execv("/usr/bin/screen", cmd)


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

** Changed in: ubuntu-release-upgrader (Ubuntu)
       Status: New => Triaged

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

** Changed in: ubuntu-release-upgrader (Ubuntu)
    Milestone: None => later

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

Title:
  Using dpkg in Recovery Menu fails if screen is installed

Status in friendly-recovery package in Ubuntu:
  Fix Released
Status in ubuntu-release-upgrader package in Ubuntu:
  Triaged

Bug description:
  Using vivid with systemd the entry for "dpkg ... Repair broken
  packages" fails to do anything.

  rm: cannot remove "/var/lib/pat/lists/partial/": No such file or directory
  rm: cannot remove "/var/cache/apt/archives/partial/" No such file or directory
  Unable to open "screenrc".

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/friendly-recovery/+bug/1438865/+subscriptions



More information about the foundations-bugs mailing list