Thread: help with apt-get
-
04-12-2011, 03:05 AM #1
help with apt-get
trying to use apt-get to fix my sources. i updated my iphone 4 and had to rejailbreak it and i used pkgbackup to restore my old settings. its added the same sources again on cydia and now cydia keeps refreshing and telling me i should use apt-get update to fix the problem.
thing is when i use apt-get update in mobileterminal it tells me Could Not Open Lock File... I just want to get rid of all the duplicate sources and its not letting me when i log into cydia or thru mobileterminal.. please help :-(
-
04-15-2011, 06:53 PM #2
Type 'su' without the quotes into mobileterminal and enter your root password (default - alpine). Then try apt-get update.
-
04-15-2011, 06:57 PM #3
i tried that but it still says that i have duplicate sources :-( any idea as to how i can delete cydia and reintall a completely new version and i can reinstall my own sources? I know how to ssh from my mac with cyber duck.
-
04-15-2011, 07:33 PM #4iPhone? More like MyPhone
- Join Date
- Jul 2007
- Location
- Outermatrix
- Posts
- 115
- Thanks
- 20
- Thanked 15 Times in 10 Posts
If you are having problems with multiple sources, try this to re-add original sources, and then re-add you're own sources manually if not via the last step in pkgbackup:
If you don't have iFile, download it from Cydia.
Open iFile.
Navigate to /private/etc/apt/sources.list.d
Delete the file "cydia.list" (click EDIT on the top right, select the file, and click the waste basket).
Navigate to /var/lib/apt/lists
Delete all of the files in this folder except the one called "lock"
Navigate to /var/lib/apt/lists/partial
Delete all of the files in this folder
Navigate to /var/lib/cydia
Delete the file "metadata.plist"
Close iFile and restart Cydia. You should be at the first screen you saw when you first started Cydia: What kind of user are you? Make your selection and Cydia will re-generate the default sources.
Open pkgbackup, select restore, select sources, untick the default sources you just got back in cydia as you don't want multiples.
Good luck.Last edited by bigorangekitty; 04-15-2011 at 07:47 PM.
-
04-16-2011, 01:10 AM #5
Thank you so much!!!! This is exactly what i needed... I did everything you said and it worked like a charm.. I've been searching everywhere online and this worked perfectly. Thanks a lot. I really appreciate you taking the time to explain this to me. Cydia now works perfectly!!



LinkBack URL
About LinkBacks
Reply With Quote
