maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [SOLVED] Another Broken Symlink (https://talk.maemo.org/showthread.php?t=75143)

K9999 2011-07-22 07:47

[SOLVED] Another Broken Symlink
 
so if this infection reaches to the /var/cache/apt folder, is there anything else I can do other than reflashing my N900?

I just bought this phone after I lost my previous N900 about a month ago. so I restored both rootfs and optfs backup and that's how it happened.

K9999 2011-07-22 07:51

Re: Another Broken Symlink
 
the problem now, both appManager and FapMan are not working because of this issue..

K9999 2011-07-23 06:20

Re: Another Broken Symlink
 
is there anyway to fix a broken symlink file?

pusak gaoq 2011-07-23 06:31

Re: Another Broken Symlink
 
can you give us the screenshot for the broken symlink??

K9999 2011-07-23 07:34

Re: Another Broken Symlink
 
hey mate :)

the fapMan shows this 1st,

http://i.imgur.com/fDeJ0.png

http://i.imgur.com/XKT0z.png


when I checked the apt file using fileBox this is how it was shown,

http://i.imgur.com/7nAWG.png

can't open of course. and terminal shows there's no directory with this name cuz it's broken

tuxsavvy 2011-07-23 08:01

Re: Another Broken Symlink
 
Actually it would be useful if you posted the output of ls -al /var/cache/apt . It would also help if you could tell us which guide you are following that led you to these errors. The default maemo setup does not do this and I am sure you are following some messed up guide to have issues like this thus accusing it as 'infection'.

K9999 2011-07-23 08:07

Re: Another Broken Symlink
 
http://i.imgur.com/9vSSH.png


Yes true, when I flash it, it goes back to normal. when I restore my previous backup using BackupMenu I get this broken link.
I can ignore the restore step but I dun wanna start everything from the scratch.

pusak gaoq 2011-07-23 08:18

Re: Another Broken Symlink
 
try using my apt files.....
first delete the broken symlink...then create a folder called apt then copy & paste both of this files on the apt folder.....
i don't know it going to works or not but atleast you try ok mate....

here is the files....
http://www.multiupload.com/HCPZ87M5ZP

K9999 2011-07-23 08:27

Re: Another Broken Symlink
 
aight, will give it a shot right now,

K9999 2011-07-23 08:50

Re: Another Broken Symlink
 
mate can u open your /var/cache/apt file and tell me what's inside other than the 2 files? so far the error disappeared but when I try to download or remove applications it says

could not open lock file /var/cache/apt/archives/lock - open(2 No such file or directory)
Unable to lock the download directory

pusak gaoq 2011-07-23 08:55

Re: Another Broken Symlink
 
1 Attachment(s)
Quote:

Originally Posted by K9999 (Post 1056664)
mate can u open your /var/cache/apt file and tell me what's inside other than the 2 files? so far the error disappeared but when I try to download or remove applications it says

could not open lock file /var/cache/apt/archives/lock - open(2 No such file or directory)
Unable to lock the download directory

opppsss :D...i thought this folder is not needed so i didn't include on the download files....
so here is the rest of the files....copy n paste it on apt folder....;)

tuxsavvy 2011-07-23 08:55

Re: Another Broken Symlink
 
Quote:

Originally Posted by K9999 (Post 1056664)
mate can u open your /var/cache/apt file and tell me what's inside other than the 2 files? so far the error disappeared but when I try to download or remove applications it says

could not open lock file /var/cache/apt/archives/lock - open(2 No such file or directory)
Unable to lock the download directory

Just do: sudo touch /var/cache/apt/archives/lock

pusak gaoq 2011-07-23 09:02

Re: Another Broken Symlink
 
Quote:

Originally Posted by K9999 (Post 1056667)
i tried creating "archives" file inside apt but still no use..

http://i.imgur.com/Yf6jM.png

it was worth trying though, thanx mate

have you try copy & paste mine archives.zip just now mate??

K9999 2011-07-23 09:11

Re: Another Broken Symlink
 
Quote:

Originally Posted by pusak gaoq (Post 1056668)
have you try copy & paste mine archives.zip just now mate??

so sorry was an early reply, didn't see ur both posts :p
so far it's working now, will try to download now an application and see.. just a min

K9999 2011-07-23 09:18

Re: Another Broken Symlink
 
Quote:

Originally Posted by pusak gaoq (Post 1056665)
opppsss :D...i thought this folder is not needed so i didn't include on the download files....
so here is the rest of the files....copy n paste it on apt folder....;)


Tadaaaaaaaaaa it WORKED!!! thank u so much mate, :D


Quote:

Originally Posted by tuxsavvy (Post 1056666)
Just do: sudo touch /var/cache/apt/archives/lock

This also worked, I just had to create a folder named "partial" cuz I saw it in Pusak gaoq archive uploaded folder. :)


Thanx a LOT guys, now I don't have to start from the scratch. I feel like it's my previous phone that I lost :)

tuxsavvy 2011-07-23 09:31

Re: [SOLVED] Another Broken Symlink
 
You might also want to consider making a new backup now with that old one being useless.

K9999 2011-07-23 09:33

Re: [SOLVED] Another Broken Symlink
 
True, so I don't have to go through this again. Thanx mate :)

K9999 2011-07-23 09:34

Re: [SOLVED] Another Broken Symlink
 
for anyone else having this problem, just download the 2 apt files as suggested by Pusak gaoq. delete the broken apt and create another one and paste the 2 downloaded files in it.


Then
download this archive file which also uploaded by Pusak gaoq :) and paste it in the apt file.

or
after pasting the 2 files in the apt,
create file named "archives" in the apt file, and another folder named "partial" in the archives file. then go to the terminal and write the code as suggested by tuxsavvy :)

sudo touch /var/cache/apt/archives/lock


All times are GMT. The time now is 18:12.

vBulletin® Version 3.8.8