Ubuntu updates blocked apt-get

208

Solution 1

I fixed the problem by doing

sudo rm -f /etc/apt/sources.list.d/*

sudo dpkg -i /var/cache/apt/archives/*.deb

sudo dpkg --configure -a

Solution 2

A part of the error report clearly shows that,

debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable

means /var/cache/debconf/config.dat was locked by another process which prevents the current process from configuring packages.So wait for the process to freeup /var/cache/debconf/config.dat this resource. If no other process is using this resource, a simple restart will solve your problem.

Share:
208

Related videos on Youtube

Matt Kneiser
Author by

Matt Kneiser

Updated on September 18, 2022

Comments

  • Matt Kneiser
    Matt Kneiser over 1 year

    Problem:

    $ git status -s
    MM myfile
    $ git stash save
    $ git show stash@{0}
    # Only shows unstaged changes NOT staged changes
    
    # To debug:
    $ GIT_TRACE=2 git stash show
    trace: exec: 'git-stash' 'show'
    trace: run_command: 'git-stash' 'show'
    trace: built-in: git 'rev-parse' '--git-dir'
    trace: built-in: git 'rev-parse' '--show-toplevel'
    trace: built-in: git 'config' '--get-colorbool' 'color.interactive'
    trace: built-in: git 'config' '--get-color' 'color.interactive.help' 'red bold'
    trace: built-in: git 'config' '--get-color' '' 'reset'
    trace: built-in: git 'rev-parse' '--no-flags' '--symbolic' '--sq'
    trace: built-in: git 'rev-parse' '--symbolic-full-name' 'refs/stash'
    trace: built-in: git 'diff' '--stat' 'aaaa' 'bbbb'
    trace: run_command: 'pager'
    trace: exec: 'pager'
    $ git diff --stat aaaa bbbb
    # Shows both staged and unstaged changes
    $ git stash apply --index
    $ git status -s
    MM myfile
    

    Why doesn't git show stash@{0} not show the staged changes that were supposed to be part of the stash? It appears that git-stash is silently hiding the staged changes in a stash.

    • saiarcot895
      saiarcot895 about 10 years
      I blame this file: /var/cache/debconf/config.dat. Also, you have 25 packages that aren't fully installed/removed, which is a little bad. Can you try restarting and running apt-get install -f?