Cannot complete upgrade of debian stretch [SOLVED]

Help with issues regarding installation of Debian

Cannot complete upgrade of debian stretch [SOLVED]

Postby omixam » 2017-03-15 14:53

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.
omixam
 
Posts: 22
Joined: 2014-04-27 23:47

Re: Cannot complete upgrade of debian stretch

Postby GarryRicketson » 2017-03-15 15:08

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.
"What we expect you have already Done"

Before doing anything, read the Debian documentation:
Debian Documentation
How to ask the smart way
Debian Foro Español
======================
For the Birds
User avatar
GarryRicketson
 
Posts: 4260
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Cannot complete upgrade of debian stretch

Postby dasein » 2017-03-15 16:46

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

Yes.

Stop mixing repos.

viewtopic.php?&t=114130
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Cannot complete upgrade of debian stretch

Postby omixam » 2017-03-16 00:27

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
omixam
 
Posts: 22
Joined: 2014-04-27 23:47

Re: Cannot complete upgrade of debian stretch

Postby GarryRicketson » 2017-03-16 01:07

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
GarryRicketson
 
Posts: 4260
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Cannot complete upgrade of debian stretch

Postby dasein » 2017-03-16 01:10

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
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Cannot complete upgrade of debian stretch

Postby GarryRicketson » 2017-03-16 01:25

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/debian-reference/ch02.en.html#_debian_is_100_free_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
GarryRicketson
 
Posts: 4260
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Cannot complete upgrade of debian stretch

Postby dasein » 2017-03-16 01:41

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.)
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Cannot complete upgrade of debian stretch

Postby omixam » 2017-03-16 04:54

Continue with the same error.
omixam
 
Posts: 22
Joined: 2014-04-27 23:47

Re: Cannot complete upgrade of debian stretch

Postby bw123 » 2017-03-16 11:15

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.
User avatar
bw123
 
Posts: 2378
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Cannot complete upgrade of debian stretch

Postby GarryRicketson » 2017-03-16 23:13

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/debian-reference/ch02.en.html
and
https://raphaelhertzog.com/2011/02/21/debian-cleanup-tip-4-find-broken-packages-and-reinstall-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/debian-reference/ch02.en.html#_debian_is_100_free_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
"What we expect you have already Done"

Before doing anything, read the Debian documentation:
Debian Documentation
How to ask the smart way
Debian Foro Español
======================
For the Birds
User avatar
GarryRicketson
 
Posts: 4260
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Cannot complete upgrade of debian stretch

Postby omixam » 2017-03-17 18:43

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
omixam
 
Posts: 22
Joined: 2014-04-27 23:47

Re: Cannot complete upgrade of debian stretch

Postby GarryRicketson » 2017-03-17 19:11

Great, glad to hear that.
User avatar
GarryRicketson
 
Posts: 4260
Joined: 2015-01-20 22:16
Location: Durango, Mexico


Return to Installation

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable