Linux Tips

Repair ‘E: The package deal cache file is corrupted, it has the incorrect hash’ Error In Ubuntu

SEOClerks

As we speak, I attempted to replace the repository lists in my Ubuntu 18.04 LTS desktop and acquired an error that claims – E: The package deal cache file is corrupted, it has the incorrect hash. Here’s what I run from the Terminal and its output:

$ sudo apt replace

Pattern output:

Hit:1 http://it-mirrors.evowise.com/ubuntu bionic InRelease
Hit:2 http://it-mirrors.evowise.com/ubuntu bionic-updates InRelease
Hit:three http://it-mirrors.evowise.com/ubuntu bionic-backports InRelease
Hit:four http://it-mirrors.evowise.com/ubuntu bionic-security InRelease
Hit:5 http://ppa.launchpad.web/alessandro-strada/ppa/ubuntu bionic InRelease
Hit:7 http://ppa.launchpad.web/leaeasy/dde/ubuntu bionic InRelease
Hit:eight http://ppa.launchpad.web/rvm/smplayer/ubuntu bionic InRelease
Ign:6 https://dl.bintray.com/etcher/debian steady InRelease
Get:9 https://dl.bintray.com/etcher/debian steady Launch [3,674 B]
Fetched three,674 B in 3s (1,196 B/s)
Studying package deal lists… Performed
E: The package deal cache file is corrupted, it has the incorrect hash
The package cache file is corrupted, it has the wrong hash

“The package deal cache file is corrupted, it has the incorrect hash” Error In Ubuntu

After couple Google searches, I discovered a workaround to repair this error.

When you ever encountered with this error, don’t panic. Simply run the next instructions to repair it.

Earlier than working the next command, double examine you could have added “*” on the finish. It is extremely necessary so as to add * on the finish of this command. When you don’t add it, it would delete /var/lib/apt/lists/ listing and there’s no technique to carry it again. You have got been warned!

$ sudo rm -rf /var/lib/apt/lists/*

Now I attempted once more to replace the system utilizing command:

$ sudo apt replace

apt update command output in Ubuntu 18.04

This time it really works!! Hope this helps.

Recommended learn:

Thanks for stopping by!

Assist us that can assist you:

Have a Good day!!

‘,
enableHover: false,
enableTracking: true,
buttons: twitter: ,
click on: operate(api, choices)
api.simulateClick();
api.openPopup(‘twitter’);

});
$(‘#fb’).sharrre(
share:
fb: true
,
template: ”,
enableHover: false,
enableTracking: true,
buttons:structure: ‘box_count’,
click on: operate(api, choices)
api.simulateClick();
api.openPopup(‘fb’);

);
$(‘#linkedin’).sharrre();

// Scrollable sharrre bar, contributed by Erik Frye. Superior!
var $_shareContainer = $(“.sharrre-container”),
$_header = $(‘#header’),
$_postEntry = $(‘.entry’),
$window = $(window),
startSharePosition = $_shareContainer.offset(),//object
contentBottom = $_postEntry.offset().high + $_postEntry.outerHeight(),
topOfTemplate = $_header.offset().high,
topSpacing = _setTopSpacing();

//triggered on scroll
shareScroll = operate()
var scrollTop = $window.scrollTop() + topOfTemplate,
stopLocation = contentBottom – ($_shareContainer.outerHeight() + topSpacing);

$_shareContainer.css(place : ‘mounted’);

if( scrollTop > stopLocation )
$_shareContainer.css( );
$_shareContainer.offset(

);

else if (scrollTop >= $_postEntry.offset().high – topSpacing)
$_shareContainer.css( );
$_shareContainer.offset(

//high: scrollTop + topSpacing,
left: startSharePosition.left,

);
else if (scrollTop 1024 ) else
return topSpacing;

//setup occasion listeners
$window.scroll( _.throttle( operate()
if ( $window.width() > 719 ) else
$_shareContainer.css(
high:”,
left:”,
place:”
)

, 50 ) );
$window.resize( _.debounce( operate()
if ( $window.width() > 719 )
shareMove();
else
$_shareContainer.css(
high:”,
left:”,
place:”
)

, 50 ) );

});

Source link

Related Articles

Leave a Reply

Back to top button