LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-11-2019, 10:01 AM   #1
timphilp
LQ Newbie
 
Registered: Jun 2019
Location: Brantford Ontario Canada
Posts: 3

Rep: Reputation: Disabled
Angry Apt-get failure


Hello, this is my first post. I am running Ubuntu server 'Zesty' and during routine maintenance, I tried to do the usual sudo apt-get update, which works fine, sudo apt-get update. This last command, which has been working properly gives me the following output on failure:

~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
linux-headers-5.0.0-15 linux-headers-5.0.0-15-generic linux-image-5.0.0-15-generic linux-modules-5.0.0-15-generic
linux-modules-extra-5.0.0-15-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
linux-image-5.0.0-15-generic linux-image-5.0.0-16-generic linux-modules-5.0.0-15-generic linux-modules-5.0.0-16-generic
Suggested packages:
fdutils linux-doc-5.0.0 | linux-source-5.0.0 linux-tools
The following NEW packages will be installed:
linux-image-5.0.0-15-generic linux-image-5.0.0-16-generic linux-modules-5.0.0-15-generic linux-modules-5.0.0-16-generic
0 upgraded, 4 newly installed, 0 to remove and 163 not upgraded.
4 not fully installed or removed.
Need to get 0 B/44.1 MB of archives.
After this operation, 154 MB of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 340744 files and directories currently installed.)
Preparing to unpack .../linux-modules-5.0.0-16-generic_5.0.0-16.17_amd64.deb ...
Unpacking linux-modules-5.0.0-16-generic (5.0.0-16.17) ...
dpkg: error processing archive /var/cache/apt/archives/linux-modules-5.0.0-16-generic_5.0.0-16.17_amd64.deb (--unpack):
unable to stat './boot/System.map-5.0.0-16-generic' (which I was about to install): Input/output error
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../linux-image-5.0.0-16-generic_5.0.0-16.17_amd64.deb ...
Unpacking linux-image-5.0.0-16-generic (5.0.0-16.17) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-5.0.0-16-generic_5.0.0-16.17_amd64.deb (--unpack):
unable to stat './boot/vmlinuz-5.0.0-16-generic' (which I was about to install): Input/output error
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
W: Last kernel image has been removed, so removing the default symlinks
Preparing to unpack .../linux-modules-5.0.0-15-generic_5.0.0-15.16_amd64.deb ...
Unpacking linux-modules-5.0.0-15-generic (5.0.0-15.16) ...
dpkg: error processing archive /var/cache/apt/archives/linux-modules-5.0.0-15-generic_5.0.0-15.16_amd64.deb (--unpack):
unable to stat './boot/System.map-5.0.0-15-generic' (which I was about to install): Input/output error
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../linux-image-5.0.0-15-generic_5.0.0-15.16_amd64.deb ...
Unpacking linux-image-5.0.0-15-generic (5.0.0-15.16) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-5.0.0-15-generic_5.0.0-15.16_amd64.deb (--unpack):
unable to stat './boot/vmlinuz-5.0.0-15-generic' (which I was about to install): Input/output error
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
W: Last kernel image has been removed, so removing the default symlinks
Errors were encountered while processing:
/var/cache/apt/archives/linux-modules-5.0.0-16-generic_5.0.0-16.17_amd64.deb
/var/cache/apt/archives/linux-image-5.0.0-16-generic_5.0.0-16.17_amd64.deb
/var/cache/apt/archives/linux-modules-5.0.0-15-generic_5.0.0-15.16_amd64.deb
/var/cache/apt/archives/linux-image-5.0.0-15-generic_5.0.0-15.16_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I have tried apt --fix-broken install with no joy. Anyone have any ides what is happening here and how to fix it? Any help appreciated.

Last edited by timphilp; 06-11-2019 at 10:19 AM.
 
Old 06-11-2019, 11:16 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth? I would say I hope so but I'm not so sure about that... I could just be a figment of your imagination too.
Distribution: CentOS at the time of this writing, but some others over the years too...
Posts: 2,738

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
From your output; it seems either a corrupted package download and/or you're having filesystem problems.

I would try downloading the packages again (try running the posted command again) it's complaining about in the output you've posted, and if that still gives you the same error messages (Input/Output error); then you should do a filesystem check.

