{"record":{"id":"2e72bf74d42199db","repo":"jordansissel/fpm","slug":"debian-version-field-needs-to-start-with-a-digit","errorCode":null,"errorMessage":"Debian 'Version' field needs to start with a digit. I was provided '#{@version}' which seems like it just has a 'v' prefix to an otherwise-valid Debian version, I'll remove the 'v' for you.","messagePattern":"Debian 'Version' field needs to start with a digit\\. I was provided '#(.+?)' which seems like it just has a 'v' prefix to an otherwise-valid Debian version, I'll remove the 'v' for you\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/fpm/package/deb.rb","lineNumber":327,"sourceCode":"    end\n\n    if @name.include?(\" \")\n      logger.info(\"Debian package names cannot include spaces; \" \\\n                   \"automatically converting to dashes\", :name => @name)\n      @name = @name.gsub(/[ ]/, \"-\")\n    end\n\n    return @name\n  end # def name\n\n  def prefix\n    return (attributes[:prefix] or \"/\")\n  end # def prefix\n\n  def version\n    if @version.kind_of?(String)\n      if @version.start_with?(\"v\") && @version.gsub(/^v/, \"\") =~ /^#{VERSION_FIELD_PATTERN}$/\n        logger.warn(\"Debian 'Version' field needs to start with a digit. I was provided '#{@version}' which seems like it just has a 'v' prefix to an otherwise-valid Debian version, I'll remove the 'v' for you.\")\n        @version = @version.gsub(/^v/, \"\")\n      end\n\n      if @version !~ /^#{VERSION_FIELD_PATTERN}$/\n        raise FPM::InvalidPackageConfiguration, \"The version looks invalid for Debian packages. Debian version field must contain only alphanumerics and . (period), + (plus), - (hyphen) or ~ (tilde). I have '#{@version}' which which isn't valid.\"\n      end\n    end\n\n    return @version\n  end\n\n  def input(input_path)\n    extract_info(input_path)\n    extract_files(input_path)\n  end # def input\n\n  def extract_info(package)\n    compression = `#{ar_cmd[0]} t #{package}`.split(\"\\n\").grep(/control.tar/).first.split(\".\").last","sourceCodeStart":309,"sourceCodeEnd":345,"githubUrl":"https://github.com/jordansissel/fpm/blob/b6d77ba72a560b687723376a0e5115c3a92634ad/lib/fpm/package/deb.rb#L309-L345","documentation":"Error \"Debian 'Version' field needs to start with a digit. I was provided '#{@version}' which seems like it just has a 'v' prefix to an otherwise-valid Debian version, I'll remove the 'v' for you.\" thrown in jordansissel/fpm.","triggerScenarios":"Thrown at lib/fpm/package/deb.rb:327 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b6d77ba72a560b687723376a0e5115c3a92634ad","analyzedAt":"2026-08-21T16:39:02.570Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}