Update-Install fails

  • I've tried to update a local installation per update-script of the wiki (changed to the stable-trunk) - it's a development environment and groupware plattform on my workoffice where I'm employed.
    The dpkg did went well, no errors. But after synchronize the git and begin of the update of i-mscp after the downloads the following error-message appeared:
    ---begin errormessage
    Error was:

    autoinstaller::Adapter::Debian::installPackages: Reading package lists...
    Building dependency tree...
    Reading state information...
    Reinstallation of libdbi-perl is not possible, it cannot be downloaded.
    Reinstallation of libc6-dev is not possible, it cannot be downloaded.
    Reinstallation of perl-base is not possible, it cannot be downloaded.
    Reinstallation of libberkeleydb-perl is not possible, it cannot be
    downloaded.
    ---end errormessage
    and the installation / update interrupted.
    I-Mscp apparently works, the domains seems to be all reachable - but what where going wrong? How to download the missing packages or what is to do that the update runs troug?
    Thanks for hints - I'm looking tomorrow here again in, now I have closing time... ;-)

  • Hello


    Distro ?
    /etc/apt/sources.list content?
    /etc/resolv.conf content ?
    result of apt-get install -f ?
    ...

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Distro: Debian Wheezy


    resolv.conf:
    # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
    # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
    nameserver 8.8.8.8


    /etc/apt/preferences:
    Package: *
    Pin:release n=wheezy
    Pin-Priority: 500
    Package: *
    Pin: release a=testing
    Pin-Priority: 50


    /etc/apt/preferences.d/imscp:
    Package: mariadb-client-10.0 mariadb-server-10.0 mariadb-common libmysqlclient18
    Pin: origin mirror.netcologne.de
    Pin-Priority: 1001


    /etc/apt/sources.list:
    deb-src http://debian.intergenia.de/debian/ wheezy main non-free contrib
    deb http://security.debian.org/ wheezy/updates main contrib non-free
    deb-src http://security.debian.org/ wheezy/updates main contrib non-free
    # wheezy-updates, previously known as 'volatile'
    deb http://debian.intergenia.de/debian/ wheezy-updates main contrib non-free
    deb-src http://debian.intergenia.de/debian/ wheezy-updates main contrib non-free
    deb http://mirror.netcologne.de/mariadb/repo/10.0/debian wheezy main


    /etc/apt/sources.list.d/backports.list:
    # wheezy backports
    deb http://ftp.debian.org/debian/ wheezy-backports main contrib non-free


    /etc/apt/sources.list.d/monitorix.list:
    # wget http://apt.izzysoft.de/izzysoft.asc
    # apt-key add izzysoft.asc
    deb http://apt.izzysoft.de/ubuntu generic universe


    /etc/apt/sources.list.d/debtesting.list:
    deb http://ftp.us.debian.org/debian/ testing main


    /etc/apt/sources.list.d# cat whiskermenu.list:
    # wget http://download.opensuse.org/r…de/Debian_7.0/Release.key
    # sudo apt-key add - < Release.ke
    deb http://download.opensuse.org/r…home:gottcode/Debian_7.0/ /


    /etc/apt/sources.list.d# cat x2go.list:
    #apt-key adv --recv-keys --keyserver keys.gnupg.net E1F958385BFE2B6E
    # X2Go Repository (release builds)
    deb http://packages.x2go.org/debian wheezy main
    # X2Go Repository (sources of release builds)
    deb-src http://packages.x2go.org/debian wheezy main


    apt-get install -f
    Paketlisten werden gelesen... Fertig
    Abhängigkeitsbaum wird aufgebaut.
    Statusinformationen werden eingelesen.... Fertig
    0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.


    Hope that there's no failure in the lists, but apt-get update works without any worry ;-)
    Thanks for any hint.

  • Hello ;


    The problem is that you are using packages from stable and testing... And I don't talk about the other repositories... Well, the solution for you is to edit the ./autoinstaller/Adapter/Debian.pm inside the archive and replace the following stanza (line 220 to 224):

    Perl
    1. $rs = execute( "$command -y -o DPkg::Options::='--force-confnew' -o Dpkg::Options::='--force-confask' " . "--reinstall install @{$self->{'packagesToInstall'}} --auto-remove --purge", ($preseed || $main::noprompt) ? \$stdout : undef, \$stderr );


    by


    Perl
    1. $rs = execute( "$command -y -o DPkg::Options::='--force-confmiss' " . "install @{$self->{'packagesToInstall'}} --auto-remove --purge", ($preseed || $main::noprompt) ? \$stdout : undef, \$stderr );


    and then, rerun the installer.


    Shell-Script
    1. # perl imscp-autoinstall -d

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Thanks nuxwin,
    is the pinning not right? I actually toufght, that there's no big problems with pinning, because I only install some tools from testing.
    But ok, I know that some packages should not be on a server....


    Well, I did the changings but now the error as following:
    [ERROR] │
    │ │
    │ Error while performing step: │
    │ │
    │ Installing all Debian packages for i-MSCP │
    │ │
    │ Error was: │
    │ │
    │ autoinstaller::Adapter::Debian::installPackages: Reading package lists... │
    │ Building dependency tree... │
    │ Reading state information... │
    │ apache2 is already the newest version. │
    │ apache2-mpm-worker is already the newest version. │
    │ apache2-suexec-custom is already the newest version. │
    │ at is already the newest version. │
    │ bash is already the newest version.


    Some new hints? It does not love the newest versions?
    Thanks in advice.
    Ruben

  • Hello ;


    Teamviewer please ;)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • First, sorry for the late answer, the problem occured on a server which wasn't important, meanwhile my boss did kill that server (it was a virtual machine on a esxi-server with fibrechannel-storagelibrary and he killed the storage...)


    But I think the problem is solved, I did updates on my other servers, and always after the second run of the updatescript it went well without any error. Sometimes things regulate almost self ;-)


    Once more thanks for the good work of the team of imscp - it is really great how to work here and how well everything works.