Find the answer to your Linux question:
Results 1 to 8 of 8
First of all, I have a problem with my VPN, running CentOS. Well, the problem is a read-only file allocated in "/etc/yum.repos.d", which is corrupted and makes imposible the use ...
  1. #1
    Just Joined!
    Join Date
    Nov 2011
    Posts
    5

    Help with a read-online file!

    First of all, I have a problem with my VPN, running CentOS.

    Well, the problem is a read-only file allocated in "/etc/yum.repos.d", which is corrupted and makes imposible the use of yum, the package manager.

    The problem is I cant modify or delete this file, not even when I'm logged in as root. Here's the error given:

    Code:
    rm: can't remove «lxlabs.repo»: Not allowed Operation

    I don't know what to do, I ran out of ideas :S
    Help please, thank you.

  2. #2
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    616
    Are those special characters in that name I see? Try using double quotations around the filename.
    linux user # 503963

  3. #3
    Just Joined!
    Join Date
    Nov 2011
    Posts
    5
    I think those characters are printed in the error message, I mean, the file's name does not contain them.

    I tried the doouble quotations thing and have the same problem :/.

    Thanks for the attention by the way.

  4. #4
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    616
    What if you pass yum the old -disablerepo=reponame? Does yum still not work?
    linux user # 503963

  5. #5
    Just Joined!
    Join Date
    Nov 2011
    Posts
    5
    Thats a good idea but It dosnt work either, its like yum can't even initialize. Heres the error:

    Code:
    yum -disablerepo="lxlabs.repo"
    Loaded plugins: fastestmirror
    Config Error: File contains no section headers.
    file: file://///etc/yum.repos.d/lxlabs.repo, line: 1
    'dditional packages that may be useful\n'

  6. #6
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    616
    Can you do anything else to that file? cat? vim?
    maybe
    Code:
    echo 0 > lxlabs.repo
    is it flagged as immutable?
    linux user # 503963

  7. #7
    Just Joined!
    Join Date
    Nov 2011
    Posts
    5
    When I run that it says:

    Code:
    -bash: lxlabs.repo: Permission denied
    And what is that immutable flag? :S

  8. #8
    Just Joined!
    Join Date
    Nov 2011
    Posts
    5
    Wow thank you!

    Appaently it had the immutable flag, I unflaged it and now I'm able to edit it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...