Activity log for bug #1323976

Date Who What changed Old value New value Message
2014-05-28 06:56:42 dvh bug added bug
2014-05-28 06:56:42 dvh attachment added Patch for /usr/share/pyshared/apt_offline_core/AptOfflineCoreLib.py https://bugs.launchpad.net/bugs/1323976/+attachment/4121161/+files/apt-offline.patch
2014-05-28 06:59:51 dvh description I have Ubuntu 14.04 64bit installed and fully updated. I installed package "apt-offline". Following command does not work: $ sudo apt-get set ao.sig Generating database of files that are needed for an update. E: Command line option --simulate is not understood ERROR: FATAL: Something is wrong with the apt system. I found workaround here: http://superuser.com/questions/737905/debian-updating-package-lists-with-apt-offline-simulate-not-understood-for-a > I got this same error as well with the latest version of Ubuntu. I'm not on the machine > that had these issues at the moment, but I figured out a workaround. > > First, locate the python files that are used by apt-offline, if memory services I think it > was /usr/lib/python2.7/distribution-files/apt_offline_core/ or something like that. > There's a file I think called apt_offline_core.py and in there is a single line that > executes the command "apt-get update -qq --simulate --print-uris update". I changed > the line by removing the --simulate (I don't think --simulate is necessary, given that > --print-uris makes apt-get not actually do anything) and also I had to remove one of > the -q's. So it now read: > > apt-get -q --print-uris update > > This worked. Apparantly the bug is in the apt-get package, and not apt-offline itself. > I am running an older installation of ubuntu with an older version of apt-offline and > that installation works and the line of code with --simulate is unchanged. So the bug > is in the apt system. Actual file is: /usr/share/pyshared/apt_offline_core/AptOfflineCoreLib.py Patch is in the attachment. I have Ubuntu 14.04 64bit installed and fully updated. I installed package "apt-offline". Following command does not work: $ sudo apt-get set ao.sig Generating database of files that are needed for an update. E: Command line option --simulate is not understood ERROR: FATAL: Something is wrong with the apt system. I found workaround here: http://superuser.com/questions/737905/debian-updating-package-lists-with-apt-offline-simulate-not-understood-for-a > I got this same error as well with the latest version of Ubuntu. > I'm not on the machine that had these issues at the moment, but > I figured out a workaround. > > First, locate the python files that are used by apt-offline, > if memory services I think it was > /usr/lib/python2.7/distribution-files/apt_offline_core/ or > something like that. There's a file I think called > apt_offline_core.py and in there is a single line that > executes the command > "apt-get update -qq --simulate --print-uris update". > I changed the line by removing the --simulate (I don't think > --simulate is necessary, given that --print-uris makes apt-get > not actually do anything) and also I had to remove one of > the -q's. So it now read: > > apt-get -q --print-uris update > > This worked. Apparantly the bug is in the apt-get package, > and not apt-offline itself. I am running an older installation > of ubuntu with an older version of apt-offline and that > installation works and the line of code with --simulate is > unchanged. So the bug is in the apt system. Actual file is: /usr/share/pyshared/apt_offline_core/AptOfflineCoreLib.py Patch is in the attachment.
2014-05-29 12:01:57 Colin Watson affects launchpad apt-offline (Ubuntu)
2014-05-29 16:22:07 Ubuntu Foundations Team Bug Bot tags patch
2014-05-29 16:22:14 Ubuntu Foundations Team Bug Bot bug added subscriber Ubuntu Review Team
2014-05-30 06:41:45 dvh apt-offline (Ubuntu): status New Fix Released