Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 20
I have been running happily on Knoppmyth R5F27 (on Debian GNU 4.0/Etch) for a good long time. Everything has been operating well. My kids get to record their Mythbusters. Life ...
  1. #1
    Just Joined!
    Join Date
    Feb 2010
    Posts
    10

    [SOLVED] Noob Messes up on apt-get. Now lots of Segmentation Faults.

    I have been running happily on Knoppmyth R5F27 (on Debian GNU 4.0/Etch) for a good long time. Everything has been operating well. My kids get to record their Mythbusters. Life is good.

    Tonight, though, I tried to make things better. And that was the mistake.

    I read that we could use our PS3 to watch videos on Hulu. But, I needed a kind of proxy server or something to mask that I was using the PS3 browser. So, I thought I would install squid on the myth box.

    I first tried

    apt-get install squid

    But, that didn't quite work. So, at a friend's suggestion, I ran:

    apt-get update

    Which had problems, too. Still, being a noob, I reran the apt-get install squid and a bunch of stuff came down. It has problems, too.

    So, I turned back to apt-get update and realized there was a problem in sources.list. I updated it to have a more current repository and received the update.

    Then I realized that the apt-get for squid was pulling down resources for Debian GNU Linux 5.0. I struggled trying to kill the install for Squid. Failed. And then rebooted just to see if I have problems.

    And I do.

    Mythbackend won't start. The command to do so produces a segmentation fault. Ditto for mythfrontend and mythtv-setup.

    I don't know what to do. Can someone help me roll this back to a stable setup of Etch? If you want to see my (extremely messy) attempt to install squid and update the system you can look at

    www DOT franksandbebes DOT com SLASH iamanoob SLASH botched_squid.txt

    (I am even too much of a noob here to be allowed to post URLs)

    Thanks much,

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    I would actually try to roll up to Debian 5. What likely happened is that your sources.list was pointing to Debian Stable, not Debian Etch, so when Lenny became the new stable...

    The file is located at /etc/apt/sources.list

    It'll have entries looking something like
    Code:
    deb http://ftp.us.debian.org/debian/ stable main contrib non-free 
    deb-src http://ftp.us.debian.org/debian/ stable main contrib non-free
    The stable in that can be replaced with the codename of the release, ie, etch, lenny, squeeze, or sid, for old-stable, stable, testing, or unstable respectively.

    But Debian Etch reaches end of life on Feb. 15th, which means no more support and no more security updates.

    How To Upgrade Debian Etch To Lenny | HowtoForge - Linux Howtos and Tutorials

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Could you post the contents of /etc/apt/sources.list and /etc/debian_version files?

    Is Debian booting up at all?
    Last edited by devils casper; 02-12-2010 at 04:01 PM.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Just Joined!
    Join Date
    Feb 2010
    Posts
    10
    Reed:

    Quote Originally Posted by reed9 View Post
    I would actually try to roll up to Debian 5. What likely happened is that your sources.list was pointing to Debian Stable, not Debian Etch, so when Lenny became the new stable...
    I'm a little reluctant to do this. Being such a noob, I don't know if my current release of Knoppmyth will run reliably on Debian 5. And I'm happy with the stability of what I have.

    The file is located at /etc/apt/sources.list
    This is what sources.list looks like (minus commented out lines):

    #Debian repos
    deb http ftp DOT debian DOT org stable main contrib non-free
    deb-src http ftp DOT debian DOT org stable main contrib non-free

    #For additional multimedia packages
    deb http www DOT debian-multimedia DOT org sid main
    deb http www DOT debian-multimedia DOT org etch main

    I stuck the etch line in yesterday to try to get the missing files. I hadn't realized the other lines would cause it to get current release software (and I had run it the apt-get even before I knew about sources.list).

    So, if there's a way to roll back, that would be great.

    Gary

  5. #5
    Just Joined!
    Join Date
    Feb 2010
    Posts
    10
    Could you post the contents of /etc/apt/sources.list and /etc/debian_version files?

    Is Debian booting up at all?
    Sources.list was in my immediately previous post. Here is debian_version:

    root@imythtv:/etc# more debian_version
    4.0

    And yes, it is booting. I can ssh into the machine. "top" and, I imagine, some other simple utilities run. But, none of the Knoppmyth stuff does.

    Thanks much!

    Gary

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Replace contents of sources.list file with this one :
    Code:
    deb http://ftp.debian.org/debian/ etch main contrib non-free
    deb http://security.debian.org/ etch/updates main contrib non-free
    deb http://www.debian-multimedia.org etch main
    Execute this in Terminal
    Code:
    su -
    apt-get clean all
    apt-get update
    apt-get dist-upgrade
    If apt-get throws error, execute this
    Code:
    su -
    dpkg --configure -a
    Execute apt-get commands again.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Just Joined!
    Join Date
    Feb 2010
    Posts
    10
    Thanks a bazillion!

    Progress. But, some errors on apt-get update. Can I continue?

    root@imythtv:~# apt-get update
    Get:1 http security DOT debian DOT org etch/updates Release.gpg [835B]
    Get:2 http security DOT debian DOT org etch/updates Release [37.6kB]
    Get:3 http ftp DOT debian DOT org etch Release.gpg [1032B]
    Ign http security DOT debian DOT org etch/updates Release
    Get:4 http ftp DOT debian DOT org etch Release [67.8kB]
    Get:5 http security DOT debian DOT org etch/updates/main Packages [389kB]
    Get:6 http www DOT debian DOT org etch Release.gpg [198B]
    Get:7 http www DOT debian DOT org etch Release [10.3kB]
    Get:8 http www DOT debian DOT org etch/main Packages/DiffIndex [229B]
    Ign http ftp DOT debian DOT org etch Release
    Get:9 http ftp DOT debian DOT org etch/main Packages [4282kB]
    Get:10 http security DOT debian DOT org etch/updates/contrib Packages [7805B]
    Get:11 http security DOT debian DOT org etch/updates/non-free Packages [3614B]
    Get:12 http ftp DOT debian DOT org etch/contrib Packages [59.0kB]
    Get:13 http ftp DOT debian DOT org etch/non-free Packages [83.3kB]
    Fetched 4942kB in 12s (389kB/s)
    Reading package lists... Done
    W: GPG error: http security DOT debian DOT org etch/updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE302B
    W: GPG error: http ftp DOT debian DOT org etch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE302B
    W: You may want to run apt-get update to correct these problems

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Its a warning only. Continue to update and install.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  9. #9
    Just Joined!
    Join Date
    Feb 2010
    Posts
    10
    Continued thanks!

    apt-get dist-upgrade is having a problem:

    root@imythtv:~# apt-get dist-upgrade
    Reading package lists... Done
    Building dependency tree... Done
    You might want to run `apt-get -f install' to correct these.
    The following packages have unmet dependencies:
    libc6-dev: Depends: libc6 (= 2.5-7) but 2.7-18lenny1 is installed
    E: Unmet dependencies. Try using -f.

    should I do the dist_upgrade -f?

    Thanks,

    Gary

  10. #10
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    You have to install unmet dependency using force install option.
    Code:
    apt-get -f install
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Page 1 of 2 1 2 LastLast

Posting Permissions

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