You are not logged in.

#1 2017-01-31 22:34:02

DoctorBLK
New Member
Registered: 2017-01-31
Posts: 4

[SOLVED]sources.list permission denied, repos won't update

I am on a fresh install of Hydrogen, and I am not able to update some repositories.

When I installed the distro, I wasn't able to download the mirror, so I skipped that. That caused my sources.list to be inadequate. I have tried fixing the source.list, but even as a superuser it says "permission denied" whenever I try to change the file.

Offline

#2 2017-01-31 22:38:37

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: [SOLVED]sources.list permission denied, repos won't update

What is the command you are using?

Are you a member of sudoers? "sudo" should appear in the output of the command:

groups

If all else fails you can boot the live iso and copy in the correct sources. Details on the defaults are here: Sources - sources.list and backports details

Last edited by damo (2017-01-31 22:40:44)


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#3 2017-01-31 23:01:18

DoctorBLK
New Member
Registered: 2017-01-31
Posts: 4

Re: [SOLVED]sources.list permission denied, repos won't update

I'm using just a simple

/etc/apt/sources.list

And I am the admin of the PC.

When I type this, it responds with

bash: /etc/atp/sources.list: permission denied

Offline

#4 2017-01-31 23:08:20

DoctorBLK
New Member
Registered: 2017-01-31
Posts: 4

Re: [SOLVED]sources.list permission denied, repos won't update

I may have fixed it. Even though I was in root, the file wasn't trying to open in root. I tried opening it like that directly and it let me alter the file.

Offline

#5 2017-01-31 23:21:53

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: [SOLVED]sources.list permission denied, repos won't update

DoctorBLK wrote:

I'm using just a simple

/etc/apt/sources.list

That is the reason then - you haven't given it a command, just a filepath. To open in a terminal editor use

sudo nano /etc/apt/sources.list

To open in geany, do:

gksudo geany /etc/apt/sources.list

or in the file manager, r-click and select "Open as root"


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#6 2017-01-31 23:25:18

DoctorBLK
New Member
Registered: 2017-01-31
Posts: 4

Re: [SOLVED]sources.list permission denied, repos won't update

It's working now. Sorry for the trouble. And thanks for your help. Solved.

Offline

#7 2017-01-31 23:35:31

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: [SOLVED]sources.list permission denied, repos won't update

If there is a next time, you can edit the title of your first post yourself, and add [SOLVED]  wink


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

Board footer

Powered by FluxBB