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 |
Please paste the output from the following commands:
Code:
apt check |
do I paste all of that at once or 1 line at a time? Ubuntu 16.04.10
|
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 |
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? |
I suggest you run the first two commands and let me know which version of Ubuntu you're using.
|
Quote:
|
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? |
Quote:
Instead of the inxi command, you can use: Code:
cat /etc/apt/sources.list{,.d/*} |
Quote:
Edit: I see now. By the "first two commands", I meant the first two commands in post #2. |
Quote:
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:~$ |
Quote:
|
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).
|
Ok, I'll rephrase it. Is there any output from the first two commands in post #2?
|
Quote:
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. |