apt-get permission denied

Colin Law clanlaw at gmail.com
Sun Aug 9 18:51:58 UTC 2015


On 9 August 2015 at 17:09, Jack McGee <jack at greendesk.net> wrote:
> I am trying to update a 14.04 machine, it had a power outage, and I had to
> reinstall mythfrontend, but all seems to be working.
>
> Now I try to upgrade and get:
>
> mythuser at ZBOX84:~$ sudo apt-get upgrade
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Calculating upgrade... Done
> The following packages have been kept back:
>   libcuda1-331 nvidia-331 nvidia-331-uvm nvidia-libopencl1-331
>   nvidia-opencl-icd-331

In case you did not realise, the reason they are held back is probably
because you are using upgrade instead of dist-upgrade.

> The following packages will be upgraded:
> ...
> dpkg: error processing package util-linux (--configure):
>  subprocess installed post-installation script returned error exit status
> 126
> Errors were encountered while processing:
>  util-linux
> E: Sub-process /usr/bin/dpkg returned an error code (1)

You say you had a power outage, perhaps the deb file downloaded is
corrupted.  I suggest
sudo apt-get clean
sudo apt-get update && sudo apt-get dist-upgrade

Colin




More information about the ubuntu-users mailing list