LinuxQuestions.org
Help answer threads with 0 replies.
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, 06:09 PM   #16
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
Ok, I'll rephrase it. Is there any output from the first two commands in post #2?
john@john-HP-Compaq-6200-Pro-SFF-PC:~$ apt check
E: Invalid operation check
john@john-HP-Compaq-6200-Pro-SFF-PC:~$ dpkg --audit
dpkg: error: unable to open lock file /var/lib/dpkg/lock for testing: Permission denied
 
Old 05-20-2018, 06:15 PM   #17
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
Can you please just run that cat command once and paste the output. In post 15, you have appended at least two outputs, and truncated one of those.
 
Old 05-20-2018, 06:17 PM   #18
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,547

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
Quote:
john@john-HP-Compaq-6200-Pro-SFF-PC:~$ apt-get -f install
Any reason you are not prefacing that command with sudo? The output you posted is what would be expected, Permission denied.
Did you install recently software from some third party source, anything outside the Ubuntu repositories. Often, this error will appear during a failed install or an incomplete install. Trying to install from Software Manager and thinking it is finished when it is not, or for whatever reason, the install does not finish. Can have the same problem if you tried to install from a command line and it didn't finish.
 
Old 05-20-2018, 06:19 PM   #19
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
john@john-HP-Compaq-6200-Pro-SFF-PC:~$ apt check
E: Invalid operation check
john@john-HP-Compaq-6200-Pro-SFF-PC:~$ dpkg --audit
dpkg: error: unable to open lock file /var/lib/dpkg/lock for testing: Permission denied
I'm going to leave this for the moment because we need to concentrate on just one thing.
 
Old 05-20-2018, 06:19 PM   #20
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
Can you please just run that cat command once and paste the output. In post 15, you have appended at least two outputs, and truncated one of those.
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 main
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
# deb http://dl.google.com/linux/earth/deb/ stable main
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
# deb http://dl.google.com/linux/earth/deb/ stable main
john@john-HP-Compaq-6200-Pro-SFF-PC:~$
 
Old 05-20-2018, 06:23 PM   #21
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 yancek View Post
Any reason you are not prefacing that command with sudo? The output you posted is what would be expected, Permission denied.
Did you install recently software from some third party source, anything outside the Ubuntu repositories. Often, this error will appear during a failed install or an incomplete install. Trying to install from Software Manager and thinking it is finished when it is not, or for whatever reason, the install does not finish. Can have the same problem if you tried to install from a command line and it didn't finish.
Sorry, newbie here what do you mean by sudo? apt-get is sudo ?
Thank you for your help and patience hydrurga

Last edited by NelsonLinux; 05-20-2018 at 06:24 PM.
 
Old 05-20-2018, 06:27 PM   #22
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
Thanks. Unless you're accessing repositories on CD/DVD, you need to run:

Code:
gksudo gedit /etc/apt/sources.list
and add a # symbol before "deb cdrom" in the first line.

Then save the file. It won't change a lot, but it keeps things tidy.

Let me know when you've done that and we will proceed.
 
Old 05-20-2018, 06:31 PM   #23
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
Thanks. Unless you're accessing repositories on CD/DVD, you need to run:

Code:
gksudo gedit /etc/apt/sources.list
and add a # symbol before "deb cdrom" in the first line.

Then save the file. It won't change a lot, but it keeps things tidy.

Let me know when you've done that and we will proceed.
john@john-HP-Compaq-6200-Pro-SFF-PC:~$ gksudo gedit /etc/apt/sources.list
The program 'gksudo' is currently not installed. You can install it by typing:
sudo apt install gksu
john@john-HP-Compaq-6200-Pro-SFF-PC:~$ sudo apt install gksu
[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:
gksu : Depends: libgksu2-0 (>= 2.0.8) 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).
john@john-HP-Compaq-6200-Pro-SFF-PC:~$
 
Old 05-20-2018, 06:35 PM   #24
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
You certainly have a strange system there. It could well be that Ubuntu doesn't have a lot of the programs I take for granted on Mint, so I apologise for that. Thanks for bearing with me.

Instead of gksudo, just use sudo:

Code:
sudo gedit /etc/apt/sources.list
Don't worry about any warnings you see in your command line output.
 
Old 05-20-2018, 06:38 PM   #25
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
You certainly have a strange system there. It could well be that Ubuntu doesn't have a lot of the programs I take for granted on Mint, so I apologise for that. Thanks for bearing with me.

Instead of gksudo, just use sudo:

Code:
sudo gedit /etc/apt/sources.list
Don't worry about any warnings you see in your command line output.
This sources list comes up when I run sudo:
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 main
 
Old 05-20-2018, 06:41 PM   #26
NelsonLinux
Member
 
Registered: May 2018
Location: Nelson, Kootenay Rockies BC, Canada
Distribution: 16.04 LTS
Posts: 53

Original Poster
Rep: Reputation: Disabled
Correct, I'm not running repos' from cd/DVDs, and the ubc mirror is a new source I've never seen before, I guess it got clicked on by mistake and is restricted?

I don't know what this means from you : and add a # symbol before "deb cdrom" in the first line.

Last edited by NelsonLinux; 05-20-2018 at 06:43 PM.
 
Old 05-20-2018, 06:43 PM   #27
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 see post #22 for what I asked you to do to that file.

You're not "running sudo" by the way. You're running the text editor gedit. However you're putting sudo before gedit to tell it to run gedit as root, not an ordinary user. If you didn't do that, you wouldn't be able to make any changes to the file as it is owned by root.
 
Old 05-20-2018, 06:45 PM   #28
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
Correct, I'm not running repos' from cd/DVDs, and the ubc mirror is a new source I've never seen before, I guess it got clicked on by mistake and is restricted?

I don't know what this means from you : and add a # symbol before "deb cdrom" in the first line.
Really?

Change the first line from

Code:
deb cdrom:[Ubuntu 16.04.2 LTS _Xenial Xerus_ - Release amd64 (20170215.2)]/ xenial main restricted
to

Code:
#deb cdrom:[Ubuntu 16.04.2 LTS _Xenial Xerus_ - Release amd64 (20170215.2)]/ xenial main restricted
by putting a # symbol before "deb cdrom".
 
Old 05-20-2018, 06:46 PM   #29
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
Please see post #22 for what I asked you to do to that file.

You're not "running sudo" by the way. You're running the text editor gedit. However you're putting sudo before gedit to tell it to run gedit as root, not an ordinary user. If you didn't do that, you wouldn't be able to make any changes to the file as it is owned by root.
This is what I did in Term : john@john-HP-Compaq-6200-Pro-SFF-PC:~$ sudo gedit /etc/apt/sources.list
[sudo] password for john:

it opened souces.list and gave that big list
 
Old 05-20-2018, 06:48 PM   #30
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
Really?

Change the first line from

Code:
deb cdrom:[Ubuntu 16.04.2 LTS _Xenial Xerus_ - Release amd64 (20170215.2)]/ xenial main restricted
to

Code:
#deb cdrom:[Ubuntu 16.04.2 LTS _Xenial Xerus_ - Release amd64 (20170215.2)]/ xenial main restricted
by putting a # symbol before "deb cdrom".
I understand. # done in "sources.list" before deb cdrom and saved
 
  


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 07:00 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