Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #170191
| From | Aaron Gray <aaronngray.lists@gmail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: locked out of postfix install |
| Date | 2016-07-16 19:30 +0200 |
| Message-ID | <rVBzz-6DJ-21@gated-at.bofh.it> (permalink) |
| References | <rVvku-2JU-29@gated-at.bofh.it> <rVyBI-4Q1-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
solved see other thread On 16 July 2016 at 15:17, Aaron Gray <aaronngray.lists@gmail.com> wrote: > dpkg seems to be totally broken :- > > ~~~~ > $ sudo apt-get install node > [sudo] password for aaronngray: > 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: > exim4-base : Depends: exim4-config (>= 4.82) but it is not going to > be installed or > exim4-config-2 > Recommends: mailx > node : Depends: ax25-node but it is not going to be installed > Conflicts: nodejs-legacy > E: Unmet dependencies. Try 'apt-get -f install' with no packages (or > specify a solution). > aaronngray@aarongray:/etc/apt$ apt-get -f install > E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) > E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? > aaronngray@aarongray:/etc/apt$ sudo apt-get -f install > 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: > gyp libc-ares-dev libc-ares2 libjs-node-uuid libjs-underscore liblockfile1 > libv8-3.14-dev libv8-3.14.5 node-abbrev node-ansi node-ansi-color-table > node-archy node-async node-block-stream node-combined-stream node-cookie-jar > node-delayed-stream node-forever-agent node-form-data node-fstream > node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs > node-gyp node-inherits node-ini node-json-stringify-safe node-lockfile > node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream > node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once > node-osenv node-qs node-read node-read-package-json node-request node-retry > node-rimraf node-semver node-sha node-sigmund node-slide node-tar > node-tunnel-agent node-underscore node-which > Use 'apt-get autoremove' to remove them. > The following extra packages will be installed: > exim4-config > The following packages will be REMOVED: > postfix > The following NEW packages will be installed: > exim4-config > 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded. > 1 not fully installed or removed. > Need to get 0 B/501 kB of archives. > After this operation, 1,129 kB of additional disk space will be used. > Do you want to continue? [Y/n] Y > Preconfiguring packages ... > dpkg: error processing package postfix (--remove): > package is in a very bad inconsistent state; you should > reinstall it before attempting a removal > Errors were encountered while processing: > postfix > E: Sub-process /usr/bin/dpkg returned an error code (1) > aaronngray@aarongray:/etc/apt$ sudo apt-get -f install postfix > 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: > exim4-base : Depends: exim4-config (>= 4.82) but it is not going to > be installed or > exim4-config-2 > Recommends: mailx > E: Unmet dependencies. Try 'apt-get -f install' with no packages (or > specify a solution). > aaronngray@aarongray:/etc/apt$ sudo apt-get -f install exim4-config > 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: > exim4-config : Conflicts: postfix but 2.11.3-1 is to be installed > E: Unmet dependencies. Try 'apt-get -f install' with no packages (or > specify a solution). > aaronngray@aarongray:/etc/apt$ sudo apt-get -f install > 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: > gyp libc-ares-dev libc-ares2 libjs-node-uuid libjs-underscore liblockfile1 > libv8-3.14-dev libv8-3.14.5 node-abbrev node-ansi node-ansi-color-table > node-archy node-async node-block-stream node-combined-stream node-cookie-jar > node-delayed-stream node-forever-agent node-form-data node-fstream > node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs > node-gyp node-inherits node-ini node-json-stringify-safe node-lockfile > node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream > node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once > node-osenv node-qs node-read node-read-package-json node-request node-retry > node-rimraf node-semver node-sha node-sigmund node-slide node-tar > node-tunnel-agent node-underscore node-which > Use 'apt-get autoremove' to remove them. > The following extra packages will be installed: > exim4-config > The following packages will be REMOVED: > postfix > The following NEW packages will be installed: > exim4-config > 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded. > 1 not fully installed or removed. > Need to get 0 B/501 kB of archives. > After this operation, 1,129 kB of additional disk space will be used. > Do you want to continue? [Y/n] y > Preconfiguring packages ... > dpkg: error processing package postfix (--remove): > package is in a very bad inconsistent state; you should > reinstall it before attempting a removal > Errors were encountered while processing: > postfix > E: Sub-process /usr/bin/dpkg returned an error code (1) > aaronngray@aarongray:/etc/apt$ sudo apt-get -f reinstall postfix > E: Command line option 'f' [from -f] is not known. > aaronngray@aarongray:/etc/apt$ sudo apt-get reinstall postfix > E: Invalid operation reinstall > ~~~~ > > Is there anyway to fix this ? or am I better doing a reinstall ? > > Aaron > > > On 16 July 2016 at 11:46, Aaron Gray <aaronngray.lists@gmail.com> wrote: >> Hi, >> >> I have a relatively fresh install of Debian 8 >> >> I did a >> >> sudo apt-get install postfix >> >> The treminal then came up with a page with instructions and an <OK> >> button, I then left this while I was waiting for my DNS change to >> resolve which took several hours. When I went back to the terminal it >> was frozen. I tried ctrl-D,C, and Z. I then had to kill the terminal >> with the close button. >> >> Then I found dpkg still running and had to kill that as apt-get would >> no longer run. >> >> Hears my sources.list file, not sure thats relevant or will help ? >> >> ~~~ /etc/apt/sources.list ~~~ >> # deb cdrom:[Debian GNU/Linux 8.3.0 _Jessie_ - Official amd64 DVD >> Binary-1 20160123-19:03]/ jessie contrib main >> >> #deb cdrom:[Debian GNU/Linux 8.3.0 _Jessie_ - Official amd64 DVD >> Binary-1 20160123-19:03]/ jessie contrib main >> >> deb http://ftp.uk.debian.org/debian/ jessie main >> deb-src http://ftp.uk.debian.org/debian/ jessie main >> >> deb http://security.debian.org/ jessie/updates main contrib >> deb-src http://security.debian.org/ jessie/updates main contrib >> >> # jessie-updates, previously known as 'volatile' >> deb http://ftp.uk.debian.org/debian/ jessie-updates main contrib >> deb-src http://ftp.uk.debian.org/debian/ jessie-updates main contrib >> ~~~ >> >> Hope you can help ! I would rather not do a fresh install if it can be avoided. >> >> Many thanks in advance, >> >> Aaron
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
locked out of postfix install Aaron Gray <aaronngray.lists@gmail.com> - 2016-07-16 12:50 +0200
Re: locked out of postfix install Aaron Gray <aaronngray.lists@gmail.com> - 2016-07-16 16:20 +0200
Re: locked out of postfix install Aaron Gray <aaronngray.lists@gmail.com> - 2016-07-16 19:30 +0200
Re: locked out of postfix install Brian <ad44@cityscape.co.uk> - 2016-07-16 21:10 +0200
Re: locked out of postfix install Dan Ritter <dsr@randomstring.org> - 2016-07-16 16:20 +0200
csiph-web