apt-get permission denied

Jack McGee jack at greendesk.net
Tue Aug 11 11:36:14 UTC 2015


On 08/11/2015 01:20 AM, Petter Adsen wrote:
> On Mon, 10 Aug 2015 21:19:13 -0500
> Jack McGee <jack at greendesk.net> wrote:
>
>> On 08/10/2015 01:27 AM, Petter Adsen wrote:
>>> On Sun, 09 Aug 2015 14:52:01 -0500
>>> 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$
>>> Is it possible that /var has come up mounted noexec? This seems to
>>> start when launching the first script in /var.
>>>
>>>
>> drwxr-xr-x  14 root root  4096 May  6 11:51 var
>>
>>
> That won't tell you much. Is /var on a separate filesystem? You can
> check mount options by running 'mount' with no arguments. If /var is
> listed there with the 'noexec' option, then that is your problem.
>
>

mythuser at amethi:/$ mount
/dev/sdb2 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /sys/firmware/efi/efivars type efivarfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs 
(rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
/dev/sdb1 on /boot/efi type vfat (rw)
/dev/sdf1 on /mnt/media5 type ext4 (rw)
/dev/sde1 on /mnt/media4 type ext4 (rw)
/dev/sda1 on /mnt/media6 type ext4 (rw)
/dev/sdd1 on /mnt/media3 type xfs 
(rw,noexec,nosuid,nodev,noatime,nodiratime,allocsize=512m)
/dev/sdc1 on /mnt/media1 type ext4 (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc 
(rw,noexec,nosuid,nodev)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw)
systemd on /sys/fs/cgroup/systemd type cgroup 
(rw,noexec,nosuid,nodev,none,name=systemd)
nfsd on /proc/fs/nfsd type nfsd (rw)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse 
(rw,nosuid,nodev,user=mythuser)





More information about the ubuntu-users mailing list