Debtap - A script to convert .deb packages to Arch Linux packages
I wrote this script in my free time to help people who, for any reason, want to convert a .deb to an Arch Linux package. It works in a similar way with alien (which converts .deb packages to .rpm packages and vice versa), but, unlike alien, it is focused on accuracy of conversion, trying to translate Debian/Ubuntu packages names to the correct Arch Linux packages names and store them in the dependencies fields of the .PKGINFO metadata in the final package. In other words, it won't only create an Arch package with the data of the original .deb package, but also it will try to create a valid and as accurate as possible .PKGINFO metadata file in the converted package. It uses pkgfile and pacman utilities to achieve this accuracy. The final package can be installed like any local Arch Linux package. Debtap is now available on AUR!
FAQ
Q: What "debtap" stands for?
A: DEB To Arch (Linux) Package
Q: Isn't better to download an official package or write a PKGBUILD in case I need to compile a package or convert a .deb package to an Arch Linux package?
A: Sure it is, and I truely encourage you to do so. Debtap was written to create packages that either cannot be compiled (closed source packages) or cannot be built from AUR for various reasons (error during compiling or unavailable files), as a quick 'n' dirty solution and an extra option for creating Arch Linux packages for Arch Linux users.
Q: So debtap will help me only in case I need to convert specific .deb packages to Arch Linux packages?
A: No. In case you need to write a new PKGBUILD for a package that already exists in the Debian/Ubuntu distributions, by converting its .deb package to Arch package with debtap, thanks to the packages names translator function inside the script, it can help you determine which dependencies are needed for the package you write the PKGBUILD for and complete the necessary fields.
Q: What are the minimum requirements to run this script?
A: You need to have installed these dependencies: bash, binutils (provides ar utility for extracting .deb package), pkgfile, and fakeroot. You must run at least once (preferably recently) "debtap -u" to create/update pkgfile and debtap database (you do this with root privileges).
Q: Debtap needs a lot of time to convert a package. So, why this is happening?
A: Like I said, debtap is focused on accuracy. It won't just unpack a .deb package and then repackage its data to an Arch Linux package, ignoring metadata. Depending on the speed of your processor and the package itself, conversion can take from a few seconds to several minutes.
Q: During conversion I get several warning messages, why?
A: Debtap cannot be 100% accurate for several reasons, the main reason for this is the complexity of packages names. If you want to check the freshly generated .PKGINFO and .INSTALL (this is optional file) metadata files or even fix the untranslated packages names inside .PKGINFO, debtap offers you the option to edit these files before compressing the final package.
Q: How do I use debtap?
A: The syntax is quite simple actually: debtap [option] package_filename
For example: debtap world-of-goo-demo_1.0_i386.deb
Any recommendations or questions for debtap are welcomed!
Last edited by helix (2015-05-21 22:54:17)
Hi helix. I've had trouble trying to use your script with ubuntu software from The Open University
debtap OpenUniversity-ubuntu-0.1.3.20130104.deb
==> Extracting package data...
==> Fixing possible directories structure differencies...
==> Generating .PKGINFO file...
debtap OpenUniversity-ubuntu-0.1.3.20130104.deb
==> Extracting package data...
==> Fixing possible directories structure differencies...
==> Generating .PKGINFO file...
:: Enter Packager name:
NewPepper2013
:: Enter package license (you can enter multiple licenses comma seperated):
closed
:: If you want to edit .PKGINFO file, press (1) For vi (2) For nano (3) For a cu stom editor or any other key to continue:
==> Generating .MTREE file...
==> Creating final package...
xz: unrecognized option '--1-any.pkg.tar'
xz: Try `xz --help' for more information.
mv: cannot stat â*.xzâ: No such file or directory
==> Removing leftover files...
==> Package successfully created!
The software is called NewPepper 2013 but i've not been able to find it online except on the ou website.
Similar Messages
-
Remakepkg - Convert installed packages back into installable archives
This is a script to convert a package that has already been installed, back into an installable package file. It takes modified files (as reported by pacman -Qqkk) into account, and will regenerate the mtree entries corresponding to those files, if the original package had an mtree.
I've been searching for an utility like this, and didn't find it. If I am entirely mistaken and such a thing does already exist, please point me in its direction. Thank you!
Why would I possibly want this?
The creation of this script was inspired by 2 incidents.
1. wine-silverlight takes about 2 hours to build from AUR on my desktop computer. The package file was automatically deleted after installation. And then I realised, my netbook has the same architecture, but the package file was already gone, so I had to build it again.
2. While troubleshooting an issue with font rendering, I had to flip between freetype2-infinality and freetype2 a few times to isolate the problem. It would have been nice if I only had to build freetype2-infinality from AUR once.
Limitations
This script is unable to guess information that is not present pacman's local database. For example, the .PKGINFO file produced by the script will not have any makepkgopt entries.
I also do not have a perfect understanding of pacman's package format, and you may encounter errors resulting from omissions or misunderstandings on my part, or changes to pacman.
Well, that's everything. I hope this helps someone!
AUR: https://aur.archlinux.org/packages/remakepkg/
Github: https://github.com/deciare/remakepkg
Last edited by Deciare (2014-03-19 00:14:43)slithery wrote:
Deciare wrote:
Why would I possibly want this?
The creation of this script was inspired by 2 incidents.
1. wine-silverlight takes about 2 hours to build from AUR on my desktop computer. The package file was automatically deleted after installation. And then I realised, my netbook has the same architecture, but the package file was already gone, so I had to build it again.
2. While troubleshooting an issue with font rendering, I had to flip between freetype2-infinality and freetype2 a few times to isolate the problem. It would have been nice if I only had to build freetype2-infinality from AUR once
I just edit /etc/makepkg.conf and set the PKGDEST variable.
This way I always have a copy of my built packages in case I need to reinstall or use on a different machine.
Only issue with that is that the config files will be default. By using remakepkg or bacman it takes the existing config file and rolls it into the package.
**EDIT** Well actually, thats because I elect to have pacman ditch the config files whenever I remove something. I usually remove something with -Rcsn options a pay close attention to what it says it will remove..
Last edited by GSF1200S (2014-03-19 20:50:17) -
Using deb packages after converting with deb2targz - how to?
I've been trying to install "insight", an IDE for assembly language, which is available in the AUR, but there are problems with the AUR package (mainly with the source from Redhat and my version of gcc, I believe). So, I thought a DEB package would be easier, and after googling about it, I found that I needed to use deb2targz to convert the DEB for use in Arch. But I couldn't find any instructions on how to use deb2targz.
I deb2targz'd the deb file in my home directory and then did "tar xzvf insight_6.8.1-0ubuntu0~sevenmachines1_i386".
I thought this would create a subdirectory with a PKGBUILD, but that was newbish wishful thinking.
The tar command created a ~/usr directory with subdirectories: ~/usr/bin, ~/usr/lib, and ~/usr/share.
Should I now try to make a PKGBUILD from these directories somehow? Do I compress them to xz and use that with pacman -U ? Or am I supposed to simply copy the files/subdirectories to the corresponding directories in the root directory (ie, ~/usr/bin to /usr/bin)?
Thanks in advance for any assistance.Scimmia wrote:
forget deb2targz, it's pretty much useless for things like this.
there are a number of examples on this forum of making PKDBUILDs for deb files, but it's not as fool proof as it sounds. You have to pay attention to what version of each lib the binary is linked against, as well as the actual name of the lib if they rename it. It's almost universally better to build from source if it's available.
A quick look at the mailing list shows that the author suggests building from CVS right now instead of using the release which was in 2009. I'm doing a quick test right now to see how that goes.
Thanks for looking into it. I was using the *-1a version and the source that commentator "sl0t" suggested in his PKGBUILD - except I had problems with the parentheses and apostrophes on the install= line, so I used that line without paren. and apost's.
# Contributor: Philipp Robbel <[email protected]> (update by sl0t)
pkgname=insight
pkgver=6.8
pkgrel=1
pkgdesc="A graphical interface to the GNU debugger"
arch=('i686')
url="http://sourceware.org/insight/"
license=('GPL')
depends=('libx11')
install=('insight.install')
source=(ftp://sourceware.org/pub/insight/releases/$pkgname-6.8-1.tar.bz2 insight.profile)
md5sums=('4ee9824c1e8d6108d886c6c09b24f0ac' '16dddd252c8d64a1f4757626ee895b03')
build() {
cd $startdir/src/$pkgname-6.8-1
./configure --prefix=/opt/insight --mandir=/opt/insight/share/man --infodir=/opt/insight/share/info
make || return 1
make prefix=$startdir/pkg/opt/insight mandir=$startdir/pkg/opt/insight/share/man infodir=$startdir/pkg/opt/insight/share/info install || return 1
rm -rf $startdir/pkg/opt/insight/share/info
# environment variables
mkdir -p $startdir/pkg/etc/profile.d
install -m755 $startdir/${pkgname}.profile $startdir/pkg/etc/profile.d/${pkgname}.sh -
[SOLVED] Error with Wickr deb package
Hi people, I was trying to running wickr on Arch Linux. (I am under Gnome), I used debtap utility, attempted to convert wickr deb package to work with pacman but failed with this dependency:
warning: cannot resolve "libavutil52|libavutil54", a dependency of "wickr"
:: The following package cannot be upgraded due to unresolvable dependencies:
error: failed to prepare transaction (could not satisfy dependencies)
:: wickr: requires libavutil52|libavutil54
I am pretty sure I have already got the libavutil-52 installed and does not help. I even managed to convert libavutil54 from debian and installed but still no progress.
Any help? thx in advance.
Last edited by sakuya16 (2015-05-06 11:06:50)Hi sakuya16,
the | character does not work as logical or inside the PKGBUILD, depends is an array of strings separated by withe spaces. Also you must specify only one version of libavutil and its name is libavutil-52 and not libavutil52. For more information read the wiki https://wiki.archlinux.org/index.php/PKGBUILD#depends
--edit:
Yeah, tomk is right, try to see if it works with the current libavutil.so.54 first.
Last edited by mauritiusdadd (2015-05-06 10:42:02) -
Slackware TGZ to Arch Linux Package Converter
I have two programs that interest me (LilyPond and Battle for Wesnoth) that don't have Arch Linux packages and compiling them would involve hunting everywhere for obscure dependencies (LilyPond in particular) so I just downloaded the Slackware packages, inspected them and found that by unzipping them onto the root folder (as superuser) and running the install script (if there is one) I can get them to run with minimal fuss.
Has the idea of making a Slackware to Arch package converter been brought up before? Is there any problems with this? (Slackware is i386-optimised if I remember correctly, but I think it's still worth it since there is more Slackware packages than Arch Linux ones out there.)i3839 wrote:Flames?? Where? You sure you didn't misread something?
Probably.
Here's what I read, admitting that it doesn't seem quite as bad the second time around...:
Oh? All I was hearing is that Arch already has enough packages, and that the devs are overloaded and almost down.
"you don't know which way is up, you contradict yourself while continuing to ignore the problems and aren't fixing anything".
Also getting custom packages into Arch's official repository seems a bit hard currently, not to mention that it's totally unclear how to do that (drop it in incomming and wait a year? Lotto?).
"The system isn't working and you haven't done anything to try to fix it. I haven't read or noticed any of the threads illustrating that this topic has been argued to death and isn't going unnoticed"
Maintaining packages is the most work, and every distro maintains the same packages over and over again. Tell me why to not use good, working packages from another sane distro?
"The other distros are better."
(Personally, I don't care if anybody likes another distro better, but if so, use it instead, don't talk about it)
Changing GCC often gives the same problem as updating to new major libraries. Simply leave the old GCC libs or make a seperate package for them. Currently it's rather impossible in Arch to install new packages with an outdated system, if that's solved then it's also easy to use Slackware packages.
"The Arch philosophy of keeping packages stable but up to date is just plain wrong. I don't bother to pacman -Syu before I mention problems."
Of course if would be best if there was a nice, good binary package standard that works on all distros, so that the application makers can make and maintain the packages themselves, but that's utopia (paths are too often hardcoded for instance).
"hey, I do have some good ideas".
It isn't a matter of being able to do something or not, it's a matter of convenience. All programs should be relative easy to compile from source, but that doesn't mean that everyone should compile all programs themselves.
"There aren't enough Arch binaries to go around"
OR:
"ABS sucks"
OR:
"Hold my hand, I can't compile."
OR:
"I use Arch cause I don't like Gentoo". :-D
Yeah, some of that is a little (or quite, or even very) harsh, you can blame it on me rather than taking it to heart.
As for the slackware packages issue, I'm personally not writing a script to convert them; I've never used slackware in my life. The idea has merit, but I get tired of people discussing pros and cons and not doing anything. I think that's because I'm about as bad as anyone on that front, possibly worse.
Dusty -
Installing a .deb package in Arch
Maybe I'm becoming something uncool (xD), but I not could find a way to install/convert a package from a .deb to a pacman package. The thing is that we are talking about cedega an it is a .deb, then obviosly I don't have the code to make a PKGBUILD by myself (well, we have the CVS but I don't like it), so if anybody helps me I will be really grateful.
Thank you so muchaur/cedega 6.0.2-1
A program that lets you play Windows games in Linux
aur/cedega-cvs 20060907-1
Cedega CVS -
Need to convert DTS packages to SQL Server 2012 environment.
Hi Friends,
As Part of the Project Requirement,we need to convert DTS packages to SQL Server 2012 environment.
Please sugest me best approach.
ThanksBest approach is to re-design the packages in SSIS 2012 directy if it is feasible. Because most of the DTS feaures are discontinued and also you will have to clean up all errors that you are going to get after migration.
Discontinued Integration Services Functionality in SQL Server 2012
Otherwise you need to migrate it first to 2008R2 and then 2012 version.
Below ones would be helpful for you:
Migrate DTS packages to SSIS (SSIS2008R2)
Support of DTS packages in 2008 R2
Known DTS Package Migration Issues
Cheers,
Vaibhav Chaudhari -
Getting error message when i am trying to update the excel file using script task in ssis package
Hi Guys,
I am getting error message when I am trying to update the excel. Please find the error messages as below
Error at Update File [Update File]: Failed to compiled scripts contained in the package. Open the package in SSIS Designer and resolve the compilation errors.
Error at Update File [Update File]: BC30002 - Type 'Microsoft.Office.Interop.Excel.Application' is not defined., ScriptMain.vb, 32, 32
Error at Update File [Update File]: BC30002 - Type 'Microsoft.Office.Interop.Excel.Workbook' is not defined., ScriptMain.vb, 33, 25
Error at Update File [Update File]: The binary code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully.
Warning at Update File [Update File]: Found SQL Server Integration Services 2008 Script Task "ST_050fcae972904039b4f0fe59b7528ece" that requires migration!
and the code that I am using is
Dell - Internal Use - Confidential
' Microsoft SQL Server Integration Services Script Task
' Write scripts using Microsoft Visual Basic
' The ScriptMain class is the entry point of the Script Task.
Imports System
Imports System.Data
Imports System.Math
Imports Microsoft.SqlServer.Dts.Runtime
Imports Microsoft.Office.Interop.Excel
<System.AddIn.AddIn("ScriptMain", Version:="1.0", Publisher:="",
Description:="")> _
<System.CLSCompliantAttribute(False)> _
Partial
Public Class ScriptMain
Inherits Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
Enum ScriptResults
Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success
Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
End Enum
Public Sub Main()
Dts.TaskResult = ScriptResults.Success
'Dim proc As System.Diagnostics.Process
'kill all instances of excel
'For Each proc In System.Diagnostics.Process.GetProcessesByName("EXCEL")
' proc.Kill()
'Next
Dim excelnacomm As
New Microsoft.Office.Interop.Excel.Application
Dim wbnacomm As Microsoft.Office.Interop.Excel.Workbook
wbnacomm = excelnacomm.Workbooks.Open("http://test.xlsx")(renamed
the excel)
wbnacomm.RefreshAll()
wbnacomm.Save()
wbnacomm.Close()
excelnacomm.Quit()
Runtime.InteropServices.Marshal.ReleaseComObject(excelnacomm)
End Sub
End
Class
Please let me know what could be the reason
Smash126Download:
Microsoft Office 2010: Primary Interop Assemblies Redistributable
How to: Add or Remove References By Using the Add Reference Dialog Box / How to:
Add and Remove References in Visual Studio (C#)
Olaf Helper
[ Blog] [ Xing] [ MVP] -
Pacleanup: A script to clean up package bloat
Hi all!
Here is my first real contribution to the Arch community! w00t!
Do you install packages just to try them out and never end up using them? Do you forget about them and do they just add to the bloat on your system? Do you want to review the packages installed on your system and remove the packages you don't need/want anymore? I do, so I wrote a small script to do just that.
There may already be a better way to do this that I don't know of. If there is, please do let me know.
Basically, the script goes through the packages marked as 'explicitly installed' and queries the user whether they want to keep or remove the packages. It does some basic dependency checking that will not remove a package if it is required by a package you want to keep. It stores a list of packages that you have previously selected to keep, so that you don't have to select them every time you run the script. An option to review the list of packages to remove is provided. It also, removes unused dependencies.
After the script has done its stuff, pacman will display packages to be removed and it will prompt you to accept the changes to be made. So it is pretty safe. You won't end up removing critical packages unless you explicitly allow pacman to do so.
Suggestions and corrections are most welcome!
Here it is!
#!/bin/bash
#--VARIABLES--
WDIR="$HOME/.pacleanup"
EXPLINST="$WDIR/explicitly-installed"
WRKLIST="$WDIR/working-list"
DEPLIST="$WDIR/dep-list"
KEEPS="$WDIR/keep-pkgs"
REMS="$WDIR/rm-pkgs"
SAFEREMS="$WDIR/rm-safe"
TMPREMS="$SAFEREMS.tmp"
TMPEXPL="$EXPLINST.tmp"
TMPDEPLIST="$DEPLIST.tmp"
#/VARIABLES
set -u
#--FUNCTIONS--
#SYSTEM CHECKS
checks () {
echo "==> Running checks..."
#Check user
guy=`whoami`
if [ "$guy" = "root" ]
then
echo
echo "==> Please run as normal user with sudo privileges"
exit 1
fi
#Check working directory
if [ -d $WDIR ]
then
echo
echo "==> $WDIR exists"
else
mkdir -p $WDIR
echo
echo "==> $WDIR created"
fi
#Check working files
fileCheck $EXPLINST
fileCheck $REMS
fileCheck $SAFEREMS
fileCheck $WRKLIST
fileCheck $DEPLIST
#Get list of explicitly installed packages
getExplInst
#Process existing list of packages to keep or ceate new file
if [ -f $KEEPS ]
then
keepCheck=`cat $KEEPS`
if [ -n "$keepCheck" ]
then
echo
echo "==> Old $KEEPS detected!"
echo "==> You can use this list to automatically keep these packages"
echo "==> Do you want to keep your old list? [y/n]"
read ans
case $ans in
y)
touch $KEEPS
cp $EXPLINST $TMPEXPL
for keeper in `cat $KEEPS`
do
cat $TMPEXPL | sed -e "/^$keeper$/d" > $WRKLIST
rm $TMPEXPL
cp $WRKLIST $TMPEXPL
done
rm $TMPEXPL
n)
rm $KEEPS
touch $KEEPS
cp $EXPLINST $WRKLIST
echo "==> You must choose y or n"
echo "==> Exiting."
exit 1
esac
else
fileCheck $KEEPS
cp $EXPLINST $WRKLIST
fi
else
fileCheck $KEEPS
cp $EXPLINST $WRKLIST
fi
echo
#WORKING FILE CREATOR
fileCheck () {
if [ -f $1 ]
then
rm $1
fi
touch $1
#EXPLICITY INSTALLED LIST GENERATOR
getExplInst () {
pacman -Qe | cut -d " " -f1 > $EXPLINST
#QUERY PACKAGE
queryKeep () {
for pkg in `cat $WRKLIST`
do
echo -e "==> Do you want to keep \033[1m$pkg\033[0m [y/n/i/q/d]"
read action
queryAction $action
echo
done
#PROCESS QUERY RESPONSE
queryAction () {
case $action in
y)
echo "==> Keeping $pkg"
echo $pkg >> $KEEPS
n)
echo "==> Removing $pkg"
echo $pkg >> $REMS
i)
echo "==> $1 Info"
pacman -Qi $pkg
echo -e "==> Do you want to keep \033[1m$pkg\033[0m [y/n/i/q/d]"
read action
queryAction $action
q)
echo "==> Exiting"
exit 0
d)
echo "==> Done with selection"
break
*|"")
echo "==> y=yes n=no i=info q=quit d=done with selection"
echo "==> Choose y/n/i/q/d"
read action
queryAction $action
esac
#CHECK FOR DEPENDENCIES
depCheck () {
echo
echo "==> Checking dependencies..."
cp $REMS $SAFEREMS
cp $EXPLINST $DEPLIST
for rmpkg in `cat $SAFEREMS`
do
cat $DEPLIST | sed -e "/^$rmpkg$/d" > $TMPDEPLIST
rm $DEPLIST
mv $TMPDEPLIST $DEPLIST
done
for pkg in `cat $DEPLIST`
do
deps=`cat /var/lib/pacman/local/$pkg-*/depends | sed '0,/%OPTDEPENDS%/!d' | grep -v "^%\|^$" | sed ':a;N;$!ba;s/\n/ /g'`
for dirtydep in $deps
do
cleandep=`echo $dirtydep | cut -d "<" -f1 | cut -d ">" -f1 | cut -d "=" -f1`
cat $SAFEREMS | sed -e "/^$cleandep$/d" > $TMPREMS
rm $SAFEREMS
mv $TMPREMS $SAFEREMS
done
done
echo "==> Dependency check completed."
#REVIEW PACKAGES TO REMOVE
review () {
queue=`cat $SAFEREMS`
if [ -z "$queue" ]
then
echo "==> No packages selected for removal"
echo "==> Exiting"
else
echo
echo "==> The following packages are selected for removal:"
echo "$queue"
echo "==> Do you wish to modify this selection? [y/n/q]"
read review
case $review in
y)
rm $WRKLIST
rm $REMS
mv $SAFEREMS $WRKLIST
queryKeep
depCheck
review
n)
echo "==> Proceeding to remove packages and orphans..."
sudo pacman -Rsn `cat $SAFEREMS`
q)
echo "==> Exiting."
echo "==> You must choose y/n/q"
review
esac
fi
#CLEAN UP WORKING FILES
cleanUp () {
rm $EXPLINST
rm $REMS
rm $SAFEREMS
rm $WRKLIST
rm $DEPLIST
#/FUNCTIONS
#--RUN--
set -e
checks
queryKeep
depCheck
review
cleanUp
#/RUN
Changelog:
25 March 2010
- Changed dependency checking to use /var/lib/pacman/local/*/depends instead of pacman
Last edited by drsjlazar (2010-03-25 20:43:03)itsbrad212 wrote:well done sir. You should add an option to skip to the end though
Thank you.
If you mean to skip going through the selection of whether to keep or remove packages, there is an option. Inputting 'd' (for 'Done' ) will skip the rest of the selection process and go right to dependency checking.
Did you mean something else? -
Hi All. Could anyone resolve my issue.
I was created a package with an Script task written in VB.Net.
The Package was executing Successfully in BIDS.
But when i tried to exceute the same using Sql server Agent Job, Its getting Failed with the below error message
"Executed as user: Admin. Microsoft (R) SQL Server Execute Package Utility Version 11.0.2100.60 for 32-bit Copyright (C) Microsoft Corporation. All rights reserved. Started: 5:12:27 PM Error: 2013-03-13 17:12:32.33
Code: 0x00000005 Source: Checking Alcon Files Checking Alcon Files Description: Failed to compiled scripts contained in the package. Open the package in SSIS Designer and resolve the compilation errors.
End Error Error: 2013-03-13 17:12:32.33 Code: 0x00000005 Source: Checking Alcon Files Checking Alcon Files Description: BC30179 - enum 'ScriptResults' and enum 'ScriptResults' conflict
in class 'ScriptMain'., ScriptMain.vb, 156, 22 End Error Error: 2013-03-13 17:12:32.36 Code: 0x00000005 Source: Checking Alcon Files Checking Alcon Files Description: The binary
code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully. End Error Error: 2013-03-13 17:12:34.28 Code: 0x00000005
Source: Formating Excel Sheet Formating Excel Sheet Description: Failed to compiled scripts contained in the package. Open the package in SSIS Designer and resolve the compilation errors. End Error Error: 2013-03-13 17:12:34.28
Code: 0x00000005 Source: Formating Excel Sheet Formating Excel Sheet Description: BC30179 - enum 'ScriptResults' and enum 'ScriptResults' conflict in class 'ScriptMain'., ScriptMain.vb, 191, 22 End Error
Error: 2013-03-13 17:12:34.29 Code: 0x00000005 Source: Formating Excel Sheet Formating Excel Sheet Description: The binary code for the script is not found. Please open the script in the
designer by clicking Edit Script button and make sure it builds successfully. End Error Error: 2013-03-13 17:12:51.56 Code: 0x00000004 Source: Checking Alcon Files Description:
The binary code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully. End Error Error: 2013-03-13 17:12:51.56 Code: 0xC0024107
Source: Checking Alcon Files Description: There were errors during task validation. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 5:12:27 PM Finished: 5:12:51 PM
Elapsed: 24.336 seconds. The package execution failed. The step failed."
Please give some solution to this.
Thanks in advanceAre you editing this job in SQL 2012? Is it wrapping your paths in \"? Like for example does the command line tab on the step look like this:
/FILE "\"D:\yourPathGoesHere.dtsx\"" /CONFIGFILE "\"D:\yourPathGoesHere.dtsConfig\"" /CHECKPOINTING OFF /REPORTING E
That's the problem I had, and I resolved it by recreating the whole thing via SQL Script and getting rid of all those \" things. I think that is preventing SSIS from looking up the precompiled binaries for your Script Task. So you should edit the command
line manually:
/FILE "D:\yourPathGoesHere.dtsx" /CONFIGFILE "D:\yourPathGoesHere.dtsConfig" /CHECKPOINTING OFF /REPORTING E
Please write back whether that helps you. David Dye's answer didn't help me at all. -
Reg. Converting a package level cursor into a Ref cursor
Hi Guru's,
I am in need of converting a package level cursor which contains "FOR UPDATE OF" clause into a Ref cursor where the query will be dynamically built in with the needed table name and other parameters.
Using that cursor many Update statement's were performed with "WHERE CURRENT OF" clause included in it.
Now I changed my cursor into Ref cursor, but when i compile the cursor that is built dynamical is not identified, since i am getting error.
Can any one tell me how to proceed in order to implement it?
Do I need only go for dynamic bulding of the whole procedure.
With Best Regards,
Vijayasekaran.NMay be you can work it around with ROWID. Like this
Say this is your actual code.
declare
cursor c
is
select *
from t
for update of name;
lno t.no%type;
lname t.name%type;
begin
open c;
loop
fetch c into lno, lname;
exit when c%notfound;
update t set name = lno||lname
where current of c;
end loop;
close c;
end;
/With refcursor you can do this.
declare
type rc is ref cursor;
c rc;
lno t.no%type;
lname t.name%type;
lrowid rowid;
begin
open c for 'select rowid rid, t.*
from t
for update of name';
loop
fetch c into lrowid,lno, lname;
exit when c%notfound;
update t set name = lno||lname
where rowid = lrowid;
end loop;
close c;
end;
/Edited by: Karthick_Arp on Dec 26, 2008 2:00 AM -
Is there a script to convert all guides to paths?
Hello
I need access to AI guides in AfterEffects
shift+alt+ctrl double click doesn't always work.
Is there a script to convert all guides to paths?\
Have I asked this before?!
TristanDon't you just want…?
#target illustrator
var doc = app.activeDocument;
var paths = doc.pathItems;
for ( var i = 0; i < paths.length; i++ ) {
if ( paths[i].guides ) { paths[i].guides = false; } -
How to convert .dts packages to SSIS packages
Hi,
How do you convert .dtsx packages to SSIS packages.sorry Tom, I mark it and than i saw that this is the same link as
Shanky_621 posted several hours ago, so I Unpropose as answer.
* This look like a good answer, but it was already given as mentioned :-)
[Personal Site] [Blog] [Facebook] -
Call a unix script from pl/sql package
Hi,
Using 11.2.0.3 on AIX.
Is it possible to call unix script from pl/sql package?
I am cretaing a file in a directory but would like this to automatically be written to an archive directory as well.
Could either use 2 utl_file.put_lines to 2 separate directories or 1 utl_file and cal script to archive file in another directory.?
Thoughts?
Thanksuser5716448 wrote:
What am I doing wrong?think how file name will look like:
SQL> select 'file_name' || to_char(sysdate,'DD/MM/YYYY HH24:MI:SS') from dual;
'FILE_NAME'||TO_CHAR(SYSDATE
file_name15/08/2012 11:47:51Will AIX swallow such name? Obviously not. And, unfortunately, UTL_FILE.FCOPY doesn't raise an error in such case. So use someting like:
UTL_FILE.FCOPY ('SOURCE_DIR',v_FILE_NAME,'DEST_DIR',v_file_name||to_char(sysdate,'DD_MM_YYYY_HH24_MI_SS'));SY. -
OSD: How to run script(it's In package) without download
I has a hta script need to run before "Partition Disk", but this script is in a package, if I want to run it, it need to download to harddisk. so it will fail, because no partition.
So how to run directly this script in network, without download to C drive.
PS: I think I can put this script into boot image, but it is not easy to maintain. So I want to run directly in network
06/30:
Thank you for everyone support!
My Hta will warn users that the following operations will format data.So "Create a temporary partition on the disk"--It is not for my requirement.
As Narcoticoo mentioned, I want to use "Package Share Settings" to share folder, so how to map this folder with automatically recognize
DP?
just like \\%DP%\htaThank you for everyone support!
As Narcoticoo mentioned, I want to use "Package Share Settings" to share folder, so how to map
this folder with automatically recognize DP?
just like \\%DP%\hta
Is there this variable?
Maybe you are looking for
-
How do I set up an account for my child with no bank details
Can anyone tell me how to set up an account for my daughter so she doesn't have access to my bank account?
-
Does window.opener persist (javascript)?
If a new popup (created from a parent window) uses window.opener, and the popup reloads itself when it's form is submitted to the same page by calling the same url (jsp) it was created with, does the window.opener retain it's handle on the parent win
-
HT4009 if i accidently downloaded an app that cost money, can i get a refund and how?
Hi. I have been accidently downloading apps that cost money, and I was wondering if I counld get a refund. How can I get a refund?
-
iPhone 4 used to connect to internet site when email had reference to the site and I requested it. iPhone stopped doing this. How do I get it to resume doing it?
-
Click event on FSSUBMIT_ button
Why can't I edit or at least trigger the "click" method of the FSSUBMIT_ button? I am trying to call this method from another action.