On adding DVD as Repository error "E: Cannot find filename or size tag"
Bug #268673 reported by
Bimal J Rekhadiya
This bug report is a duplicate of:
Bug #159721: failed to install packages from backup dvd.
Edit
Remove
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
APTonCD |
New
|
Undecided
|
Unassigned |
Bug Description
I am using Ubuntu 8.04.
I have created repository DVD via AptOnCD.
Now when I am going to add it as Repository, it gives error :
E: Cannot find filename or size tag
I don't know what's the problem.
description: | updated |
To post a comment you must log in.
Hellow all,
I have solved this problem.
just rename all .DEB files and remove "1%3a", "2%3a", "3%3a", "4%3a" from filename.
STEP BY STEP:
1) First, just go to cache folder with this command :
"cd /var/cache/apt/"
2) Now CHMOD "archives" folder to make permission to rename files inside this folder.
"sudo chmod -R 777 archives/"
3) Now, do this commands one by one in terminal/konsole to rename all .DEB files :
"for FILE in $(find . -type f -name '*1%3a*'); do NEWNAME=$(echo $FILE|sed s/'1%3a'//); mv -v $FILE $NEWNAME; done"
"for FILE in $(find . -type f -name '*2%3a*'); do NEWNAME=$(echo $FILE|sed s/'2%3a'//); mv -v $FILE $NEWNAME; done"
"for FILE in $(find . -type f -name '*3%3a*'); do NEWNAME=$(echo $FILE|sed s/'3%3a'//); mv -v $FILE $NEWNAME; done"
"for FILE in $(find . -type f -name '*4%3a*'); do NEWNAME=$(echo $FILE|sed s/'4%3a'//); mv -v $FILE $NEWNAME; done"
"for FILE in $(find . -type f -name '*5%3a*'); do NEWNAME=$(echo $FILE|sed s/'5%3a'//); mv -v $FILE $NEWNAME; done"
"for FILE in $(find . -type f -name '*6%3a*'); do NEWNAME=$(echo $FILE|sed s/'6%3a'//); mv -v $FILE $NEWNAME; done"
"for FILE in $(find . -type f -name '*7%3a*'); do NEWNAME=$(echo $FILE|sed s/'7%3a'//); mv -v $FILE $NEWNAME; done"
"for FILE in $(find . -type f -name '*8%3a*'); do NEWNAME=$(echo $FILE|sed s/'8%3a'//); mv -v $FILE $NEWNAME; done"
"for FILE in $(find . -type f -name '*9%3a*'); do NEWNAME=$(echo $FILE|sed s/'9%3a'//); mv -v $FILE $NEWNAME; done"
(Help : This command will remove the "1%3a" with "2%3a" "3%3a" "4%3a"... till "9%3a" )
4) DONE...
and after doing this, create iso and see the error would gone.