[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#677960: I had the same problem, can you share/tell me the workaround for it ?



Dear Daniel,
I saw your response but didn't get your workaround. I had the same
issue while upgrading today.

$ sudo aptitude install live-tools
The following packages will be upgraded:
  live-tools
1 packages upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/7,550 B of archives. After unpacking 0 B will be used.
Do you want to continue? [Y/n/?] Y
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
(Reading database ... 487010 files and directories currently installed.)
Preparing to replace live-tools 3.0.1-1 (using
.../live-tools_3.0.2-1_all.deb) ...
D000001: process_archive oldversionstatus=installed
ln: failed to create symbolic link `/usr/bin/uptime': File exists
dpkg: error processing
/var/cache/apt/archives/live-tools_3.0.2-1_all.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
configured to not write apport reports
                                      Errors were encountered while processing:
 /var/cache/apt/archives/live-tools_3.0.2-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:

I tried figuring out which package owns this uptime binary and came up
with this :-

$ dpkg -S /usr/bin/uptime
diversion by live-tools from: /usr/bin/uptime
diversion by live-tools to: /usr/bin/uptime.procps
procps: /usr/bin/uptime

Thinking it is perhaps some issue with procps did this :-

$ sudo aptitude reinstall procps
The following packages will be REINSTALLED:
  procps
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and
4 not upgraded.
Need to get 0 B/252 kB of archives. After unpacking 0 B will be used.
(Reading database ... 487010 files and directories currently installed.)
Preparing to replace procps 1:3.3.3-2 (using
.../procps_1%3a3.3.3-2_amd64.deb) ...
D000001: process_archive oldversionstatus=installed
Unpacking replacement procps ...
D000001: process_archive updating info directory
D000001: generating infodb hashfile
Processing triggers for readahead-fedora ...
Processing triggers for man-db ...
Processing triggers for menu ...
Setting up procps (1:3.3.3-2) ...
D000001: deferred_configure updating conffiles
D000001: cmpversions a=`1:3.3.3-2' b=`1:3.2.7-3' r=1
update-alternatives: warning: forcing reinstallation of alternative
/usr/bin/uptime.procps because link group uptime is broken.
update-alternatives: warning: skip creation of
/usr/share/man/man1/uptime.1.gz because associated file
/usr/share/man/man1/uptime.procps.1.gz (of link group uptime) doesn't
exist.
update-alternatives: warning: not removing
/usr/share/man/man1/uptime.1.gz since it's not a symlink.
insserv: script pulseaudio.original: service pulseaudio already provided!
insserv: script pulseaudio.original: service esound already provided!
[ ok ] Setting kernel variables ... /etc/sysctl.conf...
/etc/sysctl.d/30-tracker.conf...done.
Processing triggers for menu ...

I finally fixed it by purging the old live-tools package and then
installing the new one.

$ sudo aptitude purge live-tools
The following packages will be REMOVED:
  live-tools{p}
0 packages upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
Need to get 0 B of archives. After unpacking 72.7 kB will be freed.
Do you want to continue? [Y/n/?] Y
D000001: deferred_remove package live-tools:all
D000001: checking dependencies for remove 'live-tools:all'
(Reading database ... 487009 files and directories currently installed.)
Removing live-tools ...
D000001: removal_bulk package live-tools:all
D000001: removal_bulk cleaning info directory
D000001: removal_bulk purging? foundpostrm=1
Purging configuration files for live-tools ...
D000001: removal_bulk purge done, removing list
'/var/lib/dpkg/info/live-tools.list'
D000001: removal_bulk purge done, removing postrm
'/var/lib/dpkg/info/live-tools.postrm'
D000001: removal done
Processing triggers for man-db ...

$ sudo aptitude install live-tools
The following NEW packages will be installed:
  live-tools
0 packages upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/7,550 B of archives. After unpacking 72.7 kB will be used.
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
Selecting previously unselected package live-tools.
(Reading database ... 486993 files and directories currently installed.)
Unpacking live-tools (from .../live-tools_3.0.2-1_all.deb) ...
D000001: process_archive oldversionstatus=not installed
D000001: process_archive updating info directory
D000001: generating infodb hashfile
Processing triggers for man-db ...
Setting up live-tools (3.0.2-1) ...
D000001: deferred_configure updating conffiles

$

As can be seen it doesn't complain now.
-- 
          Regards,
          Shirish Agarwal  शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3  8D70 950D 53FB 729A 8B17



Reply to: