LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   remove selinux after yum crash (https://www.linuxquestions.org/questions/fedora-35/remove-selinux-after-yum-crash-4175474663/)

hDUQUE 08-25-2013 01:41 PM

remove selinux after yum crash
 
Hi guys,
i am recovering from a yum crash (updating fc18 to fc19) and after removing lots of duplicates, i can remove selinux-policy-targeted.noarch. I tried rpm -e --nodeps, yum update, package-cleanup --cleandupes, and always throws in this message:

Code:

  Cleanup    : selinux-policy-targeted.noarch                          153/168
warning: file /etc/selinux/targeted/policy/policy.27: remove failed: No such file or directory
warning: file /etc/selinux/targeted/modules/active/modules/shutdown.pp: remove failed: No such file or directory
warning: file /etc/selinux/targeted/modules/active/modules/rgmanager.pp: remove failed: No such file or directory
warning: file /etc/selinux/targeted/modules/active/modules/pacemaker.pp: remove failed: No such file or directory
warning: file /etc/selinux/targeted/modules/active/modules/l2tpd.pp: remove failed: No such file or directory
warning: file /etc/selinux/targeted/modules/active/modules/isnsd.pp: remove failed: No such file or directory
warning: file /etc/selinux/targeted/modules/active/modules/fcoemon.pp: remove failed: No such file or directory
warning: file /etc/selinux/targeted/modules/active/modules/ctdbd.pp: remove failed: No such file or directory
warning: file /etc/selinux/targeted/modules/active/modules/corosync.pp: remove failed: No such file or directory
warning: file /etc/selinux/targeted/modules/active/modules/clamav.pp: remove failed: No such file or directory
warning: file /etc/selinux/targeted/modules/active/modules/amavis.pp: remove failed: No such file or directory
warning: file /etc/selinux/targeted/modules/active/modules/aisexec.pp: remove failed: No such file or directory


then,the removing process hungs up...

i also have rebuilded the rpm database, How can I remove that package ?

thanks in advance

hector

John VV 08-25-2013 02:24 PM

How did you try to upgrade 18 to 19 ?
FedUp is the new tool and it replaced " preupgrade"

inplace upgrades are ALWAYS a "crap shoot"
prepare to do a New Clean install then do the upgrade
but if third party repos are used there might be incompatibles

so expect to do a new clean install every 6 months
but fedup just might work , you never know

Quote:

rpm -e --nodeps, yum update, package-cleanup --cleandupes
thaty is not the real command is it ?
you are telling rpm to uninstall yum but are using " ," comas in the command line ?
that will not work

please post the real command you are using and the error

hDUQUE 08-25-2013 02:40 PM

no, those were different commands,

forthis command:

Code:

package-cleanup --cleandupes
i got:

Code:

warning: file /etc/selinux/targeted/policy/policy.27: remove failed: No such file or directory
warning: file /etc/selinux/targeted/modules/active/modules/shutdown.pp: remove failed: No such file or directory
warning: file /etc/selinux/targeted/modules/active/modules/rgmanager.pp: remove failed: No such file or directory
warning: file /etc/selinux/targeted/modules/active/modules/pacemaker.pp: remove failed: No such file or directory
warning: file /etc/selinux/targeted/modules/active/modules/l2tpd.pp: remove failed: No such file or directory
warning: file /etc/selinux/targeted/modules/active/modules/isnsd.pp: remove failed: No such file or directory
warning: file /etc/selinux/targeted/modules/active/modules/fcoemon.pp: remove failed: No such file or directory
warning: file /etc/selinux/targeted/modules/active/modules/ctdbd.pp: remove failed: No such file or directory
warning: file /etc/selinux/targeted/modules/active/modules/corosync.pp: remove failed: No such file or directory
warning: file /etc/selinux/targeted/modules/active/modules/clamav.pp: remove failed: No such file or directory
warning: file /etc/selinux/targeted/modules/active/modules/amavis.pp: remove failed: No such file or directory
warning: file /etc/selinux/targeted/modules/active/modules/aisexec.pp: remove failed: No such file or directory


and nothing else happens ... it hungs up ...


rpm -e --nodeps selinux-policy-targeted.noarch, throws into the same messages.

Code:

yum --releasever=19 distro-sync --skip-broken
Loaded plugins: fastestmirror, fs-snapshot, keys, langpacks, list-data, local,
              : presto, refresh-updatesd, remove-with-leaves
Loading mirror speeds from cached hostfile
 * fedora: mirror.globo.com
 * rpmfusion-free: mirror.us.leaseweb.net
 * rpmfusion-free-updates: mirror.us.leaseweb.net
 * rpmfusion-nonfree: mirror.us.leaseweb.net
 * rpmfusion-nonfree-updates: mirror.us.leaseweb.net
 * updates: mirror.globo.com
No packages marked for distribution synchronization



yum update, says that there in nothing marked for update


Code:

yum update
Loaded plugins: fastestmirror, fs-snapshot, keys, langpacks, list-data, local,
              : presto, refresh-updatesd, remove-with-leaves
Loading mirror speeds from cached hostfile
 * fedora: mirror.globo.com
 * rpmfusion-free: mirror.us.leaseweb.net
 * rpmfusion-free-updates: mirror.us.leaseweb.net
 * rpmfusion-nonfree: mirror.us.leaseweb.net
 * rpmfusion-nonfree-updates: mirror.us.leaseweb.net
 * updates: mirror.globo.com
No packages marked for update

thanks for comments

John VV 08-25-2013 02:54 PM

so you used
Code:

yum --releasever=19 distro-sync --skip-broken
to try to upgrade from fedora 18 to 19 ?
that would not have updated any of the rpmfusion repo installed software

and did not use fedup

you might want to reinstall using the fedora 19 dvd .


first try "upgrade an existing install" from the fedora 19 install dvd and if that fails do a new clean install of 19

hDUQUE 08-25-2013 03:04 PM

john,

i used

Code:

yum --releasever=19 distro-sync --skip-broken
to synchronize to fc19, after i had a crash of the this command:

Code:

fedora-upgrade
it crashed because an energy failure.

now, problem looks like something related with selinux-policy-targeted.noarch

do you thing would be better a clean installation ?


All times are GMT -5. The time now is 06:36 PM.