Home > Read Error > Read Error - Read 21 Is A Directory

Read Error - Read 21 Is A Directory

Read more... Last edited by rolnics; 03-31-2010 at 06:15 AM. You could try using fsck to make sure you don't have file system corruption. –TSJNachos117 Oct 22 '13 at 8:21 please let me know regarding fsck and what am While searching the forum I tried Code: sudo rm /var/lib/dpkg/lock and Code: sudo rm /var/lib/apt/lists/* -rf then Code: sudo apt-get update No luck, so I tried Code: [email protected]:~$ sudo rm /etc/group.lock his comment is here

If this is still reproducible running find /var/{lib,cache}/apt /var/lib/dpkg/status | xargs ls -ld inside the chroot would help (or changing the absolute paths to prepend the chroot path) because some Thanks for the help, I've learnt a far bit from this! Error!" Having an Issue With Posting ? Or checking the sanity of the files in /var/lib/apt/lists/?

Johan (oortjies) wrote on 2011-03-19: #16 On Sat, 2011-03-19 at 14:05 +0000, Tualatrix Chou wrote: > sudo rmdir /var/lib/dpkg/status sudo rmdir /var/lib/dpkg/status rmdir: failed to remove `/var/lib/dpkg/status': Not a directory This Error!" This thread (http://ubuntuforums.org/showthread.php?t=2023794) describes the root of the problem and the solution. Error! How does a jet's throttle actually work?

Ding Zhou (tualatrix) wrote on 2011-03-15: #8 Hello Johan, I recommend you to disable the source from archive.getdeb.net, then try apt-get update again. I found another post that said that apt-cache clean causes the above error and to fix it enter this:- Code: mkdir -p /var/lib/apt/lists/partial Then back finally running the last 3 commands:- I found this on two threads, so maybe I didn't do it all in the right order. Affecting: Ubuntu Tweak Filed here by: Johan When: 2011-03-14 Completed: 2011-03-24 Target Distribution Baltix BOSS Juju Charms Collection Elbuntu Guadalinex Guadalinex Edu Kiwi Linux nUbuntu PLD Linux Tilix tuXlab Ubuntu Ubuntu

Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the Distribution: Ubuntu & Debian Posts: 15 Original Poster Rep: The sanity check provided I assume was ok, it listed all the files as either text file or ASCII etc. vBulletin ©2000 - 2016, Jelsoft Enterprises Ltd. Asking when someone leaves work or home?

It gives the following error when I try to open it: E: Read error - read (21: Is a directory) E: The package lists or status file could not be parsed They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Please try these two commands: $ sudo rmdir /var/lib/dpkg/status $ sudo touch /var/lib/dpkg/status After this, try to invoke "sudo apt-get update". deb http://archive.ubuntu.com/ubuntu maverick-backports restricted multiverse universe main # #deb-src http://za.archive.ubuntu.com/ubuntu/ maverick-backports restricted multiverse universe main #Added by software-properties # ###deb-src http://za.archive.ubuntu.com/ubuntu/maverick-backports main restricted universe multiverse ## Uncomment the following two lines

How to translate "used to"? Ask Ubuntu works best with JavaScript enabled [Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index] Re: E: Read error - read (21 Is a directory) What is this Distribution: Ubuntu & Debian Posts: 15 Original Poster Rep: Thanks, I can see your point and I'll give it a go later when I'm home. Reason: Add version info.

Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. this content E: Read error - read (21: Is a directory) E: The package lists or status file could not be parsed or opened. I checked the text files as suggested and I assume that they are ok as well as they were all identifiable text, nothing strange that I saw? LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian [SOLVED] Apt-get update gets stuck while reading package list on my slug User Name Remember Me?

Error! Reason: additions radiodee1 View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by radiodee1 View Blog 03-31-2010, 06:13 AM #10 rolnics LQ Newbie Ding Zhou (tualatrix) wrote on 2011-03-23: #21 Have you tried this command? $ sudo dpkg --configure -a Your problem is just like this one: http://ubuntuforums.org/showthread.php?t=53779 Johan (oortjies) wrote on 2011-03-23: #22 http://lebloggeek.com/read-error/read-error-349-wii.html rolnics View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by rolnics 03-30-2010, 01:31 PM #9 radiodee1 Member Registered: Oct 2006 Location: New

Distribution: Ubuntu & Debian Posts: 15 Original Poster Rep: I'm still having issues with apt updating.So over the weekend I tried updating again, but this time I had a thought and Thanks in advance rolnics View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by rolnics 03-14-2010, 08:27 PM #2 evo2 LQ Guru This is no Ubuntu Tweak issue.

I'm just using the main US server as I found I couldn't get anything with any local mirrors, but I'll check them out again.

rolnics View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by rolnics Thread Tools Show Printable Version Email this Page Search this Thread Advanced Are there any heuristic-free NP complete problems? Subscribing... Or checking the sanity of the files in /var/lib/apt/lists/?

more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science Reply to: debian-user@lists.debian.org Fiodar Bandarenka (on-list) Fiodar Bandarenka (off-list) References: E: Read error - read (21 Is a directory) What is this From: Guy Durand Prev by Date: Re: anti-virus You are currently viewing LQ as a guest. check over here Ask Ubuntu works best with JavaScript enabled UbuntuCommunityAsk!DeveloperDesignDiscourseHardwareInsightsJujuShopMore ›AppsHelpForumLaunchpadMAASCanonical current community chat Ask Ubuntu Ask Ubuntu Meta your communities Sign up or log in to customize your list.

Which lane to enter on this roundabout? (UK) Would it be ok to eat rice using spoon in front of Westerners? Subscribing... Austin Rodriguez (jeanaustinr) wrote on 2011-03-15: #7 Hi Johan, there seems to be a problem with the connection. Attached Thumbnails rolnics View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by rolnics 04-05-2010, 07:59 AM #12 rolnics LQ Newbie

rolnics View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by rolnics 03-29-2010, 04:53 AM #7 evo2 LQ Guru Registered: Jan 2009 Location: Why is Pascal's Triangle called a Triangle? Having a problem logging in? Austin Rodriguez (jeanaustinr) wrote on 2011-03-16: #11 Johan, can you post here the result that you get when you type in the Terminal 'cat /etc/apt/sources.list'.

They have the same directories. ======================================== This is the same python commands run on the trusty host/trusty chroot (ie, how the precise output should look): >>> import apt_pkg >>> import apt Please visit this page to clear all LQ-related cookies. Tango Icons © Tango Desktop Project. A long overdue riddle Why was Toph put in a wooden cell in the Fire Nation city in Season 3 Episode 7?

When to use "ĉu" instead of "se"? Its just strange how its all worked before and has now suddenly stopped?! Quote: Originally Posted by radiodee1 maybe the line should read: Code: deb http://http.uk.debian.org/debian/ lenny main I tried the above and got the error marked 2. Error!

Distribution: Ubuntu & Debian Posts: 15 Original Poster Rep: Quote: Originally Posted by evo2 It could be a corrupt file in /var/lib/apt/lists, or it could be a corrupt Packages file on After running apt-get update this is what I get "W: Failed to fetch http://archive.getdeb.net/ubuntu/dists/maverick-getdeb/apps/binary-amd64/Packages.gz 504 Gateway Time-out E: Some index files failed to download, they have been ignored, or old ones For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration.