LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Updates are locked out (https://www.linuxquestions.org/questions/linux-newbie-8/updates-are-locked-out-4175630108/)

NelsonLinux 05-20-2018 05:23 PM

Updates are locked out
 
I cannot get updates anymore after 2 yrs using Ubuntu, it says var/lib/dpkg/lock or in terminal use "apt-get install -f".
I've used terminal to command apt-get install -f and it says "admin permission denied , are your root?"
In computer's files var/lib/dpkg/lock, access is denied.
Everything else works or I can admin login eveywhere else, except software Updates. What is going on, I'm still newish to Linux

hydrurga 05-20-2018 05:32 PM

Please paste the output from the following commands:

Code:

apt check

dpkg --audit

inxi -r

Which version of Ubuntu are you using?

NelsonLinux 05-20-2018 05:43 PM

do I paste all of that at once or 1 line at a time? Ubuntu 16.04.10

hydrurga 05-20-2018 05:46 PM

One line at a time.

There is no such thing, as far as I am aware, as Ubuntu 16.04.10.

Please see the following and let me know which version you're using:

https://help.ubuntu.com/community/Ch...rUbuntuVersion

NelsonLinux 05-20-2018 05:47 PM

I pasted in Term and I didn't have inxi so I got it and it says:
The following packages have unmet dependencies:
inxi : Depends: gawk
Recommends: hddtemp but it is not going to be installed
Recommends: lm-sensors but it is not going to be installed
Recommends: mesa-utils but it is not going to be installed
libperl5.22 : Depends: perl-modules-5.22 (>= 5.22.1-9ubuntu0.3) but 5.22.1-9ubuntu0.2 is to be installed
perl : Depends: perl-modules-5.22 (>= 5.22.1-9ubuntu0.3) but 5.22.1-9ubuntu0.2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

What do you suggest from that I do?

hydrurga 05-20-2018 05:49 PM

I suggest you run the first two commands and let me know which version of Ubuntu you're using.

NelsonLinux 05-20-2018 05:49 PM

Quote:

Originally Posted by hydrurga (Post 5857144)
One line at a time.

There is no such thing, as far as I am aware, as Ubuntu 16.04.10.

Please see the following and let me know which version you're using:

https://help.ubuntu.com/community/Ch...rUbuntuVersion

Sorry Ubuntu 16.04 LTS

NelsonLinux 05-20-2018 05:52 PM

First command gives this :
john@john-HP-Compaq-6200-Pro-SFF-PC:~$ hddtemp
The program 'hddtemp' is currently not installed. You can install it by typing:
sudo apt install hddtemp
john@john-HP-Compaq-6200-Pro-SFF-PC:~$ sudo apt install hddtemp
[sudo] password for john:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libperl5.22 : Depends: perl-modules-5.22 (>= 5.22.1-9ubuntu0.3) but 5.22.1-9ubuntu0.2 is to be installed
perl : Depends: perl-modules-5.22 (>= 5.22.1-9ubuntu0.3) but 5.22.1-9ubuntu0.2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
john@john-HP-Compaq-6200-Pro-SFF-PC:~$ apt-get -f install
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

hydrurga 05-20-2018 05:53 PM

Quote:

Originally Posted by NelsonLinux (Post 5857147)
Sorry Ubuntu 16.04 LTS

Great. I was hoping that you didn't have 16.10 as that went end-of-life a while ago.

Instead of the inxi command, you can use:

Code:

cat /etc/apt/sources.list{,.d/*}

hydrurga 05-20-2018 05:55 PM

Quote:

Originally Posted by NelsonLinux (Post 5857150)
First command gives this :
john@john-HP-Compaq-6200-Pro-SFF-PC:~$ hddtemp
The program 'hddtemp' is currently not installed. You can install it by typing:
sudo apt install hddtemp
john@john-HP-Compaq-6200-Pro-SFF-PC:~$ sudo apt install hddtemp
[sudo] password for john:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libperl5.22 : Depends: perl-modules-5.22 (>= 5.22.1-9ubuntu0.3) but 5.22.1-9ubuntu0.2 is to be installed
perl : Depends: perl-modules-5.22 (>= 5.22.1-9ubuntu0.3) but 5.22.1-9ubuntu0.2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
john@john-HP-Compaq-6200-Pro-SFF-PC:~$ apt-get -f install
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

I didn't ask you to run hddtemp. What's all this?

Edit: I see now. By the "first two commands", I meant the first two commands in post #2.

NelsonLinux 05-20-2018 05:55 PM

Quote:

Originally Posted by hydrurga (Post 5857151)
Great. I was hoping that you didn't have 16.10 as that went end-of-life a while ago.

Instead of the inxi command, you can use:

Code:

cat /etc/apt/sources.list{,.d/*}

Thank you I ran the other commands before and Term says this:
john@john-HP-Compaq-6200-Pro-SFF-PC:~$ lm-sensors
lm-sensors: command not found
john@john-HP-Compaq-6200-Pro-SFF-PC:~$ mesa-utils
mesa-utils: command not found
john@john-HP-Compaq-6200-Pro-SFF-PC:~$

hydrurga 05-20-2018 05:57 PM

Quote:

Originally Posted by NelsonLinux (Post 5857153)
Thank you I ran the other commands before and Term says this:
john@john-HP-Compaq-6200-Pro-SFF-PC:~$ lm-sensors
lm-sensors: command not found
john@john-HP-Compaq-6200-Pro-SFF-PC:~$ mesa-utils
mesa-utils: command not found
john@john-HP-Compaq-6200-Pro-SFF-PC:~$

Please see my post above.

hydrurga 05-20-2018 06:01 PM

Just for your info, hddtemp, lm-sensors and mesa-utils are not "commands", they are packages (at least in the context they appeared in your output).

hydrurga 05-20-2018 06:03 PM

Ok, I'll rephrase it. Is there any output from the first two commands in post #2?

NelsonLinux 05-20-2018 06:05 PM

Quote:

Originally Posted by hydrurga (Post 5857146)
I suggest you run the first two commands and let me know which version of Ubuntu you're using.

I saw this and thought you meant to run hddtemp because you didn't quote which post of commands you were answering, line 5 or line 3

john@john-HP-Compaq-6200-Pro-SFF-PC:~$ cat /etc/apt/sources.list{,.d/*}
deb cdrom:[Ubuntu 16.04.2 LTS _Xenial Xerus_ - Release amd64 (20170215.2)]/ xenial main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://mirror.it.ubc.ca/ubuntu/ xenial main restrictedline
deb-src http://mirror.it.ubc.ca/ubuntu/ xenial main multiverse restricted universe

## Major bug fix updates produced after the final release of the
## distribution.
deb http://mirror.it.ubc.ca/ubuntu/ xenial-updates main restricted
deb-src http://mirror.it.ubc.ca/ubuntu/ xenial-updates main multiverse restricted universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://mirror.it.ubc.ca/ubuntu/ xenial universe
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial universe
deb http://mirror.it.ubc.ca/ubuntu/ xenial-updates universe
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.john@john-HP-Compaq-6200-Pro-SFF-PC:~$ cat /etc/apt/sources.list{,.d/*}
deb cdrom:[Ubuntu 16.04.2 LTS _Xenial Xerus_ - Release amd64 (20170215.2)]/ xenial main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://mirror.it.ubc.ca/ubuntu/ xenial main restricted
deb-src http://mirror.it.ubc.ca/ubuntu/ xenial main multiverse restricted universe

## Major bug fix updates produced after the final release of the
## distribution.
deb http://mirror.it.ubc.ca/ubuntu/ xenial-updates main restricted
deb-src http://mirror.it.ubc.ca/ubuntu/ xenial-updates main multiverse restricted universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://mirror.it.ubc.ca/ubuntu/ xenial universe
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial universe
deb http://mirror.it.ubc.ca/ubuntu/ xenial-updates universe
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://mirror.it.ubc.ca/ubuntu/ xenial multiverse
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://mirror.it.ubc.ca/ubuntu/ xenial-updates multiverse
# deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner

# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
deb http://security.ubuntu.com/ubuntu/ xenial-security main multiverse restricted universe
deb http://mirror.it.ubc.ca/ubuntu/ xenial-backports restricted universe multiverse mainjohn@john-HP-Compaq-6200-Pro-SFF-PC:~$ cat /etc/apt/sources.list{,.d/*}john@john-HP-Compaq-6200-Pro-SFF-PC:~$ cat /etc/apt/sources.list{,.d/*}
deb cdrom:[Ubuntu 16.04.2 LTS _Xenial Xerus_ - Release amd64 (20170215.2)]/ xenial main restricted


All times are GMT -5. The time now is 05:45 AM.