Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
## 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
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.
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:~$
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.
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
## 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
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.
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.
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
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:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.