Cant edit sources.list AS ROOT

  • Hi,


    I am having a weird issue. I wanted to add the new LTS repository to my sources.list but I cant edit it.


    Code
    -rw-r--r-- 1 root root 891 Sep 8 2013 sources.list
    root@selektos:/etc/apt# rm -rf sources.list
    rm: cannot remove `sources.list': Operation not permitted
    root@selektos:/etc/apt# whoami
    root


    Anyone having an idea what's going on?

  • thanks for the quick reply.
    So filelocking is possible. I wasnt sure how to understand this wikipedia paragraph on filelocking:

    Quote

    Although some types of locks can be configured to be mandatory, file locks under Unix are by default advisory. This means that cooperating processes may use locks to coordinate access to a file among themselves, but uncooperative processes are also free to ignore locks and access the file in any way they choose. In other words, file locks lock out other file lockers only, not I/O.

  • So Extended_file_attributes were used to lock sources.list.
    I didn't know such attributes existed. (and I thought I knew things about permissions and filesystems under linux)
    Whoever implemented or requested the locking of sources.list -> thanks for letting me learn new stuff :)

  • Well, you still shouldn't add repos in /etc/apt/sources.list. They should be added through a new list file in /etc/apt/sources.list.d.

  • Well I wanted to have it in the main sources.list file, because squeeze-lts is not just any repository.
    Also I didnt have omvextras.org installed anymore and since it locked the file and didnt unlock it during uninstallation, I just recovered the original stage of sources.list.

  • The files in sources.list.d aren't any less important. It really doesn't matter where you put the lts repo.

    omv 5.6.6 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.1
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • I did it due to organizational reasons.
    I don't understand the fuzz about changing the sources.list. If the was a typo, apt-get update would let me know.

  • It has to do with people adding repos (typically ubuntu or linux mint) and causing LOTS of problems that they don't understand. It has helped us mods a lot with support.

    omv 5.6.6 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.1
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • That is why the Custom TAB in OMV Extras was created. To make it easy for people to add repos and keep them organized. This also prevents people from screwing up their sources.list which was wasting a lot of our mod's time. Not all of the foreign Debian mirrors were working correctly 100 percent of the time. When the mirrors had problems it was creating errors. By everyone being on the same repo for sources.list we don't have to waste time figuring out if there is a repo issue in a mirror.


    Lots of reasons...

  • Quote from "tekkbebe"

    ... This also prevents people from screwing up their sources.list ...


    For me this is the main reason. When people only add repos this is no problem at all. But changing the standard repos they need for updating OMV and keeping it stable...
    Btw. you now know how it is done. So no need to deinstall omv-extras... You can simply unlock it.


    We do not want to prescribe anyone anything. But as you do not have any disadvantages using the sources.list.d folder the standard file is locked.


  • For me this is the main reason. When people only add repos this is no problem at all. But changing the standard repos they need for updating OMV and keeping it stable...
    Btw. you now know how it is done. So no need to deinstall omv-extras... You can simply unlock it.


    We do not want to prescribe anyone anything. But as you do not have any disadvantages using the sources.list.d folder the standard file is locked.


    Agree w/ this completely.


    Adding repos is still exceptionally simple. With so many newbs who have zero Linux experience trying OMV... it's a lot easier not trying to troubleshoot their "default" sources, when they've not had an attempt at typos, etc. while changing their default sources list.

    Air Conditioners are a lot like PC's... They work great until you open Windows.


  • I need to edit this file because I was there the old repositories that now have a crash error

    I know that the world does not expect the us to many. It is sufficient that you answer yourself a very important question: what I like to do in life, and then start to do it.


    HP N36L Microserver 60GB SSD + 2x 250GB HDD + 2x 1TB omv 3.0.X 64 bit - 3.16 backport kernel
    Banana Pi + 16GB SD + 500GB - test platform omv 3.0.X - ARM - 3.4.104 kernel
    Banana PRO + 8GB SD + 320GB - test platform omv 30..X - ARM - 3.4.104 kernel
    SimpleNAS project - OpenMediaVault and Case for Banana Pi/PRO/M1/M1+/M3, LM Guitar

  • Hi WastlJ,
    I have a crash error, on my sever I have updated the sources for Squeeze-LTS. I have followed the suggestion in your OMV blog:



    Now I have to remove two lines in sources.list, please can you send me (in PM) the instructions to remove those lines ?


    Thank you in advance!

  • Now I have to remove two lines in sources.list, please can you send me (in PM) the instructions to remove those lines ?


    Thank you in advance!


    No need to. Squeeze-LTS will be replaced with 'wheezy' on upgrading.


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!