Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: repeated error messages when running apt-get

  1. #1
    Join Date
    Sep 2021
    Beans
    18

    repeated error messages when running apt-get

    Hello fellow Ubunters,

    My current laptop was bought back in 2013 and started showing signs of old age and dysfunction a few months ago.

    I don't know if these are bugs that I should report, or dysfunction, but the overall system has odd, unexpected behaviors. I have ignored so far all the warnings signs, since I was super busy/overwhelmed, and mainly because just closing the warning sign message window stopped the problem and the system overall kept running smoothly.

    To sum it up: I just got a big red flag today (warning sign from the system) while trying to install a new printer that suggested an error happened and that I should run the

    apt-get
    command in a terminal.

    Here is what I get:

    utilisateur@utilisateur-TravelMate-P253:~$ apt-get
    apt 1.6.12ubuntu0.1 (amd64)
    Usage : apt-get [options] commandes
    apt-get [options] install|remove pkg1 [pkg2 ...]
    apt-get [options] source pkg1 [pkg2 ...]

    apt-get est une interface en ligne de commande servant à
    télécharger des paquets ainsi que des informations à leur propos
    depuis des sources de confiance ainsi qu'à les installer, les mettre à jour
    avec leurs dépendances.



    Commandes les plus utilisées :
    update - Récupère les nouvelles listes de paquets
    upgrade - Réalise une mise à jour
    install - Installe de nouveaux paquets (pkg1 est libc6 et non libc6.deb)
    remove - Supprime des paquets
    purge - Supprime des paquets et leurs fichiers de configuration
    autoremove - Supprime automatiquement les dépendances inutilisées
    dist-upgrade - Met à jour la distribution, reportez-vous à apt-get(8)
    dselect-upgrade - Suit les sélections de dselect
    build-dep - Configure build-dependencies pour les paquets sources
    clean - Supprime dans le cache local tous les fichiers téléchargés
    autoclean - Supprime dans le cache local les fichiers inutiles
    check - Vérifie qu'il n'y a pas de rupture de dépendances
    source - Télécharge les archives de sources
    download - Télécharge le paquet binaire dans le répertoire courant
    changelog - Télécharge et affiche le journal des modifications (« changelog ») du paquet indiqué

    Veuillez vous référer à apt-get(8) pour plus d'information à propos des commandes disponibles.
    Les options de configuration ainsi que la syntaxe sont détaillées dans apt.conf(5).
    Des informations sur la configuration des sources sont disponibles dans sources.list(5).
    Les choix de paquet ainsi que la version peuvent être renseignés grâce à apt_preferences(5).
    Les informations à propos de la sécurité sont disponibles dans apt-secure(8).

    Cet APT a les « Super Cow Powers »
    utilisateur@utilisateur-TravelMate-P253:~$
    OK, this is all in French and doesn't give much info about the real issue.

    I'm off to read more about apt-get as suggested on the first thread I opened (it all started with me trying to connect a new print and install HPLIP as I said earlier).
    Last edited by teabutterfly2047; September 30th, 2021 at 05:59 PM.

  2. #2
    Join Date
    Jun 2020
    Beans
    297

    Re: repeated error messages when running apt-get

    you can't just run apt-get , it must be followed by an option ,eg. apt-get update
    there's no red flag ,it just tell you to follow the command with an option
    xubuntu 20.04.3 LTS (focal fossa)

  3. #3
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    12,391
    Distro
    Ubuntu

    Re: repeated error messages when running apt-get

    Further beyond running with an option like update or upgrade you also need to run it with elevated rights, like with sudo, or be running as root.
    Or else it'll simply output permission denied.

    More on apt-get: https://help.ubuntu.com/community/AptGet/Howto
    More on sudo:https://help.ubuntu.com/community/RootSudo
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  4. #4
    Join Date
    Sep 2021
    Beans
    18

    Re: repeated error messages when running apt-get

    Quote Originally Posted by 3nd View Post
    you can't just run apt-get , it must be followed by an option ,eg. apt-get update
    there's no red flag ,it just tell you to follow the command with an option
    well, there's a big red button telling me that an ERROR occurred. This is what I nickname "red flag". So I know there's an error, but I don't know which one, or where to look or what option should follow apt-get. I saw a list of options, so I got it. Except none of the options suit my needs.

    Anyways, I'm back to reading this: https://itsfoss.com/apt-vs-apt-get-difference/

    PS: I just added my signature using
    hostnamectl
    @deadlfwr thanks for more useful links.

    I really have to RTFM.

    fully read and understood: https://itsfoss.com/apt-vs-apt-get-difference/
    now let's read this: https://itsfoss.com/apt-command-guide/


    and what to avoid, of course: https://ubuntuforums.org/showthread.php?t=1877557

    I really want to read all the info carefully, as using the sudo/root command is high risk and I want to avoid mistakes here, if possible.
    Last edited by howefield; October 2nd, 2021 at 10:53 PM. Reason: posts merged.
    Proud Xubuntu user since 1999
    Operating System: Ubuntu 18.04.5 LTS
    Kernel: Linux 4.15.0-122-generic
    Architecture: x86-64

  5. #5
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    12,391
    Distro
    Ubuntu

    Re: repeated error messages when running apt-get

    Your signature for xu8buntu (I guessing you mean Xubuntu) usage precedes the OS by over seven years.

    It also shows the kernel which is really old.

    I would suggest running
    Code:
    sudo apt update
    sudo apt full-upgrade
    post back the results, as you have mentioned an error icon thingy showing.
    The output from the commands i posted should give us an idea of where you need help with it.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  6. #6
    Join Date
    Jun 2020
    Beans
    297

    Re: repeated error messages when running apt-get

    a big red button in the terminal? can you screenshot it and show it here ?
    xubuntu 20.04.3 LTS (focal fossa)

  7. #7
    Join Date
    Jul 2008
    Location
    The Left Coast of the USA
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: repeated error messages when running apt-get

    While the support lifetime for Ubuntu LTS releases is five years, the support lifetime of Xubuntu is 3 years, which means that Xubuntu 18.04 went End Of Life in April of 2021. Some of the repos for 18.04 may have been moved, which would certainly cause problems.
    Before doing too much more, I would suggest doing a clean installation of Xubuntu 20.04, which is the latest supported LTS release. Please back up all important data before doing this. This can, and will, go wrong.
    Please read The Forum Rules and The Forum Posting Guidelines

    A thing discovered and kept to oneself must be discovered time and again by others. A thing discovered and shared with others need be discovered only the once.
    This universe is crazy. I'm going back to my own.

  8. #8
    Join Date
    Sep 2021
    Beans
    18

    Re: repeated error messages when running apt-get

    big haah! moment when reading this:

    Graphical sudo

    You should never use normal sudo to start graphical applications as root. Using sudo with graphical apps has the potential to corrupt your environment by allowing root to take ownership of and/or change permissions on critical files that you must own. The forums frequently see panicked requests for help from users who can no longer log in after running graphical applications under sudo.
    source: https://itsfoss.com/apt-command-guide/

    the thing is I was told to type the following command in teminal:

    sudo synaptic
    by ex boyfriend very often, so I just believed it was right.

    one of you guys suggested a version conflict created because of this.

    I probably need to run the command:

    apt autoremove
    to clear all unwanted files first, then upgrade.

    for the last couple months, my system would send me an automatic pop-up window asking permission for an upgrade, I would always opt for the full upgrade, and received a failure/error message about the upgrade being impossible/incomplete.

    time to fix that. (don't mind me, I'm just talking to myself, teaching myself the process).

    I haven't logged using sudo yet, I will get a good night's sleep first.

    @deadflwr indeed my first post in this thread says: "My current laptop was bought back in 2013 and started showing signs of old age and dysfunction a few months ago."

    I corrected the typo in my signature.

    the red circle appears in the right top corner, along the logos of wifi connection, VPN, sound volume, battery etc...

    I will run the commands you suggest... but wait... shouldn't I run autoremove first? like do a real cleanup before upgrading? sounds logical to me to get rid of unwanted files first, then upgrade.

    OK, I really need some rest.

    Let's talk tomorrow guys.

    I *did* think from the start that it was old age wrecking havoc here. The automatic upgrades are not working (repeated failures) for a few months now.

    So... where do I start? Serious data backup first. I usually burn a CD. Or maybe it's time to buy an external driver to store data?

    Then upgrade.

    I'm still wondering about apt autoremove.

    Time for bed, folks. See ya.
    Last edited by howefield; October 2nd, 2021 at 10:53 PM. Reason: posts merged.
    Proud Xubuntu user since 1999
    Operating System: Ubuntu 18.04.5 LTS
    Kernel: Linux 4.15.0-122-generic
    Architecture: x86-64

  9. #9
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: repeated error messages when running apt-get

    The operating system will put notification icons in the top panel to warn us of problems. They are usually clickable and bring up a small panel revealing the problem and suggesting solutions. Red is usually a warning indicator.

    It may be that you have broken packages on your system. We do not know without seeing the warning message. Broken packages would make an upgrade to a newer release risky and this may be the reason for the message that the upgrade cannot take place. If you post back the result of the commands suggested by deadflowr then we will have more information to base our guesses on.

    Before upgrading one version to a newer version we should make sure that the existing version is fully up to date.

    Regards
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


  10. #10
    Join Date
    Sep 2021
    Beans
    18

    Re: repeated error messages when running apt-get

    Hello there,

    I just ran the commands suggested by deadflwr:

    Code:
    utilisateur@utilisateur-TravelMate-P253:~$ sudo apt update
    [sudo] Mot de passe de utilisateur : 
    Atteint :1 http://fr.archive.ubuntu.com/ubuntu focal InRelease
    Réception de :2 http://fr.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
    Réception de :3 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
    Réception de :4 http://fr.archive.ubuntu.com/ubuntu focal-proposed InRelease [267 kB]
    Réception de :5 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [29,0 kB]
    Réception de :6 http://fr.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1 256 kB]
    Réception de :7 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [62,7 kB]
    Réception de :8 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 DEP-11 Metadata [2 464 B]
    Réception de :9 http://fr.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [544 kB]
    Réception de :10 http://fr.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [284 kB]
    Réception de :11 http://fr.archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages [641 kB]
    Réception de :12 http://fr.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [864 kB]
    Réception de :13 http://fr.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [361 kB]
    Réception de :14 http://fr.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [944 B]
    Réception de :15 http://fr.archive.ubuntu.com/ubuntu focal-proposed/main i386 Packages [27,9 kB]
    Réception de :16 http://fr.archive.ubuntu.com/ubuntu focal-proposed/main amd64 Packages [114 kB]
    Réception de :17 http://fr.archive.ubuntu.com/ubuntu focal-proposed/main Translation-en [33,7 kB]
    Réception de :18 http://fr.archive.ubuntu.com/ubuntu focal-proposed/main amd64 DEP-11 Metadata [3 876 B]
    Réception de :19 http://fr.archive.ubuntu.com/ubuntu focal-proposed/main amd64 c-n-f Metadata [1 616 B]
    Réception de :20 http://fr.archive.ubuntu.com/ubuntu focal-proposed/restricted amd64 Packages [108 kB]
    Réception de :21 http://fr.archive.ubuntu.com/ubuntu focal-proposed/restricted Translation-en [16,6 kB]
    Réception de :22 http://fr.archive.ubuntu.com/ubuntu focal-proposed/multiverse amd64 DEP-11 Metadata [944 B]
    Réception de :23 http://fr.archive.ubuntu.com/ubuntu focal-proposed/universe amd64 Packages [47,4 kB]
    Réception de :24 http://fr.archive.ubuntu.com/ubuntu focal-proposed/universe Translation-en [22,4 kB]
    Réception de :25 http://fr.archive.ubuntu.com/ubuntu focal-proposed/universe amd64 DEP-11 Metadata [16,1 kB]
    Réception de :26 http://fr.archive.ubuntu.com/ubuntu focal-proposed/universe amd64 c-n-f Metadata [2 152 B]
    4 934 ko réceptionnés en 21s (232 ko/s)                                        
    Lecture des listes de paquets... Fait
    Construction de l'arbre des dépendances       
    Lecture des informations d'état... Fait
    1962 paquets peuvent être mis à jour. Exécutez « apt list --upgradable » pour les voir.
    utilisateur@utilisateur-TravelMate-P253:~$ sudo apt full-upgrade
    Lecture des listes de paquets... Fait
    Construction de l'arbre des dépendances       
    Lecture des informations d'état... Fait
    Vous pouvez lancer « apt --fix-broken install » pour corriger ces problèmes.
    Les paquets suivants contiennent des dépendances non satisfaites :
     printer-driver-postscript-hp : Dépend: hplip (>= 3.17.10+repack0-5) mais il n'est pas installé
     systemd : Est en conflit avec: systemd-shim mais 9-1bzr4ubuntu1 est installé
               Casse: systemd-shim (< 10-3~) mais 9-1bzr4ubuntu1 est installé
     systemd-sysv : Est en conflit avec: systemd-shim mais 9-1bzr4ubuntu1 est installé
    E: Dépendances non satisfaites. Essayez « apt --fix-broken install » sans paquet
       (ou indiquez une solution).
    utilisateur@utilisateur-TravelMate-P253:~$ apt --fix-broken install
    E: Impossible d'ouvrir le fichier verrou /var/lib/dpkg/lock-frontend - open (13: Permission non accordée)
    E: Impossible d'obtenir le verrou de dpkg (/var/lib/dpkg/lock-frontend). Avez-vous les droits du superutilisateur ?
    utilisateur@utilisateur-TravelMate-P253:~$
    @QIII how do I replace quote tags with code tags?
    Last edited by howefield; October 2nd, 2021 at 10:54 PM. Reason: posts merged.
    Proud Xubuntu user since 1999
    Operating System: Ubuntu 18.04.5 LTS
    Kernel: Linux 4.15.0-122-generic
    Architecture: x86-64

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •