Announcement

Collapse
No announcement yet.

Issue With Updating Server

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Issue With Updating Server

    I'm trying to do some updates to my friend's server (Ubuntu 16.04) and am encountering this:

    Code:
    [tsnowcrash@QuickBox]:(102.8Mb)~$ sudo apt-get update && sudo apt-get upgrade
    sudo: unable to resolve host QuickBox
    Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
    Hit:2 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease   
    Hit:3 http://archive.canonical.com/ubuntu xenial InRelease                                                                                     
    Get:4 http://archive.ubuntu.com/ubuntu xenial-security InRelease [102 kB]                                                                      
    Hit:5 http://shell.ninthgate.se/packages/debian jessie InRelease                                                                    
    Hit:6 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease                                                             
    Get:7 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]           
    Get:8 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
    Fetched 306 kB in 0s (508 kB/s)
    Reading package lists... Done
    sudo: unable to resolve host QuickBox
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    You might want to run 'apt-get -f install' to correct these.
    The following packages have unmet dependencies:
    linux-image-extra-4.4.0-97-generic : Depends: linux-image-4.4.0-97-generic but it is not installed
    linux-image-generic : Depends: linux-image-4.4.0-97-generic but it is not installed
    E: Unmet dependencies. Try using -f.
    [tsnowcrash@QuickBox]:(102.8Mb)~$
    The recommended 'apt-get -f install' yields the following:

    Code:
    [tsnowcrash@QuickBox]:(102.8Mb)~$ sudo apt-get -f install
    sudo: unable to resolve host QuickBox
    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-4.4.0-77 linux-headers-4.4.0-77-generic linux-headers-4.4.0-78 linux-headers-4.4.0-78-generic linux-headers-4.4.0-79 linux-headers-4.4.0-79-generic linux-headers-4.4.0-81 linux-headers-4.4.0-81-generic linux-headers-4.4.0-83
    linux-headers-4.4.0-83-generic linux-headers-4.4.0-87 linux-headers-4.4.0-87-generic linux-headers-4.4.0-89 linux-headers-4.4.0-89-generic linux-headers-4.4.0-91 linux-headers-4.4.0-91-generic linux-headers-4.4.0-92 linux-headers-4.4.0-92-generic
    linux-image-4.4.0-77-generic linux-image-4.4.0-78-generic linux-image-4.4.0-79-generic linux-image-4.4.0-81-generic linux-image-4.4.0-83-generic linux-image-4.4.0-87-generic linux-image-4.4.0-89-generic linux-image-4.4.0-91-generic linux-image-4.4.0-92-generic
    linux-image-extra-4.4.0-77-generic linux-image-extra-4.4.0-78-generic linux-image-extra-4.4.0-79-generic linux-image-extra-4.4.0-81-generic linux-image-extra-4.4.0-83-generic linux-image-extra-4.4.0-87-generic linux-image-extra-4.4.0-89-generic
    linux-image-extra-4.4.0-91-generic linux-image-extra-4.4.0-92-generic
    Use 'sudo apt autoremove' to remove them.
    The following additional packages will be installed:
    linux-image-4.4.0-97-generic
    Suggested packages:
    fdutils linux-doc-4.4.0 | linux-source-4.4.0 linux-tools
    The following NEW packages will be installed:
    linux-image-4.4.0-97-generic
    0 upgraded, 1 newly installed, 0 to remove and 114 not upgraded.
    16 not fully installed or removed.
    Need to get 0 B/21.9 MB of archives.
    After this operation, 67.0 MB of additional disk space will be used.
    Do you want to continue? [Y/n] Y
    (Reading database ... 434144 files and directories currently installed.)
    Preparing to unpack .../linux-image-4.4.0-97-generic_4.4.0-97.120_amd64.deb ...
    Done.
    Unpacking linux-image-4.4.0-97-generic (4.4.0-97.120) ...
    dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.0-97-generic_4.4.0-97.120_amd64.deb (--unpack):
    cannot copy extracted data for './boot/vmlinuz-4.4.0-97-generic' to '/boot/vmlinuz-4.4.0-97-generic.dpkg-new': failed to write (No space left on device)
    dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-97-generic /boot/vmlinuz-4.4.0-97-generic
    run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-97-generic /boot/vmlinuz-4.4.0-97-generic
    Errors were encountered while processing:
    /var/cache/apt/archives/linux-image-4.4.0-97-generic_4.4.0-97.120_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    [tsnowcrash@QuickBox]:(102.8Mb)~$
    I can't complete the update process since /boot is full because he never removed the old, unused kernels. The problem now is that I can't clear any space because 'sudo apt-get autoremove' gives me this:

    Code:
    [tsnowcrash@QuickBox]:(102.8Mb)~$ sudo apt-get autoremove
    sudo: unable to resolve host QuickBox
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    You might want to run 'apt-get -f install' to correct these.
    The following packages have unmet dependencies:
    linux-image-extra-4.4.0-97-generic : Depends: linux-image-4.4.0-97-generic but it is not installed
    linux-image-generic : Depends: linux-image-4.4.0-97-generic but it is not installed
    E: Unmet dependencies. Try using -f.
    [tsnowcrash@QuickBox]:(102.8Mb)~$
    which brings me full circle back to the previous issue with 'apt-get -f install'. Is there a way to safely make some space in /boot? I don't know what would happen if I manually deleted the old kernels. Any suggestions?

    EDIT: Also, I wasn't sure which category to post in since this is not a Kubuntu problem.

    #2
    Don't use 'upgrade' (sudo apt upgrade). Use full-upgrade instead (sudo apt full-upgrade). See https://askubuntu.com/questions/7701...t-dist-upgrade
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Originally posted by Snowhog View Post
      Don't use 'upgrade' (sudo apt upgrade). Use full-upgrade instead (sudo apt full-upgrade). See https://askubuntu.com/questions/7701...t-dist-upgrade
      That still returns the error that says I need to run 'apt-get -f install'

      Comment


        #4
        copy your list of kernels,headers,and extra that are autoremoveable ,,,,,then use apt-get remove on them one by one oldest to newest ,,,,,,or if apt-get dose not want to do it ,,then use dpkg it's self ,,,,IE: (sudo dpkg -rP linux-headers-4.4.0-77)and so forth and so on through the hole list ,,,,you may half to do the compleat set at one shot that is the image,headers and extras for the one seres "4.4.0.77"

        once you have the room (4-5 sets removed)you can go the normal routs

        VINNY
        i7 4core HT 8MB L3 2.9GHz
        16GB RAM
        Nvidia GTX 860M 4GB RAM 1152 cuda cores

        Comment


          #5
          Originally posted by GKNByNW
          sudo: unable to resolve host QuickBox
          That looks weird. I take it from the prompt that QuickBox is your host name.

          Googling suggests that you should check the contents of /etc/hostname and /etc/hosts. /etc/hostname should just be QuickBox and /etc/hosts should have a line saying
          Code:
          127.0.1.1   QuickBox
          Case is significant, I think. Maybe you've changed the host name and have yet to reboot?
          sudo might be quicker if you fix this.
          Regards, John Little

          Comment


            #6
            Thanks for the replies, jlittle. I will try that some time this weekend when I am not wore out from work. As far as the "QuickBox" goes, that is the chosen hostname. This is my friend's dedicated server (from Hetzner) and I set it up the same way I run my own dedi. Both are based on the QuickBox seedbox. (Not sure if I am allowed to post link, but Google finds it readily.) Both ours machines give the same unable to resolve host message anytime "sudo" is used. It's never caused any issues that I'm aware of, so I've never bothered to find out why it does that.

            Comment


              #7
              I forgot to come back and post that I finally solved this issue. None of the suggested solutions worked so I had to do things the "dirty" way. I manually "rm"-ed the oldest kernel files and that finally gave me enough space on /boot to run the apt-get -f install, after which I was able to autoremove the rest.

              Comment


                #8
                Yeah, when you are already “out of/nearly out of” space in /, doing anything can be problematic.
                Windows no longer obstructs my view.
                Using Kubuntu Linux since March 23, 2007.
                "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                Comment

                Working...
                X