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. |
|