LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-20-2018, 05:23 PM   #1
NelsonLinux
Member
 
Registered: May 2018
Location: Nelson, Kootenay Rockies BC, Canada
Distribution: 16.04 LTS
Posts: 53

Rep: Reputation: Disabled
Question 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
 
Old 05-20-2018, 05:32 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Please paste the output from the following commands:

Code:
apt check

dpkg --audit

inxi -r
Which version of Ubuntu are you using?
 
Old 05-20-2018, 05:43 PM   #3
NelsonLinux
Member
 
Registered: May 2018
Location: Nelson, Kootenay Rockies BC, Canada
Distribution: 16.04 LTS
Posts: 53

Original Poster
Rep: Reputation: Disabled
do I paste all of that at once or 1 line at a time? Ubuntu 16.04.10
 
Old 05-20-2018, 05:46 PM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
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
 
Old 05-20-2018, 05:47 PM   #5
NelsonLinux
Member
 
Registered: May 2018
Location: Nelson, Kootenay Rockies BC, Canada
Distribution: 16.04 LTS
Posts: 53

Original Poster
Rep: Reputation: Disabled
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?
 
Old 05-20-2018, 05:49 PM   #6
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
I suggest you run the first two commands and let me know which version of Ubuntu you're using.
 
Old 05-20-2018, 05:49 PM   #7
NelsonLinux
Member
 
Registered: May 2018
Location: Nelson, Kootenay Rockies BC, Canada
Distribution: 16.04 LTS
Posts: 53

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
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
 
Old 05-20-2018, 05:52 PM   #8
NelsonLinux
Member
 
Registered: May 2018
Location: Nelson, Kootenay Rockies BC, Canada
Distribution: 16.04 LTS
Posts: 53

Original Poster
Rep: Reputation: Disabled
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?
 
Old 05-20-2018, 05:53 PM   #9
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by NelsonLinux View Post
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/*}
 
Old 05-20-2018, 05:55 PM   #10
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by NelsonLinux View Post
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.

Last edited by hydrurga; 05-20-2018 at 05:56 PM.
 
Old 05-20-2018, 05:55 PM   #11
NelsonLinux
Member
 
Registered: May 2018
Location: Nelson, Kootenay Rockies BC, Canada
Distribution: 16.04 LTS
Posts: 53

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
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:~$
 
Old 05-20-2018, 05:57 PM   #12
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by NelsonLinux View Post
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.
 
Old 05-20-2018, 06:01 PM   #13
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
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).
 
Old 05-20-2018, 06:03 PM   #14
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Ok, I'll rephrase it. Is there any output from the first two commands in post #2?
 
Old 05-20-2018, 06:05 PM   #15
NelsonLinux
Member
 
Registered: May 2018
Location: Nelson, Kootenay Rockies BC, Canada
Distribution: 16.04 LTS
Posts: 53

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bind9 + DHCP - very few forward map updates, lot of reverse updates? rylan76 Linux - Networking 0 11-28-2012 08:44 AM
got a Fedora 9 indication that yum updates were available, but there were no updates landonmkelsey Linux - Software 12 02-08-2009 09:53 AM
LXer: Updates, Beautiful Updates LXer Syndicated Linux News 0 01-28-2008 04:20 PM
yum check-update says no updates when there are updates? MarkEHansen Linux - General 7 12-29-2006 05:16 PM
Locked up during installation of updates. stappa Linux - Newbie 2 05-22-2005 01:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration