LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-08-2017, 01:41 AM   #1
pizzipie
Member
 
Registered: Jun 2005
Location: Hayden, ID
Distribution: Ubuntu 20.04
Posts: 441

Rep: Reputation: 12
How to fix "corrupted?" apt-get


Is there a way to fix or re-install apt-get on my Ubuntu 14.04 OS.

Update: hangs up waiting forever for headers with lots of ign and err and hit. no gets.

Upgrade: hangs up waiting forever for headers. Says packages are "Not Authenticated".

Packages show up in Synaptic as not installed when they actually work (libreOffice Base for instance).

Thanks for help with fixing this.

R
 
Old 04-08-2017, 01:46 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
it seems my prediction from your previous thread came true faster than even i would have thought.

ON LINUX YOU DON'T JUST INSTALL STUFF NILLY-WILLY FROM THE WILD WEB!!!!!

and if you'd heeded any of the suggestions i've given you repeatedly, you'd know that by now.
 
Old 04-08-2017, 12:26 PM   #3
pizzipie
Member
 
Registered: Jun 2005
Location: Hayden, ID
Distribution: Ubuntu 20.04
Posts: 441

Original Poster
Rep: Reputation: 12
Sorry to make you mad ondoho but I didn't intend to:

Quote:
...JUST INSTALL STUFF NILLY-WILLY FROM THE WILD WEB!!!!!
I got into this mess when I used the 'update software' app that appears periodically at the bottom of the screen. The other computer now works like it should, including the apt-get app.

This computer I am writing to you from works as far as the internet access goes. But I can't use apt_get.

Quote:
and if you'd heeded any of the suggestions i've given you repeatedly, you'd know that by now.
I have backed up all my data on this computer in preparation of installing Ubuntu 16.04 LTS. By the way,
the 16.04 'live' program on my flashdrive does now accsss the internet properly.

Here is a screenshot of what is happening with apt-get.

Thanks (hopefully) for your help on this).

R
Attached Files
File Type: txt apt-get-update-output.txt (4.3 KB, 178 views)
 
Old 04-08-2017, 07:50 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
It's a bit of a long shot, but you could try, as root,

Code:
apt-get -f    <----for "fix broken packages"
See man apt-get for more.

What are the contents of your /etc/apt/sources.list file? Do you have any non-standard repos listed in it.

Be sure to surround any terminal output with "code" tags, which become available when you click the "Go Advanced" button below the compose post window.

Last edited by frankbell; 04-08-2017 at 07:53 PM.
 
Old 04-09-2017, 12:36 AM   #5
pizzipie
Member
 
Registered: Jun 2005
Location: Hayden, ID
Distribution: Ubuntu 20.04
Posts: 441

Original Poster
Rep: Reputation: 12
Thanks for reply.

Doesn't work.

R
 
Old 04-09-2017, 01:00 AM   #6
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
"Doesn't work." isn't really very helpful. Please give exact error that is given when trying it if you want to get any useful help.
 
Old 04-09-2017, 03:01 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
ok, i misread your first post and consequently overreacted.
but the gist is the same:
only half an hour before this thread started, i gave you advice, incl. 5 links that would take a considerable amount of time to read & apply to your present knowledge and state of things.

looking at your apt-get output, there's only 2 lines that give errors, and both contain "google" and "testing". Testing? smells fishy.
anyhow, remove the freaking google sources and do what was suggested a few posts up, and hope to god that google hasn't f*cked up your system.
 
Old 04-09-2017, 11:56 AM   #8
pizzipie
Member
 
Registered: Jun 2005
Location: Hayden, ID
Distribution: Ubuntu 20.04
Posts: 441

Original Poster
Rep: Reputation: 12
Sorry ondoho,

I did not see your last post #41 so did not read the information. I will do that now.

R
 
Old 04-09-2017, 04:10 PM   #9
pizzipie
Member
 
Registered: Jun 2005
Location: Hayden, ID
Distribution: Ubuntu 20.04
Posts: 441

Original Poster
Rep: Reputation: 12
[SOLVED]

I went to Troubleshooting in Repositories and as suggested took out all entries in Software & Updates/Other Software except for the Canonical Partners entries.

apt-get then worked.

I also received a script called 'fixpackage' from Ubuntu One under 'apt-get' as follows:

(Hope this can help somebody else who gets in this sort of trouble.)

Code:
#!/bin/bash
sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
sudo rm -rf /var/lib/dpkg/updates/*
sudo rm -rf /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/partial
sudo apt-get clean
sudo apt-get update
sudo dpkg --clear-avail
sudo dpkg --configure -a
sudo apt-get install -f
sudo apt-get update
sudo apt-get dist-upgrade
I ran this and everything seems back to normal.

It actually updated Firefox to v 52 without trouble.

Thank you all very much for your help in resolving this for me.

R
 
Old 04-09-2017, 10:33 PM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
glad to hear it.
google chrome, when downloaded & installed from the wild web, always adds their own sources, i consider that irresponsible: "Most important thing: You have google now. System breaks? Meh."
 
Old 04-10-2017, 06:31 AM   #11
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by pizzipie View Post
apt-get then worked.
Hi...

Glad you got it working. If you would, please mark this thread as "SOLVED" by clicking on "Thread Tools" directly above your initial post. Thanks!

Regards...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HOW TO FIX ""The requested URL /phpMyAdmin was not found on this server."" amritpalpathak Linux - Software 20 11-06-2012 01:23 AM
unique password for "update" and "synaptic" and "apt-get" SaintDanBert Linux - Security 1 09-17-2010 04:53 AM
"dpkg error in --configure" in most all (508) programs after "apt-get dist-upgrade" fluffymuffins Debian 3 08-09-2010 03:47 AM
How to fix "Group Descriptors Corrupted" Issue ? tnl Linux - Kernel 3 07-03-2009 08:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 03:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration