apt-get permission denied
Tom H
tomh0665 at gmail.com
Tue Aug 18 18:48:06 UTC 2015
On Mon, Aug 10, 2015 at 2:04 PM, Jack McGee <jack at greendesk.net> wrote:
> On 08/09/2015 03:17 PM, Tom H wrote:
>> On Sun, Aug 9, 2015 at 3:52 PM, Jack McGee <jack at greendesk.net> wrote:
>>> Preconfiguring packages ...
>>> Setting up util-linux (2.20.1-5.1ubuntu20.6) ...
>>> /var/lib/dpkg/info/util-linux.postinst: 6:
>>> /var/lib/dpkg/info/util-linux.postinst: update-alternatives: Permission
>>> denied
>>> dpkg: error processing package util-linux (--configure):
>>> subprocess installed post-installation script returned error exit
>>> status
>>> 126
>>> E: Sub-process /usr/bin/dpkg returned an error code (1)
>>> mythuser at ZBOX84:/var/lib/dpkg/info$
>>
>> These are the update-alternatives invocations.
>>
>> update-alternatives --install /usr/bin/pager pager /bin/more 50 \
>> --slave /usr/share/man/man1/pager.1.gz pager.1.gz
>> /usr/share/man/man1/more.1.gz
>> update-alternatives --install /usr/bin/pager pager /usr/bin/pg 10 \
>> --slave /usr/share/man/man1/pager.1.gz pager.1.gz
>> /usr/share/man/man1/pg.1.gz
>>
>> Can you add "-x" to "/var/lib/dpkg/info/util-linux.postinst" and run
>> the upgrade again?
>
> sorry I am dense here.
>
> I am to run these commands?
>
> update-alternatives --install /usr/bin/pager pager /bin/more 50 \
> --slave /usr/share/man/man1/pager.1.gz pager.1.gz
> /usr/share/man/man1/more.1.gz
> update-alternatives --install /usr/bin/pager pager /usr/bin/pg 10 \
> --slave /usr/share/man/man1/pager.1.gz pager.1.gz
> /usr/share/man/man1/pg.1.gz
Yes but on one line.
> And what is the command I am to add -x to?
Add "x" to the "set -e" line (so it becomes "set -ex").
More information about the ubuntu-users
mailing list