#26 Le 30/08/2022, à 17:01
- ylag
Re : [Résolu] Installation de vim impossible
Bonjour,
Ça se complique !
Il ne faut pas utiliser [arch=arm64] dans tes sources, AMHA.
Il faudrait l'intervention de plus calé(e)s que moi en la matière pour te conseiller sur quoi mettre à la place, désolé...
Si pas déjà essayé, tente peut-être de retirer ce [arch=arm64] et d'jouter la branche restricted dans le fichier sources.list pour avoir :
#deb http://ports.ubuntu.com/ubuntu-ports/ focal main restricted universe multiverse
#deb http://ports.ubuntu.com/ubuntu-ports/ focal-security main restricted universe multiverse
#deb http://ports.ubuntu.com/ubuntu-ports/ focal-updates main restricted universe multiverse
deb http://ports.ubuntu.com/ focal main restricted multiverse universe
deb http://ports.ubuntu.com/ focal-security main restricted multiverse universe
deb http://ports.ubuntu.com/ focal-backports main restricted multiverse universe
deb http://ports.ubuntu.com/ focal-updates main restricted multiverse universe
...tente ensuite l'installation de cette façon, histoire de voir si apt s'y retrouverait concernant l'architecture à privilégier dans les dépôts ports.ubuntu.com :
sudo apt install vim
Si ça ne marche pas, tu peux restaurer le fichier sources.list à son contenu précédent
Si rien d'autre ne marche, peut-être tenter en remplaçant [arch=amd64] par [arch=armhf] ?
A+
Dernière modification par ylag (Le 30/08/2022, à 17:12)
Hors ligne
#27 Le 30/08/2022, à 17:04
- philon
Re : [Résolu] Installation de vim impossible
explication install Vim ici
https://tecadmin.net/install-vim-linux/
Hors ligne
#28 Le 30/08/2022, à 17:05
- noximilio
Re : [Résolu] Installation de vim impossible
Pour lister les paquets gelés :
dpkg --list | grep ^hi
La commande ne retourne rien donc je pense qu'il n'y en a aucun.
Non ma photo de profil n'est pas un vrai bouton "Partager" x)
Hors ligne
#29 Le 30/08/2022, à 17:07
- ylag
Re : [Résolu] Installation de vim impossible
@noximilio :
Regarde le message #26 ; je viens de le modifier.
A+
Hors ligne
#30 Le 30/08/2022, à 17:12
- noximilio
Re : [Résolu] Installation de vim impossible
@noximilio :
Regarde le message #26 ; je viens de le modifier.
A+
Merci, j'ai bien modifié mon fichier mais apt update se comporte exactement pareil :
root@totoserv:/etc/apt# sudo apt install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
vim:arm64 : Depends: libacl1:arm64 (>= 2.2.23) but it is not going to be installed
Depends: libc6:arm64 (>= 2.29) but it is not going to be installed
Depends: libcanberra0:arm64 (>= 0.2) but it is not going to be installed
Depends: libgpm2:arm64 (>= 1.20.7) but it is not going to be installed
Depends: libpython3.8:arm64 (>= 3.8.2) but it is not going to be installed
Depends: libselinux1:arm64 (>= 1.32) but it is not going to be installed
Depends: libtinfo6:arm64 (>= 6) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Non ma photo de profil n'est pas un vrai bouton "Partager" x)
Hors ligne
#31 Le 30/08/2022, à 17:14
- noximilio
Re : [Résolu] Installation de vim impossible
explication install Vim ici
https://tecadmin.net/install-vim-linux/
Merci mais j'ai essayé, et à la première étape ça échoue (encore parce qu'il recherche du arm64)
root@totoserv:/etc/apt# sudo apt install git make ncurses-dev build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ncurses-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libncurses-dev:arm64
E: Package 'ncurses-dev' has no installation candidate
Non ma photo de profil n'est pas un vrai bouton "Partager" x)
Hors ligne
#32 Le 30/08/2022, à 17:16
- philon
Re : [Résolu] Installation de vim impossible
si c'est la dernière version de Vim,faudra suivre le lien que j'ai mis ou sinon revenir a une autre version plus ancienne
essaie ceci
sudo apt install vim
sudo pacman -S vim
puis vim
Dernière modification par philon (Le 30/08/2022, à 17:20)
Hors ligne
#33 Le 30/08/2022, à 17:28
- ylag
Re : [Résolu] Installation de vim impossible
Re,
Merci, j'ai bien modifié mon fichier mais apt update se comporte exactement pareil :
Alors, en dernier recours, peut-être utiliser [arch=armhf] dans le fichier sources.list ?
Si ça ne fonctionne pas non plus, faudra attendre le passage des pointures du forum en ce domaine, désolé pour toutes ces fausses pistes dans ce cas...
A+
Dernière modification par ylag (Le 30/08/2022, à 17:28)
Hors ligne
#34 Le 30/08/2022, à 17:32
- nany
Re : [Résolu] Installation de vim impossible
Bonjour,
Il ne faut pas utiliser [arch=arm64] dans tes sources, AMHA.
+1
Je suggère :
sudo dpkg --remove-architecture i386
sudo dpkg --remove-architecture arm64
sudo sed -i 's/^#//;4,$d' /etc/apt/sources.list
sudo apt clean && sudo apt update
sudo pacman -S vim
Avec Ubuntu ?
Hors ligne
#35 Le 30/08/2022, à 17:35
- philon
Re : [Résolu] Installation de vim impossible
@ nany
trouvé ici
https://www.geeksforgeeks.org/getting-started-with-vim-editor-in-linux/
Hors ligne
#36 Le 30/08/2022, à 17:41
- nany
Re : [Résolu] Installation de vim impossible
Oui bah,
To install vim on Debian based Linux like ubuntu run the command:
…
To install vim on an arch-based distro run the following command:
…
Linux ≠ Ubuntu et Ubuntu ≠ Linux
Hors ligne
#37 Le 30/08/2022, à 18:08
- ylag
Re : [Résolu] Installation de vim impossible
@nany :
Bonjour,
Faudrait-il ajouter [arch=armhf] au fichier sources.list de @noximilio ?
A+
Dernière modification par ylag (Le 30/08/2022, à 18:08)
Hors ligne
#38 Le 30/08/2022, à 18:23
- nany
Re : [Résolu] Installation de vim impossible
Je ne pense pas car c’est l’architecture du système.
Hors ligne
#39 Le 30/08/2022, à 18:42
- noximilio
Re : [Résolu] Installation de vim impossible
Bonjour,
ylag a écrit :Il ne faut pas utiliser [arch=arm64] dans tes sources, AMHA.
+1
Je suggère :
sudo dpkg --remove-architecture i386
sudo dpkg --remove-architecture arm64
sudo sed -i 's/^#//;4,$d' /etc/apt/sources.list
sudo apt clean && sudo apt update
jefvans a écrit :sudo pacman -S vim
Avec Ubuntu ?
Bonsoir, le retour de vos commandes me donne ceci :
root@totoserv:/etc/apt# sudo dpkg --remove-architecture i386
root@totoserv:/etc/apt# sudo dpkg --remove-architecture arm64
root@totoserv:/etc/apt# sudo sed -i 's/^#//;4,$d' /etc/apt/sources.list
root@totoserv:/etc/apt# sudo apt clean && sudo apt update
Get:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease [265 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease [114 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [114 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports focal/main armhf Packages [934 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports focal/main Translation-en [506 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports focal/main armhf c-n-f Metadata [27.8 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports focal/restricted armhf Packages [7044 B]
Get:8 http://ports.ubuntu.com/ubuntu-ports focal/restricted Translation-en [6212 B]
Get:9 http://ports.ubuntu.com/ubuntu-ports focal/restricted armhf c-n-f Metadata [320 B]
Get:10 http://ports.ubuntu.com/ubuntu-ports focal/universe armhf Packages [8321 kB]
Get:11 http://ports.ubuntu.com/ubuntu-ports focal/universe Translation-en [5124 kB]
Get:12 http://ports.ubuntu.com/ubuntu-ports focal/universe armhf c-n-f Metadata [246 kB]
Get:13 http://ports.ubuntu.com/ubuntu-ports focal/multiverse armhf Packages [116 kB]
Get:14 http://ports.ubuntu.com/ubuntu-ports focal/multiverse Translation-en [104 kB]
Get:15 http://ports.ubuntu.com/ubuntu-ports focal/multiverse armhf c-n-f Metadata [7996 B]
Get:16 http://ports.ubuntu.com/ubuntu-ports focal-security/main armhf Packages [822 kB]
Get:17 http://ports.ubuntu.com/ubuntu-ports focal-security/main Translation-en [284 kB]
Get:18 http://ports.ubuntu.com/ubuntu-ports focal-security/main armhf c-n-f Metadata [9888 B]
Get:19 http://ports.ubuntu.com/ubuntu-ports focal-security/restricted armhf Packages [11.7 kB]
Get:20 http://ports.ubuntu.com/ubuntu-ports focal-security/restricted Translation-en [163 kB]
Get:21 http://ports.ubuntu.com/ubuntu-ports focal-security/restricted armhf c-n-f Metadata [340 B]
Get:22 http://ports.ubuntu.com/ubuntu-ports focal-security/universe armhf Packages [560 kB]
Get:23 http://ports.ubuntu.com/ubuntu-ports focal-security/universe Translation-en [130 kB]
Get:24 http://ports.ubuntu.com/ubuntu-ports focal-security/universe armhf c-n-f Metadata [8984 B]
Get:25 http://ports.ubuntu.com/ubuntu-ports focal-security/multiverse armhf Packages [4328 B]
Get:26 http://ports.ubuntu.com/ubuntu-ports focal-security/multiverse Translation-en [5376 B]
Get:27 http://ports.ubuntu.com/ubuntu-ports focal-security/multiverse armhf c-n-f Metadata [116 B]
Get:28 http://ports.ubuntu.com/ubuntu-ports focal-updates/main armhf Packages [1109 kB]
Get:29 http://ports.ubuntu.com/ubuntu-ports focal-updates/main Translation-en [366 kB]
Get:30 http://ports.ubuntu.com/ubuntu-ports focal-updates/main armhf c-n-f Metadata [14.6 kB]
Get:31 http://ports.ubuntu.com/ubuntu-ports focal-updates/restricted armhf Packages [11.9 kB]
Get:32 http://ports.ubuntu.com/ubuntu-ports focal-updates/restricted Translation-en [175 kB]
Get:33 http://ports.ubuntu.com/ubuntu-ports focal-updates/restricted armhf c-n-f Metadata [340 B]
Get:34 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe armhf Packages [781 kB]
Get:35 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe Translation-en [213 kB]
Get:36 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe armhf c-n-f Metadata [15.4 kB]
Get:37 http://ports.ubuntu.com/ubuntu-ports focal-updates/multiverse armhf Packages [8596 B]
Get:38 http://ports.ubuntu.com/ubuntu-ports focal-updates/multiverse Translation-en [7336 B]
Get:39 http://ports.ubuntu.com/ubuntu-ports focal-updates/multiverse armhf c-n-f Metadata [352 B]
Fetched 20.6 MB in 19s (1103 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
198 packages can be upgraded. Run 'apt list --upgradable' to see them.
Et mon fichier sources.list ne contient plus que ça:
deb http://ports.ubuntu.com/ubuntu-ports/ focal main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ focal-security main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ focal-updates main restricted universe multiverse
Ensuite j'ai essayé un sudo apt install vim qui m'a donné:
root@totoserv:/etc/apt# sudo apt install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
alsa-topology-conf alsa-ucm-conf libasound2 libasound2-data libcanberra0 libltdl7 libogg0 libtdb1 libvorbis0a libvorbisfile3 sound-theme-freedesktop vim-runtime
Suggested packages:
libasound2-plugins alsa-utils libcanberra-gtk0 libcanberra-pulse ctags vim-doc vim-scripts
The following NEW packages will be installed:
alsa-topology-conf alsa-ucm-conf libasound2 libasound2-data libcanberra0 libltdl7 libogg0 libtdb1 libvorbis0a libvorbisfile3 sound-theme-freedesktop vim vim-runtime
0 upgraded, 13 newly installed, 0 to remove and 198 not upgraded.
Need to get 7891 kB of archives.
After this operation, 36.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ports.ubuntu.com/ubuntu-ports focal/main armhf alsa-topology-conf all 1.2.2-1 [7364 B]
Get:2 http://ports.ubuntu.com/ubuntu-ports focal-updates/main armhf alsa-ucm-conf all 1.2.2-1ubuntu0.13 [27.0 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports focal-updates/main armhf libasound2-data all 1.2.2-2.1ubuntu2.5 [20.1 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports focal-updates/main armhf libasound2 armhf 1.2.2-2.1ubuntu2.5 [287 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports focal/main armhf libltdl7 armhf 2.4.6-14 [35.4 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports focal-security/main armhf libtdb1 armhf 1.4.3-0ubuntu0.20.04.1 [39.4 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports focal/main armhf libogg0 armhf 1.3.4-0ubuntu1 [21.0 kB]
Get:8 http://ports.ubuntu.com/ubuntu-ports focal/main armhf libvorbis0a armhf 1.3.6-2ubuntu1 [76.4 kB]
Get:9 http://ports.ubuntu.com/ubuntu-ports focal/main armhf libvorbisfile3 armhf 1.3.6-2ubuntu1 [15.2 kB]
Get:10 http://ports.ubuntu.com/ubuntu-ports focal/main armhf sound-theme-freedesktop all 0.8-2ubuntu1 [384 kB]
Get:11 http://ports.ubuntu.com/ubuntu-ports focal/main armhf libcanberra0 armhf 0.30-7ubuntu1 [34.7 kB]
Get:12 http://ports.ubuntu.com/ubuntu-ports focal-security/main armhf vim-runtime all 2:8.1.2269-1ubuntu5.7 [5872 kB]
Get:13 http://ports.ubuntu.com/ubuntu-ports focal-security/main armhf vim armhf 2:8.1.2269-1ubuntu5.7 [1071 kB]
Fetched 7891 kB in 1s (7264 kB/s)
Selecting previously unselected package alsa-topology-conf.
(Reading database ... 66766 files and directories currently installed.)
Preparing to unpack .../00-alsa-topology-conf_1.2.2-1_all.deb ...
Unpacking alsa-topology-conf (1.2.2-1) ...
Selecting previously unselected package alsa-ucm-conf.
Preparing to unpack .../01-alsa-ucm-conf_1.2.2-1ubuntu0.13_all.deb ...
Unpacking alsa-ucm-conf (1.2.2-1ubuntu0.13) ...
Selecting previously unselected package libasound2-data.
Preparing to unpack .../02-libasound2-data_1.2.2-2.1ubuntu2.5_all.deb ...
Unpacking libasound2-data (1.2.2-2.1ubuntu2.5) ...
Selecting previously unselected package libasound2:armhf.
Preparing to unpack .../03-libasound2_1.2.2-2.1ubuntu2.5_armhf.deb ...
Unpacking libasound2:armhf (1.2.2-2.1ubuntu2.5) ...
Selecting previously unselected package libltdl7:armhf.
Preparing to unpack .../04-libltdl7_2.4.6-14_armhf.deb ...
Unpacking libltdl7:armhf (2.4.6-14) ...
Selecting previously unselected package libtdb1:armhf.
Preparing to unpack .../05-libtdb1_1.4.3-0ubuntu0.20.04.1_armhf.deb ...
Unpacking libtdb1:armhf (1.4.3-0ubuntu0.20.04.1) ...
Selecting previously unselected package libogg0:armhf.
Preparing to unpack .../06-libogg0_1.3.4-0ubuntu1_armhf.deb ...
Unpacking libogg0:armhf (1.3.4-0ubuntu1) ...
Selecting previously unselected package libvorbis0a:armhf.
Preparing to unpack .../07-libvorbis0a_1.3.6-2ubuntu1_armhf.deb ...
Unpacking libvorbis0a:armhf (1.3.6-2ubuntu1) ...
Selecting previously unselected package libvorbisfile3:armhf.
Preparing to unpack .../08-libvorbisfile3_1.3.6-2ubuntu1_armhf.deb ...
Unpacking libvorbisfile3:armhf (1.3.6-2ubuntu1) ...
Selecting previously unselected package sound-theme-freedesktop.
Preparing to unpack .../09-sound-theme-freedesktop_0.8-2ubuntu1_all.deb ...
Unpacking sound-theme-freedesktop (0.8-2ubuntu1) ...
Selecting previously unselected package libcanberra0:armhf.
Preparing to unpack .../10-libcanberra0_0.30-7ubuntu1_armhf.deb ...
Unpacking libcanberra0:armhf (0.30-7ubuntu1) ...
Selecting previously unselected package vim-runtime.
Preparing to unpack .../11-vim-runtime_2%3a8.1.2269-1ubuntu5.7_all.deb ...
Adding 'diversion of /usr/share/vim/vim81/doc/help.txt to /usr/share/vim/vim81/doc/help.txt.vim-tiny by vim-runtime'
Adding 'diversion of /usr/share/vim/vim81/doc/tags to /usr/share/vim/vim81/doc/tags.vim-tiny by vim-runtime'
Unpacking vim-runtime (2:8.1.2269-1ubuntu5.7) ...
Selecting previously unselected package vim.
Preparing to unpack .../12-vim_2%3a8.1.2269-1ubuntu5.7_armhf.deb ...
Unpacking vim (2:8.1.2269-1ubuntu5.7) ...
Setting up libogg0:armhf (1.3.4-0ubuntu1) ...
Setting up alsa-ucm-conf (1.2.2-1ubuntu0.13) ...
Setting up libtdb1:armhf (1.4.3-0ubuntu0.20.04.1) ...
Setting up libasound2-data (1.2.2-2.1ubuntu2.5) ...
Setting up libvorbis0a:armhf (1.3.6-2ubuntu1) ...
Setting up libltdl7:armhf (2.4.6-14) ...
Setting up alsa-topology-conf (1.2.2-1) ...
Setting up sound-theme-freedesktop (0.8-2ubuntu1) ...
Setting up libasound2:armhf (1.2.2-2.1ubuntu2.5) ...
Setting up vim-runtime (2:8.1.2269-1ubuntu5.7) ...
Setting up libvorbisfile3:armhf (1.3.6-2ubuntu1) ...
Setting up libcanberra0:armhf (0.30-7ubuntu1) ...
Setting up vim (2:8.1.2269-1ubuntu5.7) ...
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Et ensuite miracle ! vim s'est installé !!
Merci beaucoup pour votre aide ainsi qu'aux autres contributeurs
Je vais mettre le sujet en [résolu] ! ^^
Non ma photo de profil n'est pas un vrai bouton "Partager" x)
Hors ligne
#40 Le 30/08/2022, à 18:47
- nany
Re : [Résolu] Installation de vim impossible
and 198 not upgraded.
Je te conseille de faire une mise à jour :
sudo apt full-upgrade
Hors ligne
#41 Le 30/08/2022, à 18:54
- noximilio
Re : [Résolu] Installation de vim impossible
noximilio a écrit :and 198 not upgraded.
Je te conseille de faire une mise à jour :
sudo apt full-upgrade
Elle est en train de se faire mais elle prend du temps...
Est ce que vous me conseillez de faire la mise à jour vers la 22.04 qui m'est proposée ?
Non ma photo de profil n'est pas un vrai bouton "Partager" x)
Hors ligne
#42 Le 30/08/2022, à 21:17
- ylag
Re : [Résolu] Installation de vim impossible
Bonsoir,
Mon opinion personnelle serait de rester sur la 20.04, qui sera supportée de base jusqu'en 2025 ; si tout fonctionne correctement pour toi, tu as le temps de voir venir pour le passage à la 22.04 !
A+
Hors ligne