But you would either need to force a filesystem check on system startup, or using a "live" system, run fsck on it.

Also, when posting command output, particularly long command output, please use CODE tags when doing so.

Last edited by jsbjsb001; 06-11-2019 at 01:21 PM. Reason: correction
 
1 members found this post helpful.
Old 06-13-2019, 07:00 AM   #3
timphilp
LQ Newbie
 
Registered: Jun 2019
Location: Brantford Ontario Canada
Posts: 3

Original Poster
Rep: Reputation: Disabled
THanks for the advice. I will run a file system check and see what I get. I will post the results. It might take a day or so as this is a live system. Much appreciated!

Tim
 
Old 06-14-2019, 10:48 AM   #4
timphilp
LQ Newbie
 
Registered: Jun 2019
Location: Brantford Ontario Canada
Posts: 3

Original Poster
Rep: Reputation: Disabled
RESOLVED!

The advice to do a fsck was just the trick! I set this up, rebooted the system and after the scan, I was able to update the system properly. The help was much appreciated. Thanks!

Tim Philp
 
Old 06-14-2019, 06:41 PM   #5
Isaac_nix*
LQ Newbie
 
Registered: Jun 2019
Posts: 1

Rep: Reputation: Disabled
1. You may want to check to make sure your server is 64 bit
From your screenshot it appears you are trying to unpack a 64 bit packages

#lscpu (this command will show you your syestem architecture -whether 32 bit or 64 bit)


2.It also looks like a corruption issue. You may try to perform these following steps
#cp /etc/apt/sources.list /etc/apt/sources.listbkup
#/etc/apt/sources.list
#apt-get clean
#apt-get install "your package"


3. Try to reboot or run fsck on your root filesystem (in a single user mode)

Last edited by Isaac_nix*; 06-14-2019 at 06:44 PM.
 
Old 06-15-2019, 12:56 AM   #6
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth? I would say I hope so but I'm not so sure about that... I could just be a figment of your imagination too.
Distribution: CentOS at the time of this writing, but some others over the years too...
Posts: 2,738

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
@Isaac_nix*

Quote:
Originally Posted by Isaac_nix* View Post
1. You may want to check to make sure your server is 64 bit
From your screenshot it appears you are trying to unpack a 64 bit packages

#lscpu (this command will show you your syestem architecture -whether 32 bit or 64 bit)
It's quite normal for a package manager to list the architecture of the packages it's trying to install and/or update. This doesn't necessarily mean that the OP is trying to install/update packages meant for a different architecture. The OP did not post any screenshot, they posted command output - not the same thing.


Quote:
2.It also looks like a corruption issue. You may try to perform these following steps
#cp /etc/apt/sources.list /etc/apt/sources.listbkup
#/etc/apt/sources.list
#apt-get clean
#apt-get install "your package"
Furthermore, in this case the "Input/output" error message clearly indicates that the package manager (apt) is having trouble reading the packages it's trying to update. This is typically what an "Input/output" error message means. And from the information the OP has posted; it's clearly suggesting that the packages their trying to update have been corrupted due to filesystem problems. The OP has posted that they've taken the advice in post #2, and this has solved their problem.

Quote:
3. Try to reboot or run fsck on your root filesystem (in a single user mode)
Yes, as already suggested in post #2 - which the OP appears to have done, and solved their problem. They have also marked this thread as [SOLVED].

I would suggest in future you more carefully read posts before responding to them, as you're advice could confuse future readers. You also don't seem to have a firm handle on the problem either - it's not a software repository issue from the information provided. Please consider the above before responding to further posts.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Failure after failure after failure.....etc 69Rixter Linux - Laptop and Netbook 5 04-14-2015 09:58 AM
Question about 'apt-get upgrade' versus 'apt-get install' eur0dad Red Hat 8 07-16-2006 05:41 PM
apt-get install not working / apt-get update is ok remy215 Debian 2 10-01-2005 07:02 PM
What's the difference between apt-get upgrade and apt-get dist-upgrade? davidas Linux - Newbie 4 04-04-2004 08:19 PM
apt-get error installing xlibs 4.2.1-14, apt-get won't work at all now pib Debian 1 12-10-2003 11:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:38 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration