Unable to lock administration directory + Broken Desktop

Asked by Nurul Iliana on 2018-01-12

ive managed to screw up quite a few things and have 0 idea how to deal with them, bear in mind that i have been using ubuntustudio for over a year and barely understand how it works. i only know how to use some of the software is all.

currently using Ubuntu Studio

Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial

1. first I tried to install the Unity Tweak Tool to install the Dark Vertex Theme from noobslab.com using these commands

sudo add-apt-repository ppa:noobslab/themes
sudo apt-get update
sudo apt-get install vertex-theme

and subsequently failed to do so, probably because it was incompatible with my build or. something.

2. the next day i booted up, im left with a blank background, and my cursor is a black X, all my window decorations are gone.
also I cant type in my terminal. im left with just the dock.

Ive uninstalled and purged the Unity Tweak Tool

Opened the ccsm and enabled 'window decorations' under Effects and still nothing.

after a quick logout im able to use the terminal for a quick "unity --reset" and i got the window decors back except its not the one i usually use.

after rebooting the problem comes back and im trying to search for a solution.

3. but as i try to use the 'sudo apt-get update'

im left with this

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

4. Also im only able to type in the Terminal after a logged out and back in again, before opening any other app. For example after i used the terminal and opened chrome, im unable to type in anything after that.

5. Unable to use CTRL+Tab to switch windows

im just so clueless please help D:

here's a screenshot of what it looked like after reboot

https://i.imgur.com/OJqO16i.png

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu alsa-driver Edit question
Assignee:
No assignee Edit question
Last query:
2018-01-15
Last reply:
2018-01-31

Run:

sudo fuser -vki /var/lib/dpkg/lock
sudo dpkg --configure -a
sudo apt-get -f install

Nurul Iliana (nuruliliana) said : #2

ran this "sudo fuser -vki /var/lib/dpkg/lock"

and got this output

Usage: fuser [-fMuvw] [-a|-s] [-4|-6] [-c|-m|-n SPACE] [-k [-i] [-SIGNAL]] NAME...
       fuser -l
       fuser -V
Show which processes use the named files, sockets, or filesystems.

  -a,--all display unused files too
  -i,--interactive ask before killing (ignored without -k)
  -k,--kill kill processes accessing the named file
  -l,--list-signals list available signal names
  -m,--mount show all processes using the named filesystems or block device
  -M,--ismountpoint fulfill request only if NAME is a mount point
  -n,--namespace SPACE search in this name space (file, udp, or tcp)
  -s,--silent silent operation
  -SIGNAL send this signal instead of SIGKILL
  -u,--user display user IDs
  -v,--verbose verbose output
  -w,--writeonly kill only processes with write access
  -V,--version display version information
  -4,--ipv4 search IPv4 sockets only

If you reboot does it help?

Nurul Iliana (nuruliliana) said : #4

i havent rebooted but i tried get-update and it worked! thank you :D

now im just trying to figure out how to restore my window decorations permanently
the closest solution i got was using
'sudo xfmq --replace'
but it was temporary, after I closed all windows my dock is missing and the problem came back.
can you suggest a fix?

Nurul Iliana (nuruliliana) said : #5

also i got this output after running 'sudo xfmq --replace'

(xfwm4:3342): xfwm4-WARNING **: Failed to connect to session manager: Failed to connect to the session manager: SESSION_MANAGER environment variable not defined

Uninstall vertex-theme and run:

sudo apt-get install ppa-purge
sudo ppa-purge ppa:noobslab/themes
sudo apt-get clean

Then use the tweak tool to set the theme

Nurul Iliana (nuruliliana) said : #7

Ive already uninstalled the Tweak tool yesterday but i tried the ppa-purge anyway and this is what i got

Updating packages lists
W: Target Packages (games/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:2
W: Target Packages (games/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:2
W: Target Packages (games/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:2
W: Target Translations (games/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:2
W: Target Translations (games/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:2
W: Target DEP-11 (games/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:2
W: Target DEP-11-icons (games/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:2
W: The repository 'http://ppa.launchpad.net/ubuntu-audio-dev/ppa/ubuntu xenial Release' does not have a Release file.
E: Failed to fetch http://ppa.launchpad.net/ubuntu-audio-dev/ppa/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
W: Target Packages (games/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:2
W: Target Packages (games/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:2
W: Target Packages (games/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:2
W: Target Translations (games/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:2
W: Target Translations (games/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:2
W: Target DEP-11 (games/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:2
W: Target DEP-11-icons (games/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/getdeb.list:1 and /etc/apt/sources.list.d/getdeb.list:2
Warning: apt-get update failed for some reason

Manfred Hampl (m-hampl) said : #8

Please provide the output of the commands

cat -n /etc/apt/sources.list.d/getdeb.list
grep ubuntu-audio-dev /etc/apt/sources.list /etc/apt/sources.list.d/*.list

Nurul Iliana (nuruliliana) said : #9

@Manfred

obsidianagony@MyStudi0:~$ cat -n /etc/apt/sources.list.d/getdeb.list
     1 deb http://archive.getdeb.net/ubuntu saucy-getdeb games
     2 deb http://archive.getdeb.net/ubuntu saucy-getdeb games

obsidianagony@MyStudi0:~$ grep ubuntu-audio-dev /etc/apt/sources.list /etc/apt/sources.list.d/*.list
/etc/apt/sources.list.d/ubuntu-audio-dev-ubuntu-ppa-xenial.list:deb http://ppa.launchpad.net/ubuntu-audio-dev/ppa/ubuntu xenial main
/etc/apt/sources.list.d/ubuntu-audio-dev-ubuntu-ppa-xenial.list:# deb-src http://ppa.launchpad.net/ubuntu-audio-dev/ppa/ubuntu xenial main

reinstalled ubuntu-desktop and still didnt work after reboot

sudo rm /etc/apt/sources.list.d/getdeb.list
sudo apt-get update

Manfred Hampl (m-hampl) said : #11

There are different issues:

1. for the warnings and error when updating issue the following commands:

echo "deb http://archive.getdeb.net/ubuntu xenial-getdeb games" | sudo tee /etc/apt/sources.list.d/getdeb.list

sudo rm /etc/apt/sources.list.d/ubuntu-audio-dev-ubuntu-ppa-xenial.list

2. The problem with broken display maybe is caused by Bug #1735594
To check that please provide the output of the commands

uname -a
lsb_release -crid
apt-cache policy libgl1-mesa-dri

Nurul Iliana (nuruliliana) said : #12

just for the record this is the temporary fix im using, it works to an extent but there also seems to be an error? maybe that could help

obsidianagony@MyStudi0:~$ sudo xfwm4 --replace
[sudo] password for obsidianagony:

(xfwm4:2177): xfwm4-WARNING **: Failed to connect to session manager: Failed to connect to the session manager: SESSION_MANAGER environment variable not defined

@Manfred

1. issued the commands and this is the result

obsidianagony@MyStudi0:~$ echo "deb http://archive.getdeb.net/ubuntu xenial-getdeb games" | sudo tee /etc/apt/sources.list.d/getdeb.list
[sudo] password for obsidianagony:
deb http://archive.getdeb.net/ubuntu xenial-getdeb games
obsidianagony@MyStudi0:~$ sudo rm /etc/apt/sources.list.d/ubuntu-audio-dev-ubuntu-ppa-xenial.list
rm: cannot remove '/etc/apt/sources.list.d/ubuntu-audio-dev-ubuntu-ppa-xenial.list': No such file or directory

2. this is the next one

obsidianagony@MyStudi0:~$ uname -a
Linux MyStudi0 4.4.0-62-lowlatency #83-Ubuntu SMP PREEMPT Wed Jan 18 15:00:41 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
obsidianagony@MyStudi0:~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
obsidianagony@MyStudi0:~$ apt-cache policy libgl1-mesa-dri

libgl1-mesa-dri:
  Installed: 12.0.6-0ubuntu0.16.04.1
  Candidate: 17.2.4-0ubuntu1~16.04.2
  Version table:
     17.2.4-0ubuntu1~16.04.2 500
        500 http://my.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
 *** 12.0.6-0ubuntu0.16.04.1 100
        100 /var/lib/dpkg/status
     11.2.0-1ubuntu2 500
        500 http://my.archive.ubuntu.com/ubuntu xenial/main amd64 Packages

Why are you adding sudo to the xfwm command?

Manfred Hampl (m-hampl) said : #14

Try

sudo apt-get update

Does it still show warnings and errors?

Nurul Iliana (nuruliliana) said : #15

i just copied the one i found in one of the blogs, is it unsafe?

Launchpad Janitor (janitor) said : #16

This question was expired because it remained in the 'Open' state without activity for the last 15 days.