Zypper broken, codecs broken...

…probably more as I try it.

I selected System in repository, and the update all. I have factory as a repo because I like to live on the edge, and it may have borked this laptop.

I can’t open the Install Software portion of Yast, though the main Yast panel will open. It won’t work in CLI/ncurses mode either.

Zypper will give me the help options, but every other zypper function appears broken and gives me the following error:

Problem occured during or after installation or removal of packages:
rpmdb2solv -r ‘/’ -p ‘/etc/products.d’ ‘/var/cache/zypp/solv/@System/solv’ > ‘/var/cache/zypp/solv/@System/solvCNIPsE’
repo_products: syntax error at line 1:0

Also, video files no longer play correctly.

I imagine I might be able to find .rpm packages for zypper, and all of zypper’s dependencies and install them with rpm to try and fix that portion.

Anyone run into this before? Does the above error message help?

Sorry for the double-post.

Isn’t there a way to reinstall all packages on your system? Can I do that with zypper broken? Is that on the DVD? I can’t remember.

If you download the rpm from the repo you can install it from a terminal

rpm -ihv package name.rpm --force

I’m familiar with that. I downloaded:

zypper, libzypp, libqdialogsolver1, satsolver-tools, yast2-pkg-bindings, and rpm.

I reinstalled all of them with rpm from the terminal. Zypper is still broken with the same error. Am I missing something?

I take it that Yast software management will not work either?

Try this: (make a backup of the directory /var/lib/rpm first)
Then in a terminal:
su
rpm --rebuilddb

Sadly that didn’t work.

My .02 worth. There’s still a lot of broken stuff in factory. Seems like I download 300 mb every day in updates. Really heavy development. I suspect that is what caused your zypper problem. (no pun intended) I have not noticed any problems with yast or updates, but just a lot of stuff is there but doesn’t work.

Not that this helps you in anyway except to say it will probably be fixed soon. Are you keeping up with Yast updates or can you not get into Yast?

I’ve got the same problem.
YaST is working, but it doesn’t know what packages are installed, so I can’t update everything either.

Yay, smart seems to work after I’ve added all my old repositories.
I’m currently updating all installed packages, I hope this will fix the problem with satsolver-tools.

I was considering a fresh install if need be.

Let me know how smart works out for you.

Smart didn’t work, because it complained about package/file conflicts. That thing doesn’t even have a force-option.
Where does smart store the downloaded packages?

Forcing is almost NEVER a good idea. The few people that I know who will occasionally force rpm installs, are also the same people who are unhappy because many (ie the same) packages are irretreivably broke, or they have stabilty problems they can not explain (likely due to their forcing of an rpm install). Solve a dependency, … don’t force it. It may mean one needs to roll back.

By default, Smart does NOT store downloaded packages. It can be made to store downloaded packages by setting the appropriate flag … ie … :**su -c ‘smart config --set remove-packages=false’**and then all subsequently downloaded/installed rpms will be stored in /var/lib/smart/packages

OK, I found a quick and dirty solution which worked for my case.

I created /etc/products.d/ and all *.prod files specified from line 181 to 450 in the spec file.

https://build.opensuse.org/package/view_file?file=openSUSE-release.spec&package=openSUSE-release&project=openSUSE%3AFactory

good luck! :wink: