Results 1 to 10 of 10

Thread: Installing rpm messed up system --- could not determine package or source name

  1. #1
    Join Date
    Jan 2007
    Beans
    185

    Installing rpm messed up system --- could not determine package or source name

    First off, I don't know what I'm doing. Therefore if you read the following list of operations expecting them to make sense it could be confusing. After using rpm, alien, and yum (more on that below) Software Center crashes and Update Manager says

    Code:
    Could not initialize the package information
    
    An unresolvable problem occurred while initializing the package information.
    
    Please report this bug against the 'update-manager' package and include the following error message:
    
    'E:Type 'repomd' is not known on line 4 in source list /etc/apt/sources.list.d/rpmforge.list'
    The intent of my modifications was to run a perl script that requires "the Crypt::Tea_JS module" (here's the explanation http://placeshiftingenthusiasts.com/...or-1080/#p7528). I referred to the following instructions to install this module


    1. Download the latest rpmforge-release rpm from

    http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/

    2. Install rpmforge-release rpm:

    # rpm -Uvh rpmforge-release*rpm

    3. Install perl-Crypt-Tea rpm package:

    # yum install perl-Crypt-Tea
    I put the rpm's in my Downloads directory. Step #2 says

    Code:
    raequin@raequin-T530:~/Downloads$ rpm -Uvh rpmforge-release-0.5.3-1.el6.rf.i686.rpm
    rpm: RPM should not be used directly install RPM packages, use Alien instead!
    rpm: However assuming you know what you are doing...
    warning: rpmforge-release-0.5.3-1.el6.rf.i686.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
    error: Failed dependencies:
    	/bin/sh is needed by rpmforge-release-0.5.3-1.el6.rf.i686
    Since that did not seem to work I tried

    Code:
    raequin@raequin-T530:~/Downloads$ sudo dpkg -i rpmforge-release_0.5.3-2_i386.deb
    I guess that went okay so I went to step #3 (after installing yum). It went as follows.

    Code:
    raequin@raequin-T530:~/Downloads$ sudo yum install perl-Crypt-Tea-2.12-1.el6.rf.noarch.rpm 
    [sudo] password for raequin: 
    Setting up Install Process
    Examining perl-Crypt-Tea-2.12-1.el6.rf.noarch.rpm: perl-Crypt-Tea-2.12-1.el6.rf.noarch
    Marking perl-Crypt-Tea-2.12-1.el6.rf.noarch.rpm to be installed
    Resolving Dependencies
    --> Running transaction check
    ---> Package perl-Crypt-Tea.noarch 0:2.12-1.el6.rf set to be updated
    --> Processing Dependency: /usr/bin/perl for package: perl-Crypt-Tea-2.12-1.el6.rf.noarch
    --> Processing Dependency: perl(Exporter) for package: perl-Crypt-Tea-2.12-1.el6.rf.noarch
    --> Processing Dependency: perl(integer) for package: perl-Crypt-Tea-2.12-1.el6.rf.noarch
    --> Processing Dependency: /usr/bin/perl for package: perl-Crypt-Tea-2.12-1.el6.rf.noarch
    --> Finished Dependency Resolution
    perl-Crypt-Tea-2.12-1.el6.rf.noarch from /perl-Crypt-Tea-2.12-1.el6.rf.noarch has depsolving problems
      --> Missing Dependency: /usr/bin/perl is needed by package perl-Crypt-Tea-2.12-1.el6.rf.noarch (/perl-Crypt-Tea-2.12-1.el6.rf.noarch)
    perl-Crypt-Tea-2.12-1.el6.rf.noarch from /perl-Crypt-Tea-2.12-1.el6.rf.noarch has depsolving problems
      --> Missing Dependency: perl(Exporter) is needed by package perl-Crypt-Tea-2.12-1.el6.rf.noarch (/perl-Crypt-Tea-2.12-1.el6.rf.noarch)
    perl-Crypt-Tea-2.12-1.el6.rf.noarch from /perl-Crypt-Tea-2.12-1.el6.rf.noarch has depsolving problems
      --> Missing Dependency: perl(integer) is needed by package perl-Crypt-Tea-2.12-1.el6.rf.noarch (/perl-Crypt-Tea-2.12-1.el6.rf.noarch)
    Error: Missing Dependency: perl(integer) is needed by package perl-Crypt-Tea-2.12-1.el6.rf.noarch (/perl-Crypt-Tea-2.12-1.el6.rf.noarch)
    Error: Missing Dependency: /usr/bin/perl is needed by package perl-Crypt-Tea-2.12-1.el6.rf.noarch (/perl-Crypt-Tea-2.12-1.el6.rf.noarch)
    Error: Missing Dependency: perl(Exporter) is needed by package perl-Crypt-Tea-2.12-1.el6.rf.noarch (/perl-Crypt-Tea-2.12-1.el6.rf.noarch)
     You could try using --skip-broken to work around the problem
     You could try running: package-cleanup --problems
                            package-cleanup --dupes
                            rpm -Va --nofiles --nodigest
    The program package-cleanup is found in the yum-utils package.
    I have not installed Exporter or Integer, but it seems weird to me that /usr/bin/perl comes up under missing dependencies. Since I did not know what dpkg did and thought ... well, it doesn't matter what I thought. What I did next was to install alien and enter

    Code:
    sudo alien rpmforge-release-0.5.3-1.el6.rf.i686.rpm
    Then I tried the above yum again and got the same missing dependencies messages. So that's what I did and something is wrong with the system packages list or whatever. I want to know how to fix my system so that update manager will function. I also want to know how to get the perl script to run (the one that requires Crypt::Tea_JS).
    Last edited by raequin; September 10th, 2013 at 02:03 PM.

  2. #2
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,614
    Distro
    Ubuntu

    Re: Installing rpm messed up system --- could not determine package or source name

    I'm guessing you could post the output for /etc/apt/sources.list.d/rpmforge.list
    Seeing as there's a problem with line 4.

    My guess is that the package manager is clueless about rpm sources.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  3. #3
    Join Date
    Jan 2007
    Beans
    185

    Re: Installing rpm messed up system --- could not determine package or source name

    ... post the output for /etc/apt/sources.list.d/rpmforge.list
    ### Name: RPMforge RPM Repository for RHEL 6 - dag
    ### URL: http://rpmforge.net/
    #rpm http://apt.sw.be redhat/el$(VERSION)/en/$(ARCH) dag
    repomd http://apt.sw.be redhat/el$(VERSION)/en/$(ARCH)/rpmforge

  4. #4
    Join Date
    Feb 2013
    Location
    Highway to hell
    Beans
    45
    Distro
    Ubuntu Development Release

    Re: Installing rpm messed up system --- could not determine package or source name

    Apt/aptitude can't use RPM repositories, the apt sources (/etc/apt/sources.list and /etc/apt/sources.list.d/*.list) have this structure:
    Code:
    <package_type>    <repository_link>    <release>    <repositories>
    And yum repos don't, hence why update-manager is crashing, it's likely that apt/aptitude will blurp out errors as well. It's never a good idea to have more than one package manager on a single system, stuff like this happens if you do. You can convert an .rpm package into .deb with alien (read alien's man page for instructions), there's no need for yum/rpm in order to install them. Even if alien can't do that, you can repackage it yourself into .deb and install it. But keeping two different package managers is just asking for trouble.

  5. #5
    Join Date
    Jan 2007
    Beans
    185

    Re: Installing rpm messed up system --- could not determine package or source name

    On this task I used rpm, dpkg, yum, and alien. Can you tell me how to undo all that mess? Brief comments on how to install Crypt::Tea_JS would be nice, too.

  6. #6
    Join Date
    Feb 2013
    Location
    Highway to hell
    Beans
    45
    Distro
    Ubuntu Development Release

    Re: Installing rpm messed up system --- could not determine package or source name

    First purge rpm and yum with apt
    Code:
    apt-get remove --purge rpm yum && apt-get autoremove
    Then make sure the yum repos are removed from apt repo lists
    Code:
    rm -rf /etc/apt/sources.list.d/rpmforge.list && apt-get update
    You need to execute the above commands as root (meaning you need to use root shell as sudo -i or su). That should take care of it, you could install no packages using yum/rpm since it thought you have no packages installed on your system (hence the fact that you shouldn't mix two package managers, they don't know what the other one is doing), meaning it couldn't resolve any dependencies.

    As for Crypt::Tea_JS, you can try and use alien for converting to DEB (do read it's man page first and check the DEB package afterwards), I can't find it for Ubuntu/Debian or any other distribution except RHEL and RHEL-based distros, can't even find the source code for compiling. I would advise against using it on Ubuntu (since RHEL is ancient compared to it) but you can try.

  7. #7
    Join Date
    Jun 2013
    Location
    Somewhere on Earth.
    Beans
    516
    Distro
    Ubuntu 14.04 Trusty Tahr

    Cool Re... Solution released!!!!!!

    Quote Originally Posted by raequin View Post
    On this task I used rpm, dpkg, yum, and alien. Can you tell me how to undo all that mess? Brief comments on how to install Crypt::Tea_JS would be nice, too.
    Open a terminal and type:
    Code:
    sudo -i
    rm -rf /etc/apt/sources.list.d/rpmforge.list && apt-get update && apt-get upgrade && exit
    exit
    This will remove the repository (Debian/Ubuntu/Linux-Mint based systems do not support rpm repositories), update the package lists, install available updates, exit the root shell if all goes well (the root shell, when not used with care, can be dangerous), and exit the terminal.
    Last edited by Jonathan Precise; August 30th, 2013 at 10:41 PM. Reason: Changed title to reflect title-emoticon...
    -Jonathan
    Status: CELEBRATING 2016!!! (Offline )

  8. #8
    Join Date
    Jan 2007
    Beans
    185

    Re: Installing rpm messed up system --- could not determine package or source name

    Per the instructions above I removed yum and rpm and also deleted rpmforge.list (and updated the system). Update Manager and Ubuntu Software Center both work again but at startup I'm getting a popup saying "System program problem detected". It's not rich in information. Everything seems to be working okay. Any suggestions on how to track down this error and get it fixed?
    Last edited by raequin; September 2nd, 2013 at 03:54 PM.

  9. #9
    Join Date
    Jun 2013
    Location
    Somewhere on Earth.
    Beans
    516
    Distro
    Ubuntu 14.04 Trusty Tahr

    Arrow Re... See details.

    Quote Originally Posted by raequin View Post
    Per the instructions above I removed yum and rpm and also deleted rpmforge.list (and updated the system). Update Manager and Ubuntu Software Center both work again but at startup I'm getting a popup saying "System program problem detected". It's not rich in information. Everything seems to be working okay. Any suggestions on how to track down this error and get it fixed?
    Click yes, type your password, then click on details (sometimes you just click on details). That should tell you what program it is.
    Last edited by Jonathan Precise; September 2nd, 2013 at 04:30 PM. Reason: Tittle change...
    -Jonathan
    Status: CELEBRATING 2016!!! (Offline )

  10. #10
    Join Date
    Jan 2007
    Beans
    185

    Re: Installing rpm messed up system --- could not determine package or source name

    The "System program problem detected" popup no longer appears at start up. I just installed Perl and the Crypt-Tea_JS package in Windows. Thanks for helping me get my Ubuntu install back to normal.

Tags for this Thread

Bookmarks

Posting Permissions

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