Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Cannot complete upgrade of debian stretch [SOLVED]

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
omixam
Posts: 22
Joined: 2014-04-27 23:47

Cannot complete upgrade of debian stretch [SOLVED]

#1 Post by omixam »

I had tried to upgrade to Debian 9, but after run

$su
#apt-get update
#apt-get upgrade
#apt-get dist-upgrade

I'm not able to complete the download, I getting the following erros:

#apt-get dist-upgrade
Reading package list ... Done203/5000
Creating dependency tree
Reading the status information ... Done
You may want to run «apt --fix-broken install» to fix it.
The following packages have unmet dependencies:
adwaita-icon-theme : Depends: gtk-update-icon-cache
aptitude : Depends: libcwidget3v5 but it is not installed
Depends: libsigc++-2.0-0v5 (>= 2.8.0) but it is not installed
Depends: libxapian30 but it is not installed
gnome-icon-theme : Depends: gtk-update-icon-cache
gparted : Depends: libatkmm-1.6-1v5 (>= 2.24.0) but it is not installed
Depends: libglibmm-2.4-1v5 (>= 2.50.0) but it is not installed
Depends: libsigc++-2.0-0v5 (>= 2.8.0) but it is not installed
inkscape : Depends: libatkmm-1.6-1v5 (>= 2.24.0) but it is not installed
Depends: libcdr-0.1-1 but it is not installed
Depends: libglibmm-2.4-1v5 (>= 2.50.0) but it is not installed
Depends: libgsl2 but it is not installed
Depends: libsigc++-2.0-0v5 (>= 2.8.0) but it is not installed
Depends: libvisio-0.1-1 but it is not installed
Recomend: libimage-magick-perl but it is not installed
Recomend: python-lxml but it is not installed
Recomend: python-scour but it is not installed
libcairomm-1.0-1v5 : Depends: libsigc++-2.0-0v5 (>= 2.2.0) but it is not installed
libgtk-3-bin : Depends: gtk-update-icon-cache
libgtk2.0-bin : Depends: gtk-update-icon-cache
libgtkmm-2.4-1v5 : Depends: libatkmm-1.6-1v5 (>= 2.24.0) but it is not installed
Depends: libglibmm-2.4-1v5 (>= 2.48.0) but it is not installed
Depends: libsigc++-2.0-0v5 (>= 2.6.1) but it is not installed
libpangomm-1.4-1v5 : Depends: libglibmm-2.4-1v5 (>= 2.48.0) but it is not installed
Depends: libsigc++-2.0-0v5 (>= 2.2.0) but it is not installed
E: dependsncias incumplidas. Try «apt --fix-broken install» without packages (or specify a solution).
and after run #apt --fix-broken install
(Reading the database ... 118304 files or directories currently installed.)
Preparing to unpack ... / gtk-update-icon-cache_3.22.8-1_amd64.deb ...
There is no deviation for `deviation from / usr / sbin / update-icon-caches to /usr/sbin/update-icon-caches.gtk2 for libgtk-3-bin ', none have been removed.
dpkg-divert: attention: missing the file list file of the `libgtk-3-bin 'package, it will be assumed that the package does not have any files currently installed
Removing `deviation from /usr/share/man/man8/update-icon-caches.8.gz to /usr/share/man/man8/update-icon-caches.gtk2.8.gz per libgtk-3-bin '
dpkg-divert: error: rename requires overwriting `/usr/share/man/man8/update-icon-caches.8.gz 'with
A different `/usr/share/man/man8/update-icon-caches.gtk2.8.gz 'file is not allowed.
dpkg: failed to process file /var/cache/apt/archives/gtk-update-icon-cache_3.22.8-1_amd64.deb (--unpack):
The new pre-installation script thread returned error exit code 2
Errors were encountered while processing:
/var/cache/apt/archives/gtk-update-icon-cache_3.22.8-1_amd64.deb
E: Sub-process / usr / bin / dpkg returned an error code (1)
Anyone has an idea how can I solve this issue?
Last edited by omixam on 2017-03-20 02:30, edited 1 time in total.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Cannot complete upgrade of debian stretch

#2 Post by GarryRicketson »

I had tried to upgrade to Debian 9,
Debian 9 is not a release yet,
https://www.debian.org/releases/
Index of releases

The next release of Debian is codenamed "stretch" — no release date has been set
Debian 8 ("jessie") — current stable release
Debian 7 ("wheezy") — obsolete stable release
As you can see there is no Debian 9 yet.

What version are you trying to upgrade from ?
It may help to show us your /etc/apt/sources.list file , please use code boxes to post the contents.

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Cannot complete upgrade of debian stretch

#3 Post by dasein »

omixam wrote:Anyone has an idea how can I solve this issue?
Yes.

Stop mixing repos.

http://forums.debian.net/viewtopic.php?&t=114130

omixam
Posts: 22
Joined: 2014-04-27 23:47

Re: Cannot complete upgrade of debian stretch

#4 Post by omixam »

My actual sources.list
#======= stretch ===================
deb http://httpredir.debian.org/debian stretch main contrib non-free
deb http://httpredir.debian.org/debian stretch-updates main contrib
deb http://security.debian.org/ stretch/updates main
I know that Stretch is testing still.

Stretch is the development codename for Debian 9.
https://wiki.debian.org/DebianStretch

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Cannot complete upgrade of debian stretch

#5 Post by GarryRicketson »

Did you look at this ?
https://wiki.debian.org/SourcesList

In the example, but it is for Debian Jessie:

Code: Select all

 
deb http://httpredir.debian.org/debian jessie main
deb-src http://httpredir.debian.org/debian jessie main

deb http://httpredir.debian.org/debian jessie-updates main
deb-src http://httpredir.debian.org/debian jessie-updates main

deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main 
Ok, you don't need the "deb-src", but I think you may need this one line:

Code: Select all

deb http://httpredir.debian.org/debian stretch main 
Yours does not have the "main" sources for stretch,
and here, it says,......
https://wiki.debian.org/DebianTesting
To upgrade to testing, if you have already installed the stable release:

Edit your /etc/apt/sources.list file, changing 'stable' (or the current codename for stable) to 'testing' (or the current code name for the next stable release).

Remove or comment out your stable security updates line(s) (anything with security.debian.org in it).
Remove or comment out any other stable-specific lines, like *-backports or *-updates.
Obviously in your case you want to use "stretch" and not "testing",
but my point is , it does not say anything about leaving out the line
that says,

Code: Select all

 deb http://httpredir.debian.org/debian stretch main 
I have Debian stretch on a VM, and do include the "main" packages source, and have never had any problems with the udates,upgrades.
However, I am far from any kind of expert, you may want to wait and see what others say as well.
Be sure to remember to run 'apt-get update' if and when you modify the sources.list file.
=====

Code: Select all

Depends: gtk-update-icon-cache
aptitude : Depends: libcwidget3v5 but it is not installed
Depends: libsigc++-2.0-0v5 (>= 2.8.0) but it is not installed
Depends: libxapian30 but it is not installed----snip--- 
To me this indicates you have a lot of packages/dependencies that are not installed, and maybe if you have the main repository it will be able to pull in /install what is needed.
You can use the -s (simulate) option to simulate this, before actually
installing anything, etc,...that is what I would do.

Code: Select all

man apt-get 
or
man apt
Last edited by GarryRicketson on 2017-03-16 01:16, edited 2 times in total.

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Cannot complete upgrade of debian stretch

#6 Post by dasein »

GarryRicketson wrote:Yours does not have the "main" sources for stretch,
Oh FFS, yes it does.
omixam wrote:My actual sources.list
#======= stretch ===================
deb http://httpredir.debian.org/debian stretch main contrib non-free
deb http://httpredir.debian.org/debian stretch-updates main contrib
deb http://security.debian.org/ stretch/updates main
If you can't give a correct answer, would you please stop giving wrong ones??

@OP: Your system's behavior is not consistent with a pristine sources.list.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Cannot complete upgrade of debian stretch

#7 Post by GarryRicketson »

If you can't give a correct answer, would you please stop giving wrong ones??
Really, and if you a so smart,and know the right answer, why do you all ways get so rude with people., and very seldom give any kind of real answer ?

My solution to you: YES

Back on topic:
@by omixam »
I am sorry , if you do have this line in your sources.list, I sure don't see
it,...my eyes are pretty bad, so maybe I am missing it.

Code: Select all

deb http://httpredir.debian.org/debian stretch main  
It might not be needed, but as I said, I use it, and have not had the
kind of problem you are having.
==== edited ======

Also I don't use the contrib non-free repos myself, there is a lot of
details in the manual, below , it would be worth taking the time to read it
all carefully.
From: https://www.debian.org/doc/manuals/debi ... e_software
Users should be aware of the risks of using packages in the non-free and contrib areas:

lack of freedom for such software packages

lack of support from Debian on such software packages (Debian can't support software properly without having access to its source code.)

contamination of your 100% free Debian system

I do use the same sources, as shown in the Debian wiki, and never
had any problem, but any way, the information in the above link,
I find very use full,..it might be of help to you.
Last edited by GarryRicketson on 2017-03-16 04:27, edited 1 time in total.

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Cannot complete upgrade of debian stretch

#8 Post by dasein »

Ah yes, the ""bad eyesight" cop out (which is precisely why the relevant entry was deliberately rendered @150% normal size when quoted).

Image

And Garry, if you really want to challenge me to a solutions-to-posts contest, bring it. Seriously. We both have plenty of posting history to analyze.

(But let's make the stakes interesting: loser agrees to stop posting entirely. I for one am tired of having to clean up after your wrong answers.)

omixam
Posts: 22
Joined: 2014-04-27 23:47

Re: Cannot complete upgrade of debian stretch

#9 Post by omixam »

Continue with the same error.

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Cannot complete upgrade of debian stretch

#10 Post by bw123 »

aptitude is sometimes able to figure these things out. If you have "jumped ahead" and installed some packages from testing already, or if you have pinned packages, let people know and you'll get a better answer.
resigned by AI ChatGPT

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Cannot complete upgrade of debian stretch

#11 Post by GarryRicketson »

Just changing the sources.list file will not repair, clean, or remove broken packages.
You will need to do that as well.
Aptitude probably is the best tool to do this,...as suggested by by bw123.
see:

Code: Select all

man aptitude
Just a small part, on the "clean" option, it is very important you read all the manual
carefully, before just trying random commands, also , there is a 'simulate' option
in aptitude as well, it is a safer way to check what you do, before actually doing it.
clean
Removes all previously downloaded .deb files from the package cache directory (usually /var/cache/apt/archives).
==========================

Code: Select all

-s, --simulate
           In command-line mode, print the actions that would normally be performed, but don't actually perform them. This does not
           require root privileges. In the visual interface, always open the cache in read-only mode regardless of whether you are root.

           This corresponds to the configuration option Aptitude::Simulate.
 
There also is this documentation available to help:
How to clean and repair broken packages on Debian
A good place to start,
https://www.debian.org/doc/manuals/debi ... 02.en.html
and
https://raphaelhertzog.com/2011/02/21/d ... tall-them/

Keep in mind, it is all ways best to have a good back up, things can and do go wrong
sometimes,..
In some of the documentation on updateing and upgradeing , I have read that they
do not recomend using aptitude to do the actually upgrading, but aptitude is good for
cleaning up the situation, so you can update/upgrade successfully.
From:https://www.debian.org/doc/manuals/debi ... e_software
2.2.1. apt-get / apt-cache vs. aptitude

Although aptitude is a very nice interactive tool which the author mainly uses, you should know some cautionary facts:

The aptitude command is not recommended for the release-to-release system upgrade on the stable Debian system after the new release.

The use of "apt-get dist-upgrade" is recommended for it. See Bug #411280.

The aptitude command sometimes suggests mass package removals for the system upgrade on the testing or unstable Debian system.

This situation has frightened many system administrators. Don't panic.

This seems to be caused mostly by the version skew among packages depended or recommended by a meta-package such as gnome-core.

This can be resolved by selecting "Cancel pending actions" in the aptitude command menu, exiting aptitude, and using "apt-get dist-upgrade".
Guess that is about it for now. good luck

omixam
Posts: 22
Joined: 2014-04-27 23:47

Re: Cannot complete upgrade of debian stretch

#12 Post by omixam »

That works for me:
renaming update-icon-caches.8.gz to e.g. update-icon-caches.8.gz.bk then running run apt --fix-broken install again
https://superuser.com/questions/1188807 ... 08_1188807

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Cannot complete upgrade of debian stretch

#13 Post by GarryRicketson »

Great, glad to hear that.

Post Reply