Hello all !
I'm trying to create my package for ubuntu (14.04) for my company but I find hard :(
I use the version 9.11.0.4.5 of Sophos Anti-Virus. I have read several times the "Linux startup guide" and the "Linux configuration guide" and followed the instructions but nothing. Here is what my command-lines :
For example when I want to create the package I do !
# cd /opt/sophos-av/update
# ./mkinstpkg -D
After having accepted the licence, I have :
Do you accept the licence? Yes(Y)/No(N) [N]
> y
Where do you want to install Sophos Anti-Virus? [/opt/sophos-av]
> /opt/sophos-av
Do you want to enable on-access scanning? Yes(Y)/No(N) [Y]
> n
On-access scanning disabled. Use savscan for on-demand scanning.
Updating from your own server.
Website or directory from which to update? []
> /opt/sophos-av/update/cache/Primary <-- because I haven't got any update server yet.
Commandline: --update-cache-path=/opt/sophos-av/update/cache/Primary --instdir=/opt/sophos-av --enableSavProtectOnBoot=True --update-type=o --update-source-path=/opt/sophos-av/update/cache/Primary --acceptlicence=True --enableRMS=false --automatic=True --enableOnAccess=false --update-period-minutes=60
Deb package is '/opt/sophos-av/update/savinstpkg.deb'
This installation package won't run on x86 32-bit systems because it has been created on
an x86_64 system.
You have been granted a license to use the Licensed Products by Sophos for Your Internal
Use only (see the Sophos End User License Agreement for details). Any use by You of the
minipackages created using the Sophos Licensed Products are for use solely within Your
organization.
What I have to do with this command-line ? because if I try to use the package /opt/sophos-av/update/savinstpkg.deb just created, it's not working :
# mv savinstpkg /opt
# cd /opt
# /opt/sophos-av/uninstall.sh --automatic --force
# dpkg -i /opt/savinstpkg.deb
(Reading database ... 232400 files and directories currently installed.)
Preparing to unpack savinstpkg.deb ...
Unpacking savinstpkg (9.8.5) over (9.8.5) ...
Setting up savinstpkg (9.8.5) ...
Can't locate index of /opt/sophos-av/update/cache/Primary
Failed to replicate from /opt/sophos-av/update/cache/Primary
Failed to replicate from all update sources
dpkg: error processing package savinstpkg (--install):
subprocess installed post-installation script returned error exit status 61
Errors were encountered while processing:
savinstpkg
If I try to create the package with the command-lines given previously, that's similar :
# /opt/sophos-cid/install.sh /opt/sophos-av --automatic --acceptlicence --enableOnBoot=false --ignore-existing-installation --live-protection=false --update-source-type=n
# cd /opt/sophos-av/update
# ./mkinstpkg -D -o /opt/savinstpkg.deb --extra-options="--update-cache-path=/opt/sophos-av/update/cache/Primary --instdir=/opt/sophos-av --enableSavProtectOnBoot=True --update-type=o --update-source-path=/opt/sophos-av/update/cache/Primary --acceptlicence=True --enableRMS=false --automatic=True --enableOnAccess=false --update-period-minutes=60"
On-access scanning disabled. Use savscan for on-demand scanning.
Updating from your own server.
Extra files updating is disabled. You can change updating settings using /opt/sophos-
av/bin/savsetup.
Commandline: --update-cache-path=/opt/sophos-av/update/cache/Primary --instdir=/opt/sophos-av --enableSavProtectOnBoot=True --update-type=o --update-source-path=/opt/sophos-av/update/cache/Primary --acceptlicence=True --extrafiles-update-type=n --enableRMS=false --extrafiles-cache-path=/opt/sophos-av/update/cache/ExtraFiles --automatic=True --enableOnAccess=false --update-period-minutes=60
Deb package is '/opt/savintpkg.deb'
This installation package won't run on x86 32-bit systems because it has been created on
an x86_64 system.
You have been granted a license to use the Licensed Products by Sophos for Your Internal
Use only (see the Sophos End User License Agreement for details). Any use by You of the
minipackages created using the Sophos Licensed Products are for use solely within Your
organization.
If I try to create my without update-server, here is the result :
# ./mkinstpkg -D -o /opt/savinstpkg.deb --extra-options="--instdir=/opt/sophos-av --enableSavProtectOnBoot=True --update-type=n --acceptlicence=True --enableRMS=false --automatic=True --enableOnAccess=false"
On-access scanning disabled. Use savscan for on-demand scanning.
Auto-updating is disabled. Your computer will not be fully protected. Enable updating as
soon as possible (using /opt/sophos-av/bin/savsetup).
Extra files updating is disabled. You can change updating settings using /opt/sophos-
av/bin/savsetup.
Commandline: --update-cache-path=/opt/sophos-av/update/cache/Primary --instdir=/opt/sophos-av --enableSavProtectOnBoot=True --update-type=n --enableRMS=false --extrafiles-update-type=n --acceptlicence=True --extrafiles-cache-path=/opt/sophos-av/update/cache/ExtraFiles --automatic=True --enableOnAccess=false --update-period-minutes=60
Error: Failed to parse installation options.
Package creation aborted
NB : the "-o OUTPUT_FILE" is for the outfile. From the documentation, it should be is "-o=OUTPUT_FILE" but in that case, the argement is not considered...
Please could you indicate me where I have made a mistake ?
This thread was automatically locked due to age.