error 1
walter@
Riepilogo supporto per «walterslaptop»:
Traceback (most recent call last):
File "/usr/bin/
'time' : time})
TypeError: not enough arguments for format string
walter@
cat: /etc/dpkg/
walter@
walter@
[sudo] password for walter:
walter@
walter@
walter@
walter@
walter@
walter@
cat: /etc/apt/apt.conf: File o directory non esistente
walter@
walter@
walter@
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
walter@
Linux walterslaptop 3.13.0-30-generic #54-Ubuntu SMP Mon Jun 9 22:47:59 UTC 2014 i686 i686 i686 GNU/Linux
walter@
walter@
walter@
walter@
walter@
walter@
walter@
walter@
walter@
walter@
walter@
walter@
walter@
walter@
walter@
walter@
Reading package lists... Done
Building dependency tree
Reading state information... Done
walter@
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:
libapache2-
E: Unmet dependencies. Try using -f.
walter@
Ign http://
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Ign http://
Ign http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Fetched 20.6 MB in 22s (932 kB/s)
Reading package lists... Done
walter@
Setting up libwbclient0:i386 (2:4.1.
Setting up libgphoto2-
Setting up samba-libs:i386 (2:4.1.
Setting up python-samba (2:4.1.
Setting up samba-vfs-modules (2:4.1.
Setting up samba-common (2:4.1.
Setting up samba-common-bin (2:4.1.
Setting up libgphoto2-6:i386 (2.5.3.
dpkg: dependency problems prevent configuration of libapache2-
libapache2-
Package apache2 is not installed.
dpkg: error processing package libapache2-mod-php5 (--configure):
dependency problems - leaving unconfigured
Setting up samba-dsdb-modules (2:4.1.
Setting up libsmbclient:i386 (2:4.1.
Setting up smbclient (2:4.1.
Setting up samba (2:4.1.
samba-ad-dc start/running, process 5668
Processing triggers for libc-bin (2.19-0ubuntu6) ...
Errors were encountered while processing:
libapache2-
walter@
walter@
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
apache2
Suggested packages:
apache2-doc apache2-
The following NEW packages will be installed:
apache2
0 upgraded, 1 newly installed, 0 to remove and 12 not upgraded.
1 not fully installed or removed.
Need to get 87.4 kB of archives.
After this operation, 473 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://
Fetched 87.4 kB in 0s (226 kB/s)
(Reading database ... 280532 files and directories currently installed.)
Preparing to unpack .../apache2_
/var/lib/
dpkg: error processing archive /var/cache/
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
walter@
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:
libapache2-
E: Unmet dependencies. Try using -f.
walter@
Ign http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Reading package lists... Done
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:
libapache2-
E: Unmet dependencies. Try using -f.
walter@
/etc/apt/
1 # deb cdrom:[Ubuntu 12.10 _Quantal Quetzal_ - Release i386 (20121017.2)]/ quantal main restricted
2
3 # See http://
4 # newer versions of the distribution.
5 deb http://
6 deb-src http://
7
8 ## Major bug fix updates produced after the final release of the
9 ## distribution.
10 deb http://
11 deb-src http://
12
13 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
14 ## team. Also, please note that software in universe WILL NOT receive any
15 ## review or updates from the Ubuntu security team.
16
17 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
18 ## team, and may not be under a free licence. Please satisfy yourself as to
19 ## your rights to use the software. Also, please note that software in
20 ## multiverse WILL NOT receive any review or updates from the Ubuntu
21 ## security team.
22
23 ## N.B. software from this repository may not have been tested as
24 ## extensively as that contained in the main release, although it includes
25 ## newer versions of some applications which may provide useful features.
26 ## Also, please note that software in backports WILL NOT receive any review
27 ## or updates from the Ubuntu security team.
28
29 deb http://
30 deb-src http://
31
32 ## Uncomment the following two lines to add software from Canonical's
33 ## 'partner' repository.
34 ## This software is not part of Ubuntu, but is offered by Canonical and the
35 ## respective vendors as a service to Ubuntu users.
36 # deb http://
37 # deb-src http://
38
39 ## This software is not part of Ubuntu, but is offered by third-party
40 ## developers who want to ship their latest software.
41 # deb http://
42 # deb-src http://
walter@
walter@
Question information
- Language:
- German Edit question
- Status:
- Answered
- For:
- Ubuntu apt Edit question
- Assignee:
- No assignee Edit question
- Last query:
- 2014-07-06
- Last reply:
- 2016-06-03
Manfred Hampl (m-hampl) said : | #1 |
The important part of your output is this:
Get:1 http://
Fetched 87.4 kB in 0s (226 kB/s)
(Reading database ... 280532 files and directories currently installed.)
Preparing to unpack .../apache2_
/var/lib/
dpkg: error processing archive /var/cache/
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
This is strange, because the a2query script should be included in the apache2 package.
Please provide the result of the terminal command
echo $PATH
Walter Frey (wfm) said : | #2 |
walter@
/usr/local/
walter@
Manfred Hampl (m-hampl) said : | #3 |
Seems to be bug #1310811
Just a guess: At the moment that the preinst script is executed, the executable /usr/sbin/a2query does not yet exist, making the script fail. I guess the text snippet "CUR_MPM=$(a2query -M) || exit 1" would have to be put inside an "if [ -x '/usr/sbin/a2query' ]" branch
Walter Frey (wfm) said : | #4 |
I could solve problem with the following instructions:
http://
I removed the block concerning <apache2> in /var/lib/
This mean that have uninstalled <apache2>.
Since I'm working with <xampp>, I think it's fine for me.
Best regards
Walter Frey
Il 01. 07. 14 12:56, Manfred Hampl ha scritto:
> Your question #251022 on apt in Ubuntu changed:
> https:/
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> The important part of your output is this:
>
> Get:1 http://
> Fetched 87.4 kB in 0s (226 kB/s)
> (Reading database ... 280532 files and directories currently installed.)
> Preparing to unpack .../apache2_
> /var/lib/
> dpkg: error processing archive /var/cache/
> subprocess new pre-installation script returned error exit status 1
> Errors were encountered while processing:
> /var/cache/
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> This is strange, because the a2query script should be included in the
> apache2 package.
>
> Please provide the result of the terminal command
> echo $PATH
>
Manfred Hampl (m-hampl) said : | #5 |
Manually editing /var/lib/
Danny Korpan (citydweller) said : | #6 |
Ist dein Problem noch vorhanden?
Can you help with this problem?
Provide an answer of your own, or ask Walter Frey for more information if necessary.