Getting "This repository does not have a release file" on freshly installed Debian 9.1 with KDE

119

It works now after:

  • Changing the sources file by duplicating the below lines with one of the pairs saying stretch-updates instead of stretch
  • running apt-get install firefox-esr

Prior I only commented out the CD sources and added a source in the same way as here, like:

deb http://ftp.id.debian.org/debian/ stretch main contrib
deb-src http://ftp.id.debian.org/debian/ stretch main contrib

which I changed to stretch/updates which didn't help nor did changing the mirror.

For the bluescreen and freezes I created a separate question here

Share:
119

Related videos on Youtube

Novice Polymath
Author by

Novice Polymath

Updated on September 18, 2022

Comments

  • Novice Polymath
    Novice Polymath over 1 year

    I'm working on a homework assignment, and I can't seem to get this function right. Does anyone have any ideas on why this won't work to create a substring consisting of the characters in between two spaces (word 0, word 1, etc...)?

    string extractWord(string s, int wordNum)
    {
        int wordIndices[10];
        int i = 0;
        for (int z = 0; z < s.length(); z++)
        {
            if (isspace(s.at(z))==true)
            {
                wordIndices[i] = z;
                i++;
            }
        }
        return s.substr(wordIndices[wordNum], abs(wordIndices[wordNum+1] - wordIndices[wordNum]));
    }
    
    • R Sahu
      R Sahu almost 8 years
      If s is "word1 word2", then, wordIndices[0] will be 5. I don't think you want that. In other words, if there are no leading whitespace characters, wordIndices[0] must be set to 0.
    • Thomas Matthews
      Thomas Matthews almost 8 years
      BTW, you can treat std::string as an array and don't need the at function, such as s[z].
    • Admin
      Admin almost 7 years
      ...So what does your sources list say?..
  • πάντα ῥεῖ
    πάντα ῥεῖ almost 8 years
    I already know, you'll come up here saying "my assignment restricts me to use blah, blah", though such doesn't matter in real world programming with c++.