logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 23-08-2017 10:43:31

Thierry
Membre
Inscription : 21-04-2016

[Résolu]Debian 7.11 vers 9.x ?

Bonjour tout le monde,

Je suis bloqué avec mon

apt-get update / apt-get upgrade

depuis trois jours sur un serveur Debian 7.11 qui refuse catégoriquement de se mettre a jour !!

J'ai fouillé de partout sur le web pour trouvé une solution mais rien, nada, je reste bloqué ..

(A titre d'info, je suis un noob de Debian et de linux en général ... je me débrouille comme je peux (quelques automatismes mais beaucoup de tuto !))

Quand je lance apt-get update, tout semble aller jusqu’à

Atteint http://security.debian.org wheezy/updates/main Translation-en
157 ko réceptionnés en 4s (37,2 ko/s)
Lecture des listes de paquets... Fait
W: Ignoring Provides line with DepCompareOp for package libapt-inst
W: Ignoring Provides line with DepCompareOp for package libapt-pkg
W: Ignoring Provides line with DepCompareOp for package libespeak-dev
W: Ignoring Provides line with DepCompareOp for package libespeak1
W: Ignoring Provides line with DepCompareOp for package libgpgme11-dev
W: Ignoring Provides line with DepCompareOp for package kodi-api-guilib
W: Ignoring Provides line with DepCompareOp for package kodi-api-pvr
W: Ignoring Provides line with DepCompareOp for package libparse-cpan-meta-perl
W: Ignoring Provides line with DepCompareOp for package libjpeg62
W: Ignoring Provides line with DepCompareOp for package lsb
W: Ignoring Provides line with DepCompareOp for package lsb-core
W: Ignoring Provides line with DepCompareOp for package php-psr-log-implementation
W: Ignoring Provides line with DepCompareOp for package php-seclib
W: Ignoring Provides line with DepCompareOp for package php-sabre-http
W: Ignoring Provides line with DepCompareOp for package php-math-biginteger
W: Ignoring Provides line with DepCompareOp for package pkg-config
W: Ignoring Provides line with DepCompareOp for package pypy-cffi
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-min
W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-min
W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-min
W: Ignoring Provides line with DepCompareOp for package sagenb-export
W: Ignoring Provides line with DepCompareOp for package sagenb-export
W: Vous pouvez lancer « apt-get update » pour corriger ces problèmes.
 



Et si je lance un apt-get upgrade j'ai ça :

Souhaitez-vous continuer [O/n] ? o
Paramétrage de linux-image-3.2.0-4-amd64 (3.2.89-2) ...
Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-4-amd64 /boot/vmlinuz-3.2.0-4-amd64
update-initramfs: Generating /boot/initrd.img-3.2.0-4-amd64
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.2.0-4-amd64 /boot/vmlinuz-3.2.0-4-amd64
/usr/sbin/grub-mkconfig: 10: /etc/default/grub: Syntax error: newline unexpected
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-4-amd64.postinst line 696.
dpkg: erreur de traitement de linux-image-3.2.0-4-amd64 (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
Des erreurs ont été rencontrées pendant l'exécution :
 linux-image-3.2.0-4-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
 



J'ai essayé un max de commandes sur le dpkg (trouvé sur le net ..) tenté de clean le apt-get, tenté avec aptitude, modifier le /etc/apt/sources.list mais hélas, je n'arrive a rien ...
Si quelqu'un a, par hasard, une idée, solution, Obiwan Kenobi pour régler les erreurs je suis plus que preneur !
Merci d'avance

Dernière modification par Thierry (23-08-2017 13:55:50)

Hors ligne

#2 23-08-2017 11:07:56

raleur
Membre
Inscription : 03-10-2014

Re : [Résolu]Debian 7.11 vers 9.x ?

/usr/sbin/grub-mkconfig: 10: /etc/default/grub: Syntax error: newline unexpected


Apparemment il y a un saut de ligne inattendu dans le fichier /etc/default/grub. A vérifier.

Dernière modification par raleur (23-08-2017 11:08:38)


Il vaut mieux montrer que raconter.

Hors ligne

#3 23-08-2017 13:07:24

Thierry
Membre
Inscription : 21-04-2016

Re : [Résolu]Debian 7.11 vers 9.x ?

raleur a écrit :

/usr/sbin/grub-mkconfig: 10: /etc/default/grub: Syntax error: newline unexpected


Apparemment il y a un saut de ligne inattendu dans le fichier /etc/default/grub. A vérifier.


Ok, du coup la config du /etc/default/grub ressemble a ca :

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=<lvmwait=/dev/mapper/vg_r-root rootdelay=20>
GRUB_CMDLINE_LINUX=""


# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
 


si j’exécute un

update-grub


(sans modification)
je retombe sur :

/usr/sbin/grub-mkconfig: 10: /etc/default/grub: Syntax error: newline unexpected
 


ou bien l'erreur se trouve dans

/usr/sbin/grub-mkconfig


??
merci en tout cas, je vais continuer de zieuter dans cette direction (et restaurer un snap de ma vm a chaque tentative foireuses kernal_panic.gif)

Dernière modification par Thierry (23-08-2017 13:09:37)

Hors ligne

#4 23-08-2017 13:16:27

raleur
Membre
Inscription : 03-10-2014

Re : [Résolu]Debian 7.11 vers 9.x ?

Les < et > dans la ligne GRUB_CMDLINE_LINUX_DEFAULT me semblent de trop. Il faudrait les remplacer par des guillemets "".

Il vaut mieux montrer que raconter.

Hors ligne

#5 23-08-2017 13:32:47

Thierry
Membre
Inscription : 21-04-2016

Re : [Résolu]Debian 7.11 vers 9.x ?

raleur a écrit :

Les < et > dans la ligne GRUB_CMDLINE_LINUX_DEFAULT me semblent de trop. Il faudrait les remplacer par des guillemets "".


Nickel, ca a resolu le soucis de

update-grub


root@Srv-Debian:/home/administrateur#

update-grub


Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-4-amd64
Found initrd image: /boot/initrd.img-3.2.0-4-amd64
done
 


maintenant update et upgrade passent \o/
reste a passer de 7.11 a 9.x maintenant.
Merci a toi Raleur

[Edit]pour info:
comme je suis un grand malade #Yolo, j'ai directement attaqué par

 
sed -i 's/wheezy/stretch/g' /etc/apt/sources.list


le serveur n'a pas aimé .. et comme j'avais trop bricolé avant les conf, une restau snapshot et

 
sed -i 's/wheezy/jessie/g' /etc/apt/sources.list


suivis de

apt-get update && apt-get upgrade && apt-get dist-upgrade -y


et la, joie \o/

cat /etc/debian_version = 9.1


Je considére mon problème résolu ! merci DF, en particulier Raleur pour l'aide guantas.png
Edit à toto :
Mis la commande update dans la balise Commande root du forum, pour que ce soit plus lisible par tous.

Dernière modification par Thierry (23-08-2017 13:55:28)

Hors ligne

Pied de page des forums