LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-19-2018, 10:54 PM   #1
pshlinuxq
LQ Newbie
 
Registered: Feb 2018
Posts: 13

Rep: Reputation: Disabled
resize2fs - yum install error


trying to use resize2fs (it isn't in /sbin/). so installing "yum install e2fsprogs". This typically works, but on this machine there is an error below.

Linux versions:
Quote:
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarchrinting-4.1-amd64rinting-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.3.1611 (Core)
Release: 7.3.1611
Codename: Core

ERROR:

Quote:
--> Running transaction check
---> Package e2fsprogs.x86_64 0:1.42.9-7.el7 will be installed
--> Processing Dependency: libcom_err(x86-64) = 1.42.9-7.el7 for package: e2fsprogs-1.42.9-7.el7.x86_64
---> Package e2fsprogs-libs.x86_64 0:1.42.9-7.el7 will be installed
--> Processing Dependency: libcom_err(x86-64) = 1.42.9-7.el7 for package: e2fsprogs-libs-1.42.9-7.el7.x86_64
---> Package libss.i686 0:1.42.9-7.el7 will be installed
--> Processing Dependency: libcom_err(x86-32) = 1.42.9-7.el7 for package: libss-1.42.9-7.el7.i686
--> Processing Dependency: libdl.so.2(GLIBC_2.1) for package: libss-1.42.9-7.el7.i686
--> Processing Dependency: libdl.so.2(GLIBC_2.0) for package: libss-1.42.9-7.el7.i686
--> Processing Dependency: libdl.so.2 for package: libss-1.42.9-7.el7.i686
--> Processing Dependency: libcom_err.so.2 for package: libss-1.42.9-7.el7.i686
--> Processing Dependency: libc.so.6(GLIBC_2.17) for package: libss-1.42.9-7.el7.i686
--> Running transaction check
---> Package e2fsprogs.x86_64 0:1.42.9-7.el7 will be installed
--> Processing Dependency: libcom_err(x86-64) = 1.42.9-7.el7 for package: e2fsprogs-1.42.9-7.el7.x86_64
---> Package e2fsprogs-libs.x86_64 0:1.42.9-7.el7 will be installed
--> Processing Dependency: libcom_err(x86-64) = 1.42.9-7.el7 for package: e2fsprogs-libs-1.42.9-7.el7.x86_64
---> Package glibc.i686 0:2.17-78.el7 will be installed
--> Processing Dependency: glibc-common = 2.17-78.el7 for package: glibc-2.17-78.el7.i686
--> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.17-78.el7.i686
--> Processing Dependency: libfreebl3.so for package: glibc-2.17-78.el7.i686
---> Package libcom_err.i686 0:1.42.9-7.el7 will be installed
--> Running transaction check
---> Package e2fsprogs.x86_64 0:1.42.9-7.el7 will be installed
--> Processing Dependency: libcom_err(x86-64) = 1.42.9-7.el7 for package: e2fsprogs-1.42.9-7.el7.x86_64
---> Package e2fsprogs-libs.x86_64 0:1.42.9-7.el7 will be installed
--> Processing Dependency: libcom_err(x86-64) = 1.42.9-7.el7 for package: e2fsprogs-libs-1.42.9-7.el7.x86_64
---> Package glibc.i686 0:2.17-78.el7 will be installed
--> Processing Dependency: glibc-common = 2.17-78.el7 for package: glibc-2.17-78.el7.i686
---> Package nss-softokn-freebl.i686 0:3.16.2.3-9.el7 will be installed
--> Finished Dependency Resolution
Error: Package: e2fsprogs-1.42.9-7.el7.x86_64 (base)
Requires: libcom_err(x86-64) = 1.42.9-7.el7
Installed: libcom_err-1.42.9-9.el7.x86_64 (@base)
libcom_err(x86-64) = 1.42.9-9.el7
Available: libcom_err-1.42.9-7.el7.x86_64 (base)
libcom_err(x86-64) = 1.42.9-7.el7
Error: Package: glibc-2.17-78.el7.i686 (base)
Requires: glibc-common = 2.17-78.el7
Installed: glibc-common-2.17-157.el7.x86_64 (@base)
glibc-common = 2.17-157.el7
Available: glibc-common-2.17-78.el7.x86_64 (base)
glibc-common = 2.17-78.el7
Error: Package: e2fsprogs-libs-1.42.9-7.el7.x86_64 (base)
Requires: libcom_err(x86-64) = 1.42.9-7.el7
Installed: libcom_err-1.42.9-9.el7.x86_64 (@base)
libcom_err(x86-64) = 1.42.9-9.el7
Available: libcom_err-1.42.9-7.el7.x86_64 (base)
libcom_err(x86-64) = 1.42.9-7.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

Any help will be greatly appreciated. Thanks
 
Old 02-20-2018, 09:34 AM   #2
pshlinuxq
LQ Newbie
 
Registered: Feb 2018
Posts: 13

Original Poster
Rep: Reputation: Disabled
Maybe this isn't a newbie question. Can someone move this to the right location? I'm new to LQ
 
Old 02-20-2018, 09:44 AM   #3
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by pshlinuxq View Post
trying to use resize2fs (it isn't in /sbin/). so installing "yum install e2fsprogs". This typically works, but on this machine there is an error below.
...
Any help will be greatly appreciated. Thanks
I'm also running CentOS 7.3 at the moment and as below, I have have the "e2fsprogs" package install by default. So I'm not sure why your having to install it yourself?

Code:
Installed Packages
Name        : e2fsprogs
Arch        : x86_64
Version     : 1.42.9
Release     : 9.el7
Size        : 2.4 M
Repo        : installed
From repo   : anaconda
Summary     : Utilities for managing ext2, ext3, and ext4 filesystems
URL         : http://e2fsprogs.sourceforge.net/
License     : GPLv2
...
You can try the following commands - but try the first one first, before the others.

Code:
yum clean
yum check          
yum check-update
Then try installing the "e2fsprogs" package. Let us know how it goes.

Quote:
Originally Posted by pshlinuxq View Post
Maybe this isn't a newbie question. Can someone move this to the right location? I'm new to LQ
That's right... your a so this forum is ok - AFAIK
 
Old 02-20-2018, 09:54 AM   #4
pshlinuxq
LQ Newbie
 
Registered: Feb 2018
Posts: 13

Original Poster
Rep: Reputation: Disabled
yeah not sure why it's not installed. I was just trying to expand a volume using resize2fs (lsblk shows larger than df)

just for reference i had to run "yum clean all"

and "yum check" does show a possible problem?

Code:
yum check
Loaded plugins: langpacks, versionlock
Repository epel is listed more than once in the configuration
after running all those commands....still same error when trying to install e2fsprogs
 
Old 02-20-2018, 10:13 AM   #5
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by pshlinuxq View Post
yeah not sure why it's not installed. I was just trying to expand a volume using resize2fs (lsblk shows larger than df)

just for reference i had to run "yum clean all"

and "yum check" does show a possible problem?

Code:
yum check
Loaded plugins: langpacks, versionlock
Repository epel is listed more than once in the configuration
after running all those commands....still same error when trying to install e2fsprogs
Sorry about the "yum clean all" command, I forgot the "all" part of it.

Try disabling the "epel" repo and install the package:

Code:
yum --disablerepo=epel install e2fsprogs
 
Old 02-20-2018, 10:17 AM   #6
pshlinuxq
LQ Newbie
 
Registered: Feb 2018
Posts: 13

Original Poster
Rep: Reputation: Disabled
Hi jsbjsb001,

Same error with disable flag.
 
Old 02-20-2018, 10:25 AM   #7
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Try to skip the dependencies and install it:

Code:
yum --skip-broken install e2fsprogs
 
Old 02-20-2018, 10:27 AM   #8
pshlinuxq
LQ Newbie
 
Registered: Feb 2018
Posts: 13

Original Poster
Rep: Reputation: Disabled
Code:
Packages skipped because of dependency problems:
    e2fsprogs-1.42.9-7.el7.x86_64 from base
    e2fsprogs-libs-1.42.9-7.el7.x86_64 from base
skips them
 
Old 02-20-2018, 10:29 AM   #9
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by pshlinuxq View Post
Code:
Packages skipped because of dependency problems:
    e2fsprogs-1.42.9-7.el7.x86_64 from base
    e2fsprogs-libs-1.42.9-7.el7.x86_64 from base
skips them
Well, it wasn't them I was hoping it would skip.

Let's just see what the status of the "e2fsprogs" package is:

Code:
yum info e2fsprogs
 
Old 02-20-2018, 10:32 AM   #10
pshlinuxq
LQ Newbie
 
Registered: Feb 2018
Posts: 13

Original Poster
Rep: Reputation: Disabled
Code:
~]# yum info e2fsprogs
Loaded plugins: langpacks, versionlock
Repository epel is listed more than once in the configuration
Available Packages
Name        : e2fsprogs
Arch        : x86_64
Version     : 1.42.9
Release     : 7.el7
Size        : 697 k
Repo        : base
Summary     : Utilities for managing ext2, ext3, and ext4 filesystems
URL         : http://e2fsprogs.sourceforge.net/
License     : GPLv2
Description : The e2fsprogs package contains a number of utilities for creating,
            : checking, modifying, and correcting any inconsistencies in second,
            : third and fourth extended (ext2/ext3/ext4) filesystems. E2fsprogs
            : contains e2fsck (used to repair filesystem inconsistencies after an
            : unclean shutdown), mke2fs (used to initialize a partition to contain
            : an empty ext2 filesystem), debugfs (used to examine the internal
            : structure of a filesystem, to manually repair a corrupted
            : filesystem, or to create test cases for e2fsck), tune2fs (used to
            : modify filesystem parameters), and most of the other core ext2fs
            : filesystem utilities.
            : 
            : You should install the e2fsprogs package if you need to manage the
            : performance of an ext2, ext3, or ext4 filesystem
 
Old 02-20-2018, 10:39 AM   #11
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
While we could try all sorts of other tricks, it may be best to just backup what data (personal/business) you wish to keep, and do a re-install to CentOS 7.4

As it maybe conflicting with 7.4 repo's.
 
Old 02-20-2018, 12:07 PM   #12
pshlinuxq
LQ Newbie
 
Registered: Feb 2018
Posts: 13

Original Poster
Rep: Reputation: Disabled
Is there any other utilities you can think of that I can use?

the core of the problem is this:

Code:
lsblk
NAME    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
xvda    202:0    0   60G  0 disk 
└─xvda1 202:1    0   60G  0 part /
xvdf    202:80   0  500G  0 disk /ebs

Code:
df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda1      9.8G  7.4G  1.9G  80% /
devtmpfs        7.9G     0  7.9G   0% /dev
tmpfs           7.8G     0  7.8G   0% /dev/shm
tmpfs           7.8G   17M  7.7G   1% /run
tmpfs           7.8G     0  7.8G   0% /sys/fs/cgroup
/dev/xvdf       500G  4.2G  496G   1% /foo
tmpfs           1.6G     0  1.6G   0% /run/user/1000
tmpfs           1.6G     0  1.6G   0% /run/user/100

notice the df only shows 10gb but lsblk shows there is 60gb
 
Old 02-20-2018, 12:37 PM   #13
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by pshlinuxq View Post
Is there any other utilities you can think of that I can use?

the core of the problem is this:

Code:
lsblk
NAME    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
xvda    202:0    0   60G  0 disk 
└─xvda1 202:1    0   60G  0 part /
xvdf    202:80   0  500G  0 disk /ebs

Code:
df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda1      9.8G  7.4G  1.9G  80% /
devtmpfs        7.9G     0  7.9G   0% /dev
tmpfs           7.8G     0  7.8G   0% /dev/shm
tmpfs           7.8G   17M  7.7G   1% /run
tmpfs           7.8G     0  7.8G   0% /sys/fs/cgroup
/dev/xvdf       500G  4.2G  496G   1% /foo
tmpfs           1.6G     0  1.6G   0% /run/user/1000
tmpfs           1.6G     0  1.6G   0% /run/user/100

notice the df only shows 10gb but lsblk shows there is 60gb
lsblk is not showing the 'tmpfs' folders.

You should be able to setup new partitions when you install CentOS 7.4 Just use a 'live CD' to backup your data with, and use say a USB or similar that's big enough for your data.

You could try downloading the package you were trying to install before, as a RPM package. Then try forcing an install with the rpm command.
 
Old 02-20-2018, 12:50 PM   #14
pshlinuxq
LQ Newbie
 
Registered: Feb 2018
Posts: 13

Original Poster
Rep: Reputation: Disabled
Sorry should have put more details.

"lsblk is not showing the 'tmpfs' folders."

correct, but the concern is about xvda1, notice in lsblk it shows 60gb and with 'df' it shows only 10gb. How can i expand that?
 
Old 02-20-2018, 01:06 PM   #15
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,780

Rep: Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213
How do you have your .repo file configured for base and updates? It looks like you are referencing some out-of-date mirror. When I look at http://vault.centos.org/7.3.1611/os/x86_64/Packages/ I see e2fsprogs-1.42.9-9.el7.x86_64.rpm, not the version 1.42.9-7 that you are picking up.

Last edited by rknichols; 02-20-2018 at 01:08 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg0000 Fedora 8 04-13-2011 11:25 AM
how to install yum ? error soundar Linux - Software 8 01-09-2011 02:01 AM
Receiving an error when using resize2fs on /tmp Jenny2 Linux - Newbie 2 12-09-2009 09:45 AM
yum install error prophoto Fedora 2 09-08-2006 08:08 AM
error with yum install niadanac Linux - Software 14 09-20-2005 10:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